Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9FDb-0002bV-59 for pgsql-bugs@arkaria.postgresql.org; Fri, 12 May 2017 18:23:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d9FDa-0004gw-O7 for pgsql-bugs@arkaria.postgresql.org; Fri, 12 May 2017 18:23:10 +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 1d9FCq-0002jo-56 for pgsql-bugs@postgresql.org; Fri, 12 May 2017 18:22:24 +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 1d9FCn-0001Bq-HA for pgsql-bugs@postgresql.org; Fri, 12 May 2017 18:22:22 +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 v4CIMK6C004693; Fri, 12 May 2017 14:22:20 -0400 From: Tom Lane To: tureba@gmail.com cc: Stephen Frost , pgsql-bugs@postgresql.org Subject: Re: BUG #14650: pg_dump -c fails when 'public' schema doesn't exist In-reply-to: <20170512181801.1795.47483@wrigleys.postgresql.org> References: <20170512181801.1795.47483@wrigleys.postgresql.org> Comments: In-reply-to tureba@gmail.com message dated "Fri, 12 May 2017 18:18:01 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4691.1494613340.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 12 May 2017 14:22:20 -0400 Message-ID: <4692.1494613340@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 tureba@gmail.com writes: > It seems that pg_dump -c fails when the database doesn't have a 'public' > schema. When using a clean database, then dropping (or renaming) the > 'public' schema, a subsequent pg_dump -c tells me: > $ pg_dump -c test > pg_dump: [archiver (db)] query failed: ERROR: schema "public" does not e= xist > LINE 1: ...::regclass AND pip.objsubid =3D 0 AND pip.objoid <> 'public'::= ... > ^ > This seems to have started in commit 330b84d8c4 Yeah, this is not cool. Stephen? regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs