Re: How to assemble all fields of (any) view into a string?

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Ken Tanzer <ken(dot)tanzer(at)gmail(dot)com>, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to assemble all fields of (any) view into a string?
Date: 2016-09-07 22:38:37
Message-ID: 25eecce3-d03a-18b3-6f81-f2843a2a60e6@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 9/7/16 5:32 PM, Ken Tanzer wrote:
> SELECT my_cat(ebh_gain,'ebh_gain') FROM ebh_gain;
>
> I know TCL and probably Python and others can work with a record as a
> trigger function. But TCL doesn't seem to accept a record as an
> argument. Can any of the other languages that could also accomplish
> this function? Or some other way? Thanks.

A PL that can accept composite types (such as plpythonu) should be able
to do this.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532) mobile: 512-569-9461

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2016-09-07 22:39:26 Re: a column definition list is required for functions returning "record"
Previous Message Jim Nasby 2016-09-07 22:33:58 Re: PostgreSQL Database performance