Re: user defined function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: user defined function
Дата
Msg-id 1582.1138206676@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: user defined function  (andrew <andrew.ylzhou@gmail.com>)
Ответы Re: user defined function  (andrew <andrew.ylzhou@gmail.com>)
Список pgsql-general
andrew <andrew.ylzhou@gmail.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: table is not a table
Следующее
От: MargaretGillon@chromalloy.com
Дата:
Сообщение: Re: Constraint that compares and limits field values