Skip to content

[CBRD-23700] After executing the DROP table, LOB objects are not removed#6816

Open
InChiJun wants to merge 250 commits intoCUBRID:developfrom
InChiJun:feature/CBRD-23700
Open

[CBRD-23700] After executing the DROP table, LOB objects are not removed#6816
InChiJun wants to merge 250 commits intoCUBRID:developfrom
InChiJun:feature/CBRD-23700

Conversation

@InChiJun
Copy link
Contributor

http://jira.cubrid.org/browse/CBRD-23700

Purpose

DROP 테이블 수행 시 lob 파일이 삭제되도록 합니다.

Implementation

CREATE 테이블 시 lob 컬럼별로 디렉토리를 생성하고, DROP 테이블 시 테이블의 lob 컬럼 디렉토리를 삭제합니다.

  • lob 컬럼 디렉토리명은 attr_id와 HFID를 사용하여 테이블, 컬럼 별로 고유한 이름을 갖게 합니다.

마찬가지로 ALTER ADD/DROP 컬럼 시 lob 컬럼 디렉토리를 생성/삭제 하여 lob컬럼 삭제 시 lob 컬럼 디렉토리가 삭제되도록 합니다.

TRUNCATE 수행 시 기존 테이블에 소속된 lob 디렉토리를 삭제하고, 새로운 테이블의 lob 디렉토리를 생성합니다.

  • 새로운 lob디렉토리를 생성할 때는 새로운 HFID를 사용합니다.

INSERT/UPDATE 수행 시 임시로 생성한 temp lob파일을 변경된 구조의 lob 디렉토리에 copy 합니다.

  • 임시로 생성한 lob 디렉토리/파일은 서버 시작/종료 시 삭제하도록 구현하였습니다.

Remarks

현재 PR에서 구현한 INSERT/UPDATE는 임시 lob 디렉토리/파일을 서버 시작/종료 시 삭제하도록 구현하였습니다.
이렇게 되면 서버 종료/시작을 수행하기 전에는 두 개의 lob 파일이 lob 디렉토리 저장됩니다.
INSERT/UPDATE 시 lob 임시 파일을 copy하지 않고 file move를 수행하여 두 개의 lob 파일이 존재하지 않도록 구현할 예정입니다.(다른 PR에서 구현 예정)

http://jira.cubrid.org/browse/CBRD-23700

Because the review scope for CBRD-23700 is extensive, this PR merges the commits that have completed review into the feature branch ahead of the remaining work.
http://jira.cubrid.org/browse/CBRD-23700

Because the review scope for CBRD-23700 is extensive, this PR merges the commits that have completed review into the feature branch ahead of the remaining work.
@InChiJun InChiJun requested a review from hornetmj January 30, 2026 04:06
@InChiJun InChiJun self-assigned this Jan 30, 2026
@InChiJun InChiJun requested a review from beyondykk9 as a code owner January 30, 2026 04:06
@InChiJun InChiJun removed the request for review from beyondykk9 January 30, 2026 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants