]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix ordering of obj id for Rules and EventTriggers in pg_dump.
authorJoe Conway <mail@joeconway.com>
Mon, 10 Jun 2013 00:31:51 +0000 (17:31 -0700)
committerJoe Conway <mail@joeconway.com>
Mon, 10 Jun 2013 00:31:51 +0000 (17:31 -0700)
commit86742ac9c838cb383f951703f28938d371cb7858
tree3889301e372c5d7f474e940395db9db457848eea
parenta2c2336f9601c7c3b62c910eb5716d196cdd8496
Fix ordering of obj id for Rules and EventTriggers in pg_dump.

getSchemaData() must identify extension member objects and mark them
as not to be dumped. This must happen after reading all objects that can be
direct members of extensions, but before we begin to process table subsidiary
objects. Both rules and event triggers were wrong in this regard.

Backport rules portion of patch to 9.1 -- event triggers do not exist prior to 9.3.
Suggested fix by Tom Lane, initial complaint and patch by me.
src/bin/pg_dump/common.c