paupino / psqlpack

A logical database management system for PostgreSQL enabling incremental database deployment.
Apache License 2.0
8 stars 2 forks source link

Fixes ordering issue with Topological Sort by delaying constraint creation #111

Closed paupino closed 6 years ago

paupino commented 6 years ago

Closes #109 The DAG being generated was correct pre-optimization of creating table constraints at time of table creation was causing the ordering to become invalid. While columns and primary keys are typically ok to pre-generate it was easier to just let constraints be created within the natural TS ordering.