Re: get column name passed to a function

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: "Rhys A(dot)D(dot) Stewart" <rhys(dot)stewart(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: get column name passed to a function
Date: 2012-11-20 22:23:08
Message-ID: 50AC02CC.6080906@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/20/2012 01:34 PM, Rhys A.D. Stewart wrote:
> bummer.
>
> No, not dynamic queries just wanted to have the name of the columns
> along with the column data. Literally just like xmlforest, but without
> the xml.

Well in pl/pythonu you can, if you use the plpy module:

http://www.postgresql.org/docs/9.2/interactive/plpython-database.html

>
> Thanks,
>
> Rhys

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2012-11-20 22:25:50 Re: 9.2 streaming replication issue and solution strategy
Previous Message Adrian Klaver 2012-11-20 22:19:47 Re: timezone, how postgres deal with it?