![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
pg_restore: [archiver (db)] could not execute query: ERROR: insert or update on table "asientry" violates foreign key constraint "asientry_r0" DETAIL: Key (pid)=(AA0003403544) is not present in table "pobject". Command was: ALTER TABLE ONLY asientry ADD CONSTRAINT asientry_r0 FOREIGN KEY (pid) REFERENCES pobject(pid); Also running the alter table after restore generates same constraint violation error. The following query returns one row: select * from asientry, pobject where pobject.pid = 'AA0003403544' and pobject.pid = asientry.pid; |
![]() |
| Thread Tools | |
| Display Modes | |
| |