MichaelDBA/pg_get_tabledef

Foreign Key exists error when table is a partitioned table with foreign keys

MichaelDBA opened this issue · 1 comments

If a table is partitioned with foreign keys, an implied foreign key is done for partitioned tables if defined on the parent, so don't define explicitly on the partitions.

Fixed.