postgresql/src/bin
Tom Lane b99dd71705 In pg_dump, ensure that view triggers are processed after view rules.
If a view is split into CREATE TABLE + CREATE RULE to break a circular
dependency, then any triggers on the view must be dumped/reloaded after
the CREATE RULE; else the backend may reject the CREATE TRIGGER because
it's the wrong type of trigger for a plain table.  This works all right
in plain dump/restore because of pg_dump's sorting heuristic that places
triggers after rules.  However, when using parallel restore, the ordering
must be enforced by a dependency --- and we didn't have one.

Fixing this is a mere matter of adding an addObjectDependency() call,
except that we need to be able to find all the triggers belonging to the
view relation, and there was no easy way to do that.  Add fields to
pg_dump's TableInfo struct to remember where the associated TriggerInfo
struct(s) are.

Per bug report from Dennis Kögel.  The failure can be exhibited at least
as far back as 9.1, so back-patch to all supported branches.
2016-02-04 00:26:10 -05:00
..
initdb Fix unobvious interaction between -X switch and subdirectory creation. 2016-01-07 18:20:57 -05:00
pg_archivecleanup Make WAL-related utilities handle .partial WAL files properly. 2015-07-03 11:54:44 +09:00
pg_basebackup Fix typo in comment 2016-02-02 13:49:20 +01:00
pg_config Translation updates 2015-10-05 11:01:07 -04:00
pg_controldata Translation updates 2016-01-04 08:18:48 -05:00
pg_ctl Windows: Make pg_ctl reliably detect service status 2016-01-07 11:59:08 -03:00
pg_dump In pg_dump, ensure that view triggers are processed after view rules. 2016-02-04 00:26:10 -05:00
pg_resetxlog Translation updates 2016-01-04 08:18:48 -05:00
pg_rewind Fix typo in comment. 2016-01-04 10:13:04 -05:00
pg_test_fsync Move pg_test_fsync from contrib/ to src/bin/ 2015-04-19 22:20:49 -04:00
pg_test_timing Move pg_test_timing from contrib/ to src/bin/ 2015-04-20 21:30:12 -04:00
pg_upgrade Fix spelling mistake. 2016-01-14 23:15:04 -05:00
pg_xlogdump Sort $(wildcard) output where needed for reproducible build output. 2016-01-05 15:47:05 -05:00
pgbench pgbench: Install guards against obscure overflow conditions. 2016-02-01 08:26:07 -05:00
pgevent Update copyright for 2015 2015-01-06 11:43:47 -05:00
psql Fix incorrect pattern-match processing in psql's \det command. 2016-01-29 10:28:02 +01:00
scripts Translation updates 2016-01-04 08:18:48 -05:00
Makefile Move pg_xlogdump from contrib/ to src/bin/ 2015-04-21 19:03:49 -04:00