Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhzy1-00089p-9c for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Sep 2016 14:06:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bhzy0-0005NT-AX for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Sep 2016 14:06:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bhzxM-0004fu-H7 for pgsql-bugs@postgresql.org; Thu, 08 Sep 2016 14:05:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bhzxK-0006tC-1V for pgsql-bugs@postgresql.org; Thu, 08 Sep 2016 14:05:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u88E5S5o017758; Thu, 8 Sep 2016 10:05:28 -0400 From: Tom Lane 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 In-reply-to: <20160908081953.1402.75347@wrigleys.postgresql.org> References: <20160908081953.1402.75347@wrigleys.postgresql.org> Comments: In-reply-to abcz2.uprola@gmail.com message dated "Thu, 08 Sep 2016 08:19:53 -0000" Date: Thu, 08 Sep 2016 10:05:28 -0400 Message-ID: <17757.1473343528@sss.pgh.pa.us> X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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