Re: [HACKERS] pg_dump option to dump only functions

2005-10-30 Thread Sean Utt
ginal Message - From: "Andrew Dunstan" <[EMAIL PROTECTED]> To: "Sean Utt" <[EMAIL PROTECTED]> Cc: Sent: Sunday, October 30, 2005 3:05 PM Subject: Re: [HACKERS] pg_dump option to dump only functions You have omitted the "case 0" line following the comme

Re: [HACKERS] pg_dump option to dump only functions

2005-10-30 Thread Andrew Dunstan
You have omitted the "case 0" line following the comment, which is in fact what it refers to. The -X options return 0 if called in long form, because then we store a flag rather than returning a distinct value. See man 3 getopt. cheers andrew Sean Utt wrote: In what might be called my spa

Re: [HACKERS] pg_dump option to dump only functions

2005-10-30 Thread Sean Utt
In what might be called my spare time, I was looking at pg_dump.c to see about adding an option to dump only functions, and I think a comment got pushed out of place in the section for handling arguments: 395 case 'X': 396 if (strcmp

Re: [HACKERS] pg_dump option to dump only functions

2005-10-11 Thread Bruce Momjian
Tino Wildenhain wrote: > > Proposed TODO entries for pg_dump: > > > > * Allow selection of individual object(s) of all types, not just tables > > * In a selective dump, allow dumping of all dependencies of the objects > > May I suggest the implementation of -l / -L like pg_restore has? > So you c

Re: [HACKERS] pg_dump option to dump only functions

2005-10-11 Thread Bruce Momjian
Tom Lane wrote: > Josh Berkus writes: > >> I was wonderring, because I create a lot of server side utility functions, > >> whether adding an option to pg_dump to just dump functions has been > >> considered. I did a quick perusal of the code, and noted that there is a > >> separate section within

Re: [HACKERS] pg_dump option to dump only functions

2005-10-09 Thread Tino Wildenhain
Am Samstag, den 08.10.2005, 18:03 -0400 schrieb Tom Lane: > Josh Berkus writes: > >> I was wonderring, because I create a lot of server side utility functions, > >> whether adding an option to pg_dump to just dump functions has been > >> considered. I did a quick perusal of the code, and noted tha

Re: [HACKERS] pg_dump option to dump only functions

2005-10-08 Thread Tom Lane
Josh Berkus writes: >> I was wonderring, because I create a lot of server side utility functions, >> whether adding an option to pg_dump to just dump functions has been >> considered. I did a quick perusal of the code, and noted that there is a >> separate section within pg_dump to get the functio

Re: [HACKERS] pg_dump option to dump only functions

2005-10-08 Thread Jim C. Nasby
On Sat, Oct 08, 2005 at 02:24:00PM -0700, Josh Berkus wrote: > Sean, > > > I was wonderring, because I create a lot of server side utility functions, > > whether adding an option to pg_dump to just dump functions has been > > considered. I did a quick perusal of the code, and noted that there is a

Re: [HACKERS] pg_dump option to dump only functions

2005-10-08 Thread Josh Berkus
Sean, > I was wonderring, because I create a lot of server side utility functions, > whether adding an option to pg_dump to just dump functions has been > considered. I did a quick perusal of the code, and noted that there is a > separate section within pg_dump to get the functions, but it is not

[HACKERS] pg_dump option to dump only functions

2005-10-08 Thread Sean Utt
I was wonderring, because I create a lot of server side utility functions, whether adding an option to pg_dump to just dump functions has been considered. I did a quick perusal of the code, and noted that there is a separate section within pg_dump to get the functions, but it is not able to be trig