Open mikfire opened 1 year ago
One day maybe we'll have other PostgreSQL users! :smile: (I did use it a fair bit at work, but I never yet got around to getting it installed on my personal machine.)
AIUI, the simplest way to deal with this is to turn off constraints before the copy and turn them back on again afterwards. Eg, according to https://stackoverflow.com/questions/38112379/disable-postgresql-foreign-key-checks-for-migrations, it's SET session_replication_role = 'replica';
for the former and SET session_replication_role = 'origin';
for the latter.
This is trying to copy a default database from sqlite to postgres.
This is a note so that I remember to investigate; nobody else needs to worry about this.