Re: adding a function to pg_proc.h

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: adding a function to pg_proc.h
Дата
Msg-id c2d9e70e0505251732379d0ab7@mail.gmail.com
обсуждение исходный текст
Ответ на Re: adding a function to pg_proc.h  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: adding a function to pg_proc.h  (Jaime Casanova <systemguards@gmail.com>)
Список pgsql-hackers
On 5/25/05, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Jaime Casanova <systemguards@gmail.com> writes:
> > I have added a function in sources and added appropiate lines in
> pg_proc.h
> > DATA(insert OID = 2560 ( get_view_column_default    PGNSP PGUID 12 f f
> > t f i 1 2283 "25 25 21" _null_ _null_ _null_ get_view_column_default -
> > _null_));
> > DESCR("get default value for view column");
>
> Try putting the right value for pronargs ;-)
>
jeje... fooly of me

> Also, it seems highly unlikely that this function should be marked
> as immutable.  Stable sounds more likely.
>
i don't know when i change this i marked it volatile, but well.. again
it's my fault

> Also, defining the return type as ANYELEMENT will definitely NOT work,
> since none of the input arguments are polymorphic.
>
mmm... This is a problem, there is a way to make a function that can
be used for returning different datatypes depending on the columns

>             regards, tom lane
>

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)


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

Предыдущее
От: Vikram Kalsi
Дата:
Сообщение: Re: Source Code Help Needed
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Network write errors (was: Re: Feature freeze date for