Re: [HACKERS] Table data exclusion patch for pg_dump

2009-05-01 Thread Jaime Casanova
On Fri, May 1, 2009 at 2:25 PM, Andrew Dunstan wrote: > > > Tom Lane wrote: >> >> Vadim Trochinsky writes: >> >>> This is a patch that allows choosing not to dump the data for the >>> selected tables. >>> >> Why wouldn't you just use -s ? >> > > You might want the whole schema and data for most b

Re: [HACKERS] Table data exclusion patch for pg_dump

2009-05-01 Thread Tom Lane
Andrew Dunstan writes: > Well, you can shoot yourself in the foot using pg_restore's --use-list > option too, but that doesn't mean it's not useful. And indeed it could > be used to achieve the OP's ends, except that he would have spent > useless time and space dumping the data for a table he d

Re: [HACKERS] Table data exclusion patch for pg_dump

2009-05-01 Thread Pavel Stehule
2009/5/1 Tom Lane : > Andrew Dunstan writes: >> Tom Lane wrote: >>> Why wouldn't you just use -s ? > >> You might want the whole schema and data for most but not all of the >> tables (e.g. you might leave out a large session table for a web app). > > The use-case seems pretty thin to me, and the p

Re: [HACKERS] Table data exclusion patch for pg_dump

2009-05-01 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan writes: Tom Lane wrote: Why wouldn't you just use -s ? You might want the whole schema and data for most but not all of the tables (e.g. you might leave out a large session table for a web app). The use-case seems pretty thin to me,

Re: [HACKERS] Table data exclusion patch for pg_dump

2009-05-01 Thread Tom Lane
Andrew Dunstan writes: > Tom Lane wrote: >> Why wouldn't you just use -s ? > You might want the whole schema and data for most but not all of the > tables (e.g. you might leave out a large session table for a web app). The use-case seems pretty thin to me, and the potential for shooting oneself

Re: [HACKERS] Table data exclusion patch for pg_dump

2009-05-01 Thread Asko Oja
How do you use -s to exclude data for some tables from otherwise full dump? Dump schema and data separately? On Fri, May 1, 2009 at 6:38 PM, Tom Lane wrote: > Vadim Trochinsky writes: > > This is a patch that allows choosing not to dump the data for the > selected > > tables. > > Why wouldn't y

Re: [HACKERS] Table data exclusion patch for pg_dump

2009-05-01 Thread Andrew Dunstan
Tom Lane wrote: Vadim Trochinsky writes: This is a patch that allows choosing not to dump the data for the selected tables. Why wouldn't you just use -s ? You might want the whole schema and data for most but not all of the tables (e.g. you might leav

Re: [HACKERS] Table data exclusion patch for pg_dump

2009-05-01 Thread Tom Lane
Vadim Trochinsky writes: > This is a patch that allows choosing not to dump the data for the selected > tables. Why wouldn't you just use -s ? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription:

[HACKERS] Table data exclusion patch for pg_dump

2009-05-01 Thread Vadim Trochinsky
Hello! This is a patch that allows choosing not to dump the data for the selected tables. The intended usage is to make backups smaller and faster, by allowing skipping unneeded data, while still generating a backup that can be restored and obtain a fully working application. I use it to avoi