pgsql: Fix several problems in pg_dump's handling of SQL/MED objects, - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix several problems in pg_dump's handling of SQL/MED objects,
Date
Msg-id 20100714212116.46F057541D5@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
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.

Tags:
----
REL9_0_STABLE

Modified Files:
--------------
    pgsql/src/bin/pg_dump:
        pg_dump.c (r1.581 -> r1.581.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_dump.c?r1=1.581&r2=1.581.2.1)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix several problems in pg_dump's handling of SQL/MED objects,
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix several problems in pg_dump's handling of SQL/MED objects,