Re: [PATCHES] Patch for pg_dump: Multiple -t options and new -T

2004-07-21 Thread David F. Skoll
On Wed, 21 Jul 2004, Tom Lane wrote: > pg_dump -t s1.t1 -t s2.t2 -- Dump s1.t1 and s2.t2 That's a good idea, but then it's questionable whether we need the -n switch at all. It might be simpler to extend the -t switch to accept: pg-dump -t 's1.*' rather than using a -n swi

Re: [PATCHES] Patch for pg_dump: Multiple -t options and new -T

2004-07-21 Thread David F. Skoll
On Wed, 21 Jul 2004, Bruce Momjian wrote: > Even though I suggested it, I am afraid this is just too confusing an API. How about this: pg_dump -t t1 -- Dump table t1 in any schema pg_dump -n s1 -- Dump all of schema s1 pg_dump -t t1 -n s1

Re: [PATCHES] Patch for pg_dump: Multiple -t options and new -T

2004-07-21 Thread David F. Skoll
Hi, This is a response to several messages: 1) Copyright notice: I have no problem having this removed, although it would be nice to credit me somewhere in a comment. 2) I put most of the code in a separate file so that if the patch is rejected, it's easy for me to maintain a forked copy. If t

Re: [PATCHES] Patch for pg_dump: Multiple -t options and new -T

2004-07-20 Thread David F. Skoll
On Tue, 20 Jul 2004, Tom Lane wrote: > (BTW, does the patch handle multiple -n switches?) No, it doesn't. I can look into that if you like. The patch was entirely to satisfy a need some of our customers have. The -T switch does fill a real need for our customers; our product has a couple of ta

[PATCHES] Patch for pg_dump: Multiple -t options and new -T option

2004-07-14 Thread David F. Skoll
pg_dump -t table1 -t table2 db will dump table1 and table2 only, whereas: pg_dump -T table1 -T table2 db will dump all the tables *except* table1 and table2. Tested briefly on my system; doesn't seem to break anything. Regards, David. -- David F. Skoll <[EMAIL PROTECTED