Re: [GENERAL] Help with restoring a dump in Tar format? (dependencies/ordering) - Mailing list pgsql-general

From David G. Johnston
Subject Re: [GENERAL] Help with restoring a dump in Tar format? (dependencies/ordering)
Date
Msg-id CAKFQuwb81pq1r6aSZCi4hUZVfCQrWBGFD9pybg6HXQrjWmJ5rg@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Help with restoring a dump in Tar format?(dependencies/ordering)  (John R Pierce <pierce@hogranch.com>)
Responses Re: [GENERAL] Help with restoring a dump in Tar format?(dependencies/ordering)
List pgsql-general
On Mon, Jun 5, 2017 at 5:40 PM, John R Pierce <pierce@hogranch.com> wrote:
​i​
ndeed, any sort of constraint that invokes a function call which looks at other tables could later be invalidated if those other tables change, and postgres would be none the smarter.   the same goes for trigger based checks.

​Yes.  I could imagine a new kind of "multi-referential trigger" that would specify all relations it touches and the function to fire when each of them is updated.  While you'd still have to write the functions correctly it would at least allow one to explicitly model the multi-table dynamic in pg_catalog.  Lacking that CHECK is no worse than TRIGGER and we've decided to say "use triggers".

David J.​

pgsql-general by date:

Previous
From: Ken Tanzer
Date:
Subject: Re: [GENERAL] Help with restoring a dump in Tar format? (dependencies/ordering)
Next
From: John R Pierce
Date:
Subject: Re: [GENERAL] Help with restoring a dump in Tar format?(dependencies/ordering)