From: | Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)it> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Variadic polymorpic functions |
Date: | 2010-01-25 07:50:36 |
Message-ID: | 3eff28921001242350w76875d86sf507c22fa3a6dd6e@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
2010/1/25 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:
> 2010/1/25 Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)it>:
>> 2010/1/23 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:
>>> 2010/1/22 Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)it>:
>>>> 2010/1/22 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
>>>>> Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)it> writes:
>>>>>> 2010/1/22 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
>>>>>>> regression=# CREATE FUNCTION q( fmt text, variadic args "any" )
>>>>>
>>>>>> And this would allow for a stdarg-like argument list?
>>>>>
>>>>> Yeah, it should work, given suitable C code.
>>>>
>>>> Great!
>>>>
>>>
>>> I wrote this function year ago.
>>>
>>> look on content
>>>
>>> http://pgfoundry.org/projects/pstcollection/
>>
>> Pavel,
>> that format() function should be included into official contribs.
>> What about HOWTO compile?
>
> There are not consensus about final semantic - some people prefer
> sprintf like, some others PostgreSQL RAISE NOTICE like. so I'll keep
> it outside. I looking on source of pstcollection - missing
> documentation, missing regress test. I never rebuild it outside
> PostgreSQL source tree - so it could be problem. Now: copy src to
> contrib directory, make, make install - like standard contrib module.
>
> If you would to add some doc or notes, please, add it.
I figured that out (from the Makefile)
USE_PGXS=1 make install
--
Vincenzo Romano
NotOrAnd Information Technologies
NON QVIETIS MARIBVS NAVTA PERITVS
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2010-01-25 07:53:04 | Re: Variadic polymorpic functions |
Previous Message | Pavel Stehule | 2010-01-25 07:39:10 | Re: Variadic polymorpic functions |