Repository navigation
fix: PostgreSQL 세부 보존 (range COLLATION·도메인 NOT NULL 이름·파티션 인덱스 순서·search_path) - #47
Merged
Merged
Conversation
…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
force-pushed
the
fix/pg-low-details
branch
from
October 9, 2026 01:39
682acf2 to
8f099f1
Compare
3 tasks done
3 tasks done
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.
Summary
3차 2-way 리뷰 LOW #10·#11·#14·#15.
COLLATION출력 (subtype 기본값과 다를 때) — 빠지면"C"가"default"로 바뀌어 경계 비교 의미가 달라졌다CONSTRAINT "nn_required" NOT NULL, 기본 이름{domain}_not_null은 생략)PARTITION OF가 상속 인덱스를 자동 이름(c1_id_idx)으로 만들어, 원본에서 그 이름을 쓰는 하위 파티션 자체 인덱스와already exists로 충돌ponytail:— pg_dump 식ON ONLY+ATTACH PARTITION은 외부 테이블 파티션이 있으면 부모 인덱스가 invalid 로 남을 수 있어 보류)SET search_path = '';— pg_dump 와 같이 실행 시 이름 해석을 내보낼 때와 같게 고정 (CVE-2018-1058 유형 바인딩 가로채기 방지)Test plan
cargo fmt --check,cargo clippy --all-targets --all-features -- -D warnings,cargo test --all-features🤖 Generated with Claude Code