Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 12EABB5DC04 for ; Thu, 25 Aug 2011 10:00:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 45561-01 for ; Thu, 25 Aug 2011 13:00:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id BA859B5DBF9 for ; Thu, 25 Aug 2011 10:00:17 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p7PD0Hi0074201 for ; Thu, 25 Aug 2011 13:00:17 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p7PD0HiL074200; Thu, 25 Aug 2011 13:00:17 GMT (envelope-from www) Date: Thu, 25 Aug 2011 13:00:17 GMT Message-Id: <201108251300.p7PD0HiL074200@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6176: pg_dump dumps pg_catalog tables From: "Chander Ganesan" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201108/144 X-Sequence-Number: 30956 The following bug has been logged online: Bug reference: 6176 Logged by: Chander Ganesan Email address: chander@otg-nc.com PostgreSQL version: 9.0.4 Operating system: Centos 5.6 Description: pg_dump dumps pg_catalog tables Details: Normally, the pg_dump command ignored the pg_catalog tables when performing a dump. However, when provided the '--table' argument it fails to ignore the pg_catalog table. For example, suppose I had tables p1-p10 that I wanted to dump, I could use the following command: pg_dump test_db --table 'p*' This command would dump the requested tables, but it would also dump all the tables (in all schemas) that start with 'p*' . Generally speaking, there are no "excluded schemas" when using the pg_dump command with the '--table' argument. It is my belief that the pg_catalog tables should almost always be ignored (lest restores fail miserably).