Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YzQ9M-00064f-Ga for pgsql-admin@arkaria.postgresql.org; Mon, 01 Jun 2015 13:53:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YzQ9L-0000tM-VE for pgsql-admin@arkaria.postgresql.org; Mon, 01 Jun 2015 13:53:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YzQ9K-0000tC-Tk for pgsql-admin@postgresql.org; Mon, 01 Jun 2015 13:53:07 +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) (envelope-from ) id 1YzQ9H-00023t-Sb for pgsql-admin@postgresql.org; Mon, 01 Jun 2015 13:53:05 +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 t51Dr1YR016442; Mon, 1 Jun 2015 09:53:01 -0400 From: Tom Lane To: "Guo, Yun" cc: Albe Laurenz , "pgsql-admin@postgresql.org" Subject: Re: pg_dump not dumping some schemas In-reply-to: References: Comments: In-reply-to "Guo, Yun" message dated "Mon, 01 Jun 2015 13:21:52 -0000" Date: Mon, 01 Jun 2015 09:53:01 -0400 Message-ID: <16441.1433166781@sss.pgh.pa.us> X-Pg-Spam-Score: -1.5 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org "Guo, Yun" writes: > It doesn¡¯t show up in custom format dump either¡¦ I begin to wonder if it¡¯s > a bug in pg_dump. pg_dump's handling of schemas is pretty darn simple; it's hard to see how it could "miss" a schema like that. It would be useful to see the output of these commands executed in the problematic database: SELECT oid FROM pg_catalog.pg_namespace n WHERE n.nspname ~ '^(test)$'; SELECT tableoid, oid, nspname, (SELECT rolname FROM pg_catalog.pg_roles WHERE oid = nspowner) AS rolname, nspacl FROM pg_catalog.pg_namespace; which are pretty much everything pg_dump issues that's directly related to dumping schemas. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin