Skip to content

fix: PostgreSQL 세부 보존 (range COLLATION·도메인 NOT NULL 이름·파티션 인덱스 순서·search_path) - #47

Merged
TeiNam merged 1 commit into
mainfrom
fix/pg-low-details
Oct 9, 2026
Merged

TeiNam merged 1 commit into
mainfrom
fix/pg-low-details

Conversation

@TeiNam

@TeiNam TeiNam commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Summary

3차 2-way 리뷰 LOW #10·#11·#14·#15.

Test plan

  • cargo fmt --check, cargo clippy --all-targets --all-features -- -D warnings, cargo test --all-features
  • 단위 테스트: range COLLATION, 도메인 NOT NULL 이름(기본 이름 생략), 헤더
  • PG 18.6 실측: range COLLATION·도메인 NOT NULL 이름 원본과 동일, 상속 인덱스 이름을 바꾸고 재사용한 파티션도 빈 DB 실행 성공 / 하위 파티션 자체 인덱스·다시 파티션된 하위 파티션 픽스처(hsrc) 왕복 동일

🤖 Generated with Claude Code

…arch_path

- range 타입의 COLLATION(subtype 기본값과 다를 때)을 출력 — 빠지면 경계 비교 의미가 바뀌었다
- PG 17+ 도메인 NOT NULL 제약 이름이 기본값(`{domain}_not_null`)이 아니면 `CONSTRAINT .. NOT NULL` 로 보존
- 파티션 부모의 인덱스를 하위 파티션(과 그 자체 인덱스) 뒤에 만든다 — 먼저 만들면 PARTITION OF 가
  상속 인덱스를 자동 이름으로 만들어, 원본에서 그 이름을 쓰는 하위 파티션 자체 인덱스와 충돌했다
- PG SQL 파일 헤더에 `SET search_path = '';` — DDL 은 search_path 를 비운 채 만들어 pg_catalog 밖 이름이
  모두 한정돼 있으므로, 실행할 때도 비워 public 의 같은 이름 함수·연산자에 묶이지 않게 한다 (pg_dump 와 동일)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@TeiNam
TeiNam force-pushed the fix/pg-low-details branch from 682acf2 to 8f099f1 Compare October 9, 2026 01:39
@TeiNam
TeiNam merged commit 7c781f5 into main Oct 9, 2026
7 checks passed
@TeiNam
TeiNam deleted the fix/pg-low-details branch October 9, 2026 01:44
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.

1 participant