From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: proposal: generic function, constructor function |
Date: | 2008-01-19 10:16:06 |
Message-ID: | Pine.LNX.4.64.0801191315190.26876@sn.sai.msu.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sat, 19 Jan 2008, Pavel Stehule wrote:
> On 19/01/2008, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> writes:
>>> But I am not able create function with
>>> ANY params. Is it possible do it via CREATE FUNCTION .. ?
>>
>> It's a reserved word :-(. Try "any"
>>
>> regards, tom lane
>>
>
> I did it
> postgres=# create or replace function fx1(any, any) returns text
> language C strict;
> ERROR: syntax error at or near "any"
> LINE 1: create or replace function fx1(any, any) returns text langua...
> ^
> postgres=#
>
> do you have any sample, please,
Tom said, try "any". Don't forget about double quotes
>
> thank you
> Pavel
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru)
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2008-01-19 11:15:51 | Re: proposal: generic function, constructor function |
Previous Message | Pavel Stehule | 2008-01-19 07:59:18 | Re: proposal: generic function, constructor function |