Re: field incrementing in a PL/pgSQL trigger - Mailing list pgsql-general

From Michael Fuhr
Subject Re: field incrementing in a PL/pgSQL trigger
Date
Msg-id 20041028173557.GB75259@winnie.fuhr.org
Whole thread Raw
In response to field incrementing in a PL/pgSQL trigger  ("Tim Vadnais" <tvadnais@earthlink.net>)
List pgsql-general
On Thu, Oct 28, 2004 at 09:14:17AM -0700, Tim Vadnais wrote:
>
> My questions are: Is there a way I can dynamically determine the number of
> fields in the rows that is being maintained. (a function much like:
> PQnfields(const PGresult *); )
> Then I need a way to get the name of the field (using a function much like:
> PQfname(const PGresult *, int); )

You asked this last week and there were a couple of responses:

http://archives.postgresql.org/pgsql-general/2004-10/msg01077.php
http://archives.postgresql.org/pgsql-general/2004-10/msg01097.php
http://archives.postgresql.org/pgsql-general/2004-10/msg01112.php

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: primary key and existing unique fields
Next
From: Robby Russell
Date:
Subject: Re: determine sequence name for a serial