postgresql/src/bin
Tom Lane 9a915e596f Improve the handling of SET CONSTRAINTS commands by having them search
pg_constraint before searching pg_trigger.  This allows saner handling of
corner cases; in particular we now say "constraint is not deferrable"
rather than "constraint does not exist" when the command is applied to
a constraint that's inherently non-deferrable.  Per a gripe several months
ago from hubert depesz lubaczewski.

To make this work without breaking user-defined constraint triggers,
we have to add entries for them to pg_constraint.  However, in return
we can remove the pgconstrname column from pg_constraint, which represents
a fairly sizable space savings.  I also replaced the tgisconstraint column
with tgisinternal; the old meaning of tgisconstraint can now be had by
testing for nonzero tgconstraint, while there is no other way to get
the old meaning of nonzero tgconstraint, namely that the trigger was
internally generated rather than being user-created.

In passing, fix an old misstatement in the docs and comments, namely that
pg_trigger.tgdeferrable is exactly redundant with pg_constraint.condeferrable.
Actually, we mark RI action triggers as nondeferrable even when they belong to
a nominally deferrable FK constraint.  The SET CONSTRAINTS code now relies on
that instead of hard-coding a list of exception OIDs.
2010-01-17 22:56:23 +00:00
..
initdb PG_MAJORVERSION: 2010-01-06 23:23:51 +00:00
pg_config Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
pg_controldata Write an end-of-backup WAL record at pg_stop_backup(), and wait for it at 2010-01-04 12:50:50 +00:00
pg_ctl Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
pg_dump Improve the handling of SET CONSTRAINTS commands by having them search 2010-01-17 22:56:23 +00:00
pg_resetxlog Write an end-of-backup WAL record at pg_stop_backup(), and wait for it at 2010-01-04 12:50:50 +00:00
pgevent Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00
psql Improve the handling of SET CONSTRAINTS commands by having them search 2010-01-17 22:56:23 +00:00
scripts Use -Z for vacuumdb --analyze-only, rather than -o. 2010-01-07 14:35:44 +00:00
Makefile Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00