Re: adding a function to pg_proc.h

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jaime Casanova <systemguards(at)gmail(dot)com>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>, Bernd Helmle <bernd(dot)helmle(at)oopsware(dot)de>
Subject: Re: adding a function to pg_proc.h
Date: 2005-05-25 23:46:07
Message-ID: 10851.1117064767@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jaime Casanova <systemguards(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vikram Kalsi 2005-05-26 00:20:09 Re: Source Code Help Needed
Previous Message Jaime Casanova 2005-05-25 22:48:18 adding a function to pg_proc.h