Re: proposal: generic function, constructor function - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal: generic function, constructor function
Date
Msg-id 162867790801182359i1e538443la4c0daa0ae3da5d6@mail.gmail.com
Whole thread Raw
In response to Re: proposal: generic function, constructor function  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: proposal: generic function, constructor function
List pgsql-hackers
On 19/01/2008, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Pavel Stehule" <pavel.stehule@gmail.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,

thank you
Pavel


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Traveling to London
Next
From: Oleg Bartunov
Date:
Subject: Re: proposal: generic function, constructor function