]> 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:23 +0000 (21:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 14 Jul 2010 21:21:23 +0000 (21:21 +0000)
commit7fce4dc6cc27e9421e06cedbf90f2668e1998fc4
treeb02463e732fef2bdc2f64faa3bea0cf28867709f
parentba1dfcec9624d12f008e4e2d27a40a2d18b8479c
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