Re: insert rule doesn't see id field

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ron Peterson <rpeterso(at)mtholyoke(dot)edu>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: insert rule doesn't see id field
Date: 2003-01-13 22:16:09
Message-ID: 6335.1042496169@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches pgsql-sql

Ron Peterson <rpeterso(at)mtholyoke(dot)edu> writes:
> I can find out this info
> for the relation pulling the trigger easy enought, but how would I go
> about getting this info when all I have is the table/field name? I
> could create and execute a SQL query something like the following, but
> is that really the way to get at this info in C code?

Open the target relation and examine its tuple descriptor ...

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2003-01-13 22:46:04 Re: targetlist functions part 1 (was [HACKERS] targetlist
Previous Message Ron Peterson 2003-01-13 22:11:29 Re: insert rule doesn't see id field

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2003-01-13 22:18:57 Re: Postgresql Bug List?
Previous Message Ron Peterson 2003-01-13 22:11:29 Re: insert rule doesn't see id field