You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
error : insert or update on table "products" violates foreign key constraint "products_successor_id_fkey" #2
postgresql 타겟으로 medium 사이즈(상품 1,000개 초과) 이상의 데이터 생성 시, products 테이블에서 insert or update on table "products" violates foreign key constraint "products_successor_id_fkey" 에러가 발생합니다
Activity
civilian7 commentedon Apr 12, 2026
36d8d67 커밋에서 두 가지 접근법을 모두 적용하여 수정했습니다.
SET session_replication_role = 'replica'/'origin'으로 bulk load 시 FK 비활성화products.sort(key=lambda x: x["id"])로 자기참조 FK INSERT 순서 보장분석이 정확했습니다. 감사합니다!