BUG #7792: pg_dump does not treat -c flag correctly when using tar format - Mailing list pgsql-bugs

From emesika@redhat.com
Subject BUG #7792: pg_dump does not treat -c flag correctly when using tar format
Date
Msg-id E1TrqX7-0002qd-4e@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #7792: pg_dump does not treat -c flag correctly when using tar format
List pgsql-bugs
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:        =


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

pgsql-bugs by date:

Previous
From: s.reiser@tu-bs.de
Date:
Subject: BUG #7794: pg_dump: errors when using pipes/streams
Next
From: davios@gmail.com
Date:
Subject: BUG #7793: tsearch_data thesaurus size limit