]> granicus.if.org Git - postgresql/commit
Fix several problems in pg_dump's handling of SQL/MED objects, notably failure
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 14 Jul 2010 21:21:08 +0000 (21:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 14 Jul 2010 21:21:08 +0000 (21:21 +0000)
commit599dba4aab4f3b91aac606ee7158b4dc9b252a63
tree87d4f902b793d5d4b5f74e4c11db2577e69381e1
parentd494e685c580ae149639f4a380157996a7b61f74
Fix several problems in pg_dump's handling of SQL/MED objects, notably failure
to dump a PUBLIC user mapping correctly, as per bug #5560 from Shigeru Hanada.
Use the pg_user_mappings view rather than trying to access pg_user_mapping
directly, so that the code doesn't fail when run by a non-superuser.  And
clean up some minor carelessness such as unsafe usage of fmtId().

Back-patch to 8.4 where this code was added.
src/bin/pg_dump/pg_dump.c