]> granicus.if.org Git - postgresql/commit
Don't print database's tablespace in pg_dump -C --no-tablespaces output.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Sep 2016 14:48:03 +0000 (10:48 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 8 Sep 2016 14:48:03 +0000 (10:48 -0400)
commita88cee90fdfb2c125d56cb08164ca9a9ca39a75d
tree4cf02fd0626cf16e9609b4e486e13febe5dd2bca
parentd7c45172a673be1fc9e51e98e45a44c14d1ee78d
Don't print database's tablespace in pg_dump -C --no-tablespaces output.

If the database has a non-default tablespace, we emitted a TABLESPACE
clause in the CREATE DATABASE command emitted by -C, even if
--no-tablespaces was also specified.  This seems wrong, and it's
inconsistent with what pg_dumpall does, so change it.  Per bug #14315
from Danylo Hlynskyi.

Back-patch to 9.5.  The bug is much older, but it'd be a more invasive
change before 9.5 because dumpDatabase() hasn't got an easy way to get
to the outputNoTablespaces flag.  Doesn't seem worth the work given
the lack of previous complaints.

Report: <20160908081953.1402.75347@wrigleys.postgresql.org>
src/bin/pg_dump/pg_dump.c