From: | andrew <andrew(dot)ylzhou(at)gmail(dot)com> |
---|---|
To: | pgsql general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: user defined function |
Date: | 2006-01-25 16:41:56 |
Message-ID: | 29d3b0b90601250841o468d82bfh78545560e78dc2c3@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
The following is just copied from the screen.
backend> create function foo(record) returns int4 as '$libdir/bar' language C
QUERY: create function foo(record) returns int4 as '$libdir/bar' language C
ERROR: parser: parse error at or near "record" at character 21
in Warn_restart code
What is the problem here? Did you test it on 7.3?
On 1/25/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> andrew <andrew(dot)ylzhou(at)gmail(dot)com> writes:
> > I use 7.3 and use RECORD as the input data type of the function by
> > "create function foo(record) returns int4 as '$libdir/bar' language
> > C". But I got this error msg:" ERROR: parser: parse error at or near
> > "record" at character". What is the problem?
>
> Sure you typed it correctly? I get
>
> regression=# create function foo(record) returns int4 as '$libdir/bar' language C;
> ERROR: stat failed on file '$libdir/bar': No such file or directory
> regression=#
>
> so it's getting past the parse-error stage here.
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-01-25 17:10:50 | Re: user defined function |
Previous Message | MargaretGillon | 2006-01-25 16:39:00 | Re: Constraint that compares and limits field values |