Re: How to assemble all fields of (any) view into a string? - Mailing list pgsql-general

From Jim Nasby
Subject Re: How to assemble all fields of (any) view into a string?
Date
Msg-id 25eecce3-d03a-18b3-6f81-f2843a2a60e6@BlueTreble.com
Whole thread Raw
In response to Re: How to assemble all fields of (any) view into a string?  (Ken Tanzer <ken.tanzer@gmail.com>)
Responses Re: How to assemble all fields of (any) view into a string?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: How to assemble all fields of (any) view into a string?  (Ken Tanzer <ken.tanzer@gmail.com>)
Re: How to assemble all fields of (any) view into a string?  (Adrian Klaver <adrian.klaver@aklaver.com>)
List 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


pgsql-general by date:

Previous
From: Jim Nasby
Date:
Subject: Re: PostgreSQL Database performance
Next
From: Tom Lane
Date:
Subject: Re: a column definition list is required for functions returning "record"