Skip site navigation (1) Skip section navigation (2)

Re: field incrementing in a PL/pgSQL trigger

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Tim Vadnais <tvadnais(at)earthlink(dot)net>
Cc: Postgres General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: field incrementing in a PL/pgSQL trigger
Date: 2004-10-28 17:35:57
Message-ID: 20041028173557.GB75259@winnie.fuhr.org (view raw or flat)
Thread:
Lists: 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/

In response to

pgsql-general by date

Next:From: Robby RussellDate: 2004-10-28 17:42:19
Subject: Re: determine sequence name for a serial
Previous:From: Froggy / Froggy Corp.Date: 2004-10-28 17:31:47
Subject: Re: [pgsql-fr-generale] Problème de threadPostgresql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group