Re: adding a function to pg_proc.h - Mailing list pgsql-hackers

From Tom Lane
Subject Re: adding a function to pg_proc.h
Date
Msg-id 10851.1117064767@sss.pgh.pa.us
Whole thread Raw
In response to adding a function to pg_proc.h  (Jaime Casanova <systemguards@gmail.com>)
Responses Re: adding a function to pg_proc.h  (Jaime Casanova <systemguards@gmail.com>)
List pgsql-hackers
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 ;-)

Also, it seems highly unlikely that this function should be marked
as immutable.  Stable sounds more likely.

Also, defining the return type as ANYELEMENT will definitely NOT work,
since none of the input arguments are polymorphic.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Jaime Casanova
Date:
Subject: adding a function to pg_proc.h
Next
From: Vikram Kalsi
Date:
Subject: Re: Source Code Help Needed