Repository navigation
Replies: 1 comment
|
I think the issue is: If a table exists already in the target, it is skipped , but indexes or constraints on the table are skipped as well but these are different things. can you confirm ? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, I did a pgclone in a empty database with tables pre-created without any primary key constraints, foreign keys (obviously) indexes etcetera. Then I imported with json optioms: '{"indexes": false, "triggers": true, "on_error": "continue", "constraints": false ,"conflict": "ignore"}'::text || json_build_object('masks', :'masks'::json)::text
and then I wnated to import all constraints: with json options: '{"indexes": true, "triggers": true, "on_error": "continue", "constraints": true ,"conflict": "ignore"}'::text (and data=false), but I get:
pgclone: local exec failed: ERROR: there is no unique constraint matching given keys for referenced table ...
all the time.
Is this intended behaviour ? If it is, I am not quite sure how I can copy large amounts of data with the least overhead, because copying data with indexes/PK constraints existing is much more slower/resource intensive/inefficient. How can I copy primary keys (does the same apply for uniqiue indexes) ?
All reactions