pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron Peterson <rpeterso@mtholyoke.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: insert rule doesn't see id field
Date: Mon, 13 Jan 2003 17:16:09 -0500
Message-ID: <6335.1042496169@sss.pgh.pa.us> (raw)
In-Reply-To: <20030113221129.GA32653@mtholyoke.edu>
References: <20030107145422.GE12245@mtholyoke.edu>
	<13558.1041955268@sss.pgh.pa.us>
	<20030113221129.GA32653@mtholyoke.edu>

Ron Peterson <rpeterso@mtholyoke.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



view thread (14+ messages)

Message-ID: <6335.1042496169@sss.pgh.pa.us>
Permalink:  ../6335.1042496169@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6335.1042496169@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rpeterso@mtholyoke.edu
  Subject: Re: insert rule doesn't see id field
  In-Reply-To: <6335.1042496169@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox