Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id EA715F7659 for ; Wed, 11 Apr 2012 14:49:33 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SI1fe-0003kh-Mu for pgsql-bugs@postgresql.org; Wed, 11 Apr 2012 17:49:33 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SI1fR-00073x-Bw for pgsql-bugs@postgresql.org; Wed, 11 Apr 2012 17:49:17 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1SI1fQ-0001Qu-MM for pgsql-bugs@postgresql.org; Wed, 11 Apr 2012 17:49:16 +0000 Date: Wed, 11 Apr 2012 17:49:16 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6581: pg_dumpall --no-tablespaces option still sets default tablespace To: pgsql-bugs@postgresql.org From: keith@omniti.com X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/64 X-Sequence-Number: 32815 The following bug has been logged on the website: Bug reference: 6581 Logged by: Keith Fiske Email address: keith@omniti.com PostgreSQL version: 9.1.3 Operating system: Any Description: = Using the --no-tablespaces option for pg_dumpall correctly stops tablespace creation and each individual object from having its tablespace set. But if the original database had its default tablespace changed, this is still added at the beginning of the dump file: ALTER DATABASE dbname SET default_tablespace TO 'old_db_tablespace';