Re: Inspection of row types in pl/pgsql and pl/sql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
Cc: Postgresql-Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Inspection of row types in pl/pgsql and pl/sql
Date: 2009-11-14 16:40:18
Message-ID: 14390.1258216818@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Florian G. Pflug" <fgp(at)phlo(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Hodges 2009-11-14 16:43:59 Re: Hot standby, overflowed snapshots, testing
Previous Message Florian G. Pflug 2009-11-14 16:31:01 Re: Inspection of row types in pl/pgsql and pl/sql