Re: Inspection of row types in pl/pgsql and pl/sql - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Inspection of row types in pl/pgsql and pl/sql
Date
Msg-id 14390.1258216818@sss.pgh.pa.us
Whole thread Raw
In response to Re: Inspection of row types in pl/pgsql and pl/sql  ("Florian G. Pflug" <fgp@phlo.org>)
Responses Re: Inspection of row types in pl/pgsql and pl/sql
List pgsql-hackers
"Florian G. Pflug" <fgp@phlo.org> writes:
> Ok, I must be missing something. I currently fail to see how
> my proposed
>    record_value(record, name, anyelement) returns anyelement
> function differs (from the type system's point of view) from
>    value_from_string(text, anyelement) returns anyelement
> which simply casts the text value to the given type and can easily be
> implemented in plpgsq.

The problem is at the call site --- if you try to call it with different
record types on different calls you're going to get a failure.
Or so I expect anyway.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: Re: Inspection of row types in pl/pgsql and pl/sql
Next
From: Robert Hodges
Date:
Subject: Re: Hot standby, overflowed snapshots, testing