pgsql: Fix pg_dumpall with database names containing = - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix pg_dumpall with database names containing =
Date
Msg-id E1U8BNY-0008Uy-9F@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix pg_dumpall with database names containing =

If a database name contained a '=' character, pg_dumpall failed. The problem
was in the way pg_dumpall passes the database name to pg_dump on the
command line. If it contained a '=' character, pg_dump would interpret it
as a libpq connection string instead of a plain database name.

To fix, pass the database name to pg_dump as a connection string,
"dbname=foo", with the database name escaped if necessary.

Back-patch to all supported branches.

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2aaa14d4218350756bc51ab623dbf1f43dbe3fc1

Modified Files
--------------
src/bin/pg_dump/pg_dumpall.c |   34 +++++++++++++++++++++++++++++++++-
1 files changed, 33 insertions(+), 1 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix pg_dumpall with database names containing =
Next
From: Tom Lane
Date:
Subject: pgsql: Add postgres_fdw contrib module.