pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: abcz2.uprola@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14315: pg_dump --no-tablespaces doesn't do it's job when --create specified
Date: Thu, 08 Sep 2016 10:05:28 -0400
Message-ID: <17757.1473343528@sss.pgh.pa.us> (raw)
In-Reply-To: <20160908081953.1402.75347@wrigleys.postgresql.org>
References: <20160908081953.1402.75347@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

abcz2.uprola@gmail.com writes:
> But I noticed that --no-tablespaces doesn't change --create option to not
> include tablespaces:

>  $ pg_dump -C --schema-only -U postgres -h test --no-tablespaces -d
> wp_analytics | grep "CREATE DATABASE"
> CREATE DATABASE wp_analytics WITH TEMPLATE = template0 ENCODING = 'UTF8'
> LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8' TABLESPACE =
> wp_tblspc;

> I think that it is a bug.

Yeah, I think you're right, especially since the corresponding code in
pg_dumpall does suppress the TABLESPACE clause with --no-tablespaces.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <17757.1473343528@sss.pgh.pa.us>
Permalink:  ../17757.1473343528@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17757.1473343528@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, abcz2.uprola@gmail.com
  Subject: Re: BUG #14315: pg_dump --no-tablespaces doesn't do it's job when --create specified
  In-Reply-To: <17757.1473343528@sss.pgh.pa.us>
  References: <20160908081953.1402.75347@wrigleys.postgresql.org> <17757.1473343528@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox