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

From Tom Lane
Subject Re: How to assemble all fields of (any) view into a string?
Date
Msg-id 3200.1473288370@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to assemble all fields of (any) view into a string?  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
List pgsql-general
Jim Nasby <Jim.Nasby@BlueTreble.com> writes:
> On 9/7/16 5:32 PM, Ken Tanzer wrote:
>> 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.

I think pltcl is actually the only one of our standard PLs that can't take
"record".  There's no intrinsic reason for that, it just hasn't gotten the
love the other PLs have.

            regards, tom lane


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: a column definition list is required for functions returning "record"
Next
From: Adrian Klaver
Date:
Subject: Re: How to assemble all fields of (any) view into a string?