Re: [GENERAL] variadic args to C functions

2013-06-21 Thread Alan Nilsson
perfect, thanks much alan On Jun 20, 2013, at 1:27 AM, Pavel Stehule wrote: Hello I wrote lot of C VARIADIC functions - some examples are in core - format function Schema | Name| Result data type | Argument data types | Type

Re: [GENERAL] variadic args to C functions

2013-06-20 Thread Pavel Stehule
Hello I wrote lot of C VARIADIC functions - some examples are in core - format function Schema | Name| Result data type | Argument data types | Type +---+--+--+ pg_catalog | concat| text | VARIADIC any

[GENERAL] variadic args to C functions

2013-06-19 Thread Alan Nilsson
Has anyone got any pointers on implementing a C function in an extension that takes variadic args? I would like to do something like: select my_function(XXX,...); where XXX will be between 1 and many integers. Possible? I didn't see any examples in the contrib directory. -- Sent via