]> granicus.if.org Git - postgresql/commit
Fix pg_dump's handling of extension-member casts and languages.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 May 2011 20:41:52 +0000 (16:41 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 16 May 2011 20:41:52 +0000 (16:41 -0400)
commitb3bc63efbc258874b06586aa7548fce37f3581e1
tree4a77edc2446b8c55213b6001fae2826960a720a5
parente728701fb496ace7fa21fcce5c0ef7fc4c0ec78c
Fix pg_dump's handling of extension-member casts and languages.

pg_dump has some heuristic rules for whether to dump casts and procedural
languages, since it's not all that easy to distinguish built-in ones from
user-defined ones.  However, we should not apply those rules to objects
that belong to an extension, but just use the perfectly well-defined rules
for what to do with extension member objects.  Otherwise we might
mistakenly lose extension member objects during a binary upgrade (which is
the only time that we'd want to dump extension members).
src/bin/pg_dump/pg_dump.c