Re: Help with restoring a dump in Tar format? (dependencies/ordering)

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Help with restoring a dump in Tar format? (dependencies/ordering)
Date: 2017-06-06 00:49:11
Message-ID: CAKFQuwb81pq1r6aSZCi4hUZVfCQrWBGFD9pybg6HXQrjWmJ5rg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jun 5, 2017 at 5:40 PM, John R Pierce <pierce(at)hogranch(dot)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.​

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2017-06-06 00:52:02 Re: Help with restoring a dump in Tar format? (dependencies/ordering)
Previous Message Ken Tanzer 2017-06-06 00:45:43 Re: Help with restoring a dump in Tar format? (dependencies/ordering)