When carrying out pg_dump
on a (timescale) database running within a local container I have the following:
pg_dump: warning: there are circular foreign-key constraints on this table:
pg_dump: hypertable
Command that I ran for the above:
pg_dump --schema-only -h localhost --port 5432 --dbname db --username user > schema.sql
I'm not sure how to check using postgres to see which keys are circular.
I could go through all the tables and manually trace which keys point to which I guess - but I was hoping there would be a more straightforward approach to determining which keys are circular and where, so that I could go about fixing them.