[HACKERS] where to write small reusable functions ?

2007-04-13 Thread Dany DeBontridder
Hi, I'm working to implement a new feature to pg_dump: the ability to dump objects like function, indexes... And I notice that there some usefull functions like pg_malloc, pg_calloc... So I've added pg_free to avoid the sequence if-not-null-free-point-to-NULL, now I'd like to add a function

Re: [HACKERS] where to write small reusable functions ?

2007-04-13 Thread Dany DeBontridder
On 4/13/07, Heikki Linnakangas [EMAIL PROTECTED] wrote: Dany DeBontridder wrote: I'm working to implement a new feature to pg_dump: the ability to dump objects like function, indexes... pg_dump already dumps functions and indexes. Right but you can't dump only one or two functions

[HACKERS] Patch for pg_dump

2007-05-03 Thread Dany DeBontridder
I often need in command line to get the code of function, so I make a patch for pg_dump, thanks this patch pg_dump is able to dump only one functions or all the functions. The argument is --object or -B Example: ./pg_dump -Bfunction:test_it -Bfunction:dblink_open To dump the functions

[HACKERS] Patch for pg_dump

2007-03-20 Thread Dany DeBontridder
Here is a (small) patch to give the ability to pg_dump to export only the functions (or only one), very useful when you often develop with psql ( postgresql.8.2.3) Usage: pg_dump -Q function_name DATABASE export function_name pg_dump -QDATABASE export all the functions

Re: [HACKERS] Patch for pg_dump

2007-03-21 Thread Dany DeBontridder
Sorry I forgot the attach :-) It is not perfect so bear with me, it is my first try. Regards, D. On 3/21/07, Bruce Momjian [EMAIL PROTECTED] wrote: And the patch is so small, it is invisible (missing). ;-) --- Dany

Re: [HACKERS] Patch for pg_dump

2007-03-22 Thread Dany DeBontridder
On 3/21/07, Tom Lane [EMAIL PROTECTED] wrote: Bruce Momjian [EMAIL PROTECTED] writes: I guess this matches this TODO item: o Allow selection of individual object(s) of all types, not just tables (...) Code-wise, the patch seems a bit of a mess too --- it will certainly not