[CBRD-23700] After executing the DROP table, LOB objects are not removed#6816
Open
InChiJun wants to merge 250 commits intoCUBRID:developfrom
Open
[CBRD-23700] After executing the DROP table, LOB objects are not removed#6816InChiJun wants to merge 250 commits intoCUBRID:developfrom
InChiJun wants to merge 250 commits intoCUBRID:developfrom
Conversation
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.
…in_truncate() func
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.
…into feature/CBRD-23700
hornetmj
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
http://jira.cubrid.org/browse/CBRD-23700
Purpose
DROP 테이블 수행 시 lob 파일이 삭제되도록 합니다.
Implementation
CREATE 테이블 시 lob 컬럼별로 디렉토리를 생성하고, DROP 테이블 시 테이블의 lob 컬럼 디렉토리를 삭제합니다.
마찬가지로 ALTER ADD/DROP 컬럼 시 lob 컬럼 디렉토리를 생성/삭제 하여 lob컬럼 삭제 시 lob 컬럼 디렉토리가 삭제되도록 합니다.
TRUNCATE 수행 시 기존 테이블에 소속된 lob 디렉토리를 삭제하고, 새로운 테이블의 lob 디렉토리를 생성합니다.
INSERT/UPDATE 수행 시 임시로 생성한 temp lob파일을 변경된 구조의 lob 디렉토리에 copy 합니다.
Remarks
현재 PR에서 구현한 INSERT/UPDATE는 임시 lob 디렉토리/파일을 서버 시작/종료 시 삭제하도록 구현하였습니다.
이렇게 되면 서버 종료/시작을 수행하기 전에는 두 개의 lob 파일이 lob 디렉토리 저장됩니다.
INSERT/UPDATE 시 lob 임시 파일을 copy하지 않고 file move를 수행하여 두 개의 lob 파일이 존재하지 않도록 구현할 예정입니다.(다른 PR에서 구현 예정)