Re: Field count in a RECORD variable - plpgsql - Mailing list pgsql-general

From Richard Huxton
Subject Re: Field count in a RECORD variable - plpgsql
Date
Msg-id 4224905B.30207@archonet.com
Whole thread Raw
In response to Field count in a RECORD variable - plpgsql  ("Mike Preston" <MPreston@mosscodilis.com>)
List pgsql-general
Mike Preston wrote:
> I am building a generic crosstab function in plpgsql, where I can pass
> in a SQL statement and return back the data pivoted with the values of
> one column serving as headers of the return columns.  If I use a RECORD
> variable to scroll through the data, is there a way for me to tell the
> number of fields returned by the SQL statement parameter?

No. You'll want to use pltcl or plperl or some similar more-dynamic
language.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Vitaly Belman
Date:
Subject: Re: Backupping the table values
Next
From: Richard Huxton
Date:
Subject: Re: Problem with pg_hba.conf