]> 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:16 +0000 (21:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 14 Jul 2010 21:21:16 +0000 (21:21 +0000)
commitfa2dbb6800f974372399e58b1b405b57acf37547
treec8297d6cc24cb1492d88ef183abc8236737988ef
parent89ddf54fe5d6a374ffdd6f1eab74beb286ba0d23
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