Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Trx1J-00073v-AT for pgsql-bugs@arkaria.postgresql.org; Sun, 06 Jan 2013 20:40:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Trx1H-0007H3-Vv for pgsql-bugs@arkaria.postgresql.org; Sun, 06 Jan 2013 20:40:36 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TrqXB-0004Fk-AA for pgsql-bugs@postgresql.org; Sun, 06 Jan 2013 13:45:05 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TrqX8-0006Na-T5 for pgsql-bugs@postgresql.org; Sun, 06 Jan 2013 13:45:04 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TrqX7-0000TJ-FA for pgsql-bugs@postgresql.org; Sun, 06 Jan 2013 13:45:02 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TrqX7-0002qd-4e for pgsql-bugs@postgresql.org; Sun, 06 Jan 2013 13:45:01 +0000 Date: Sun, 06 Jan 2013 13:45:01 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7792: pg_dump does not treat -c flag correctly when using tar format To: pgsql-bugs@postgresql.org From: emesika@redhat.com 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 The following bug has been logged on the website: Bug reference: 7792 Logged by: Eli Mesika Email address: emesika@redhat.com PostgreSQL version: 9.1.7 Operating system: Fedora 16 Description:=20=20=20=20=20=20=20=20 steps to reproduce (aasuming database name is : test) 1) pg_dump -F t -U postgres -f test.tar test 2) tar xvf test.tar to any directory 3) vi restore.sql * restore.sql includes DROP statements for each object even tough -c flag was not given repeat the above using plain-text format 1) pg_dump -F p -U postgres -f test.sql test 2) vi test.sql This time test.sql does not include DROP staements for each object * pg_dump should not produce DROP statements for each object if -c flag was not given to the command --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs