On Tue, Oct 11, 2011 at 8:36 AM, Tom Lane <[email protected]> wrote:
> Pavel Stehule <[email protected]> writes:
>> 2011/10/11 Robert Haas <[email protected]>:
>>> On Tue, Oct 11, 2011 at 4:40 AM, Pavel Stehule <[email protected]> 
>>> wrote:
>>>> What do you think about this idea?
>
> It's a bad one.
>
>>> Well, a ROW can contain values of different types; an ARRAY can't.
>
>> yes, I know - but it should be problem only in few cases - when is not
>> possible to cast a row field to array field.
>
> This idea is basically the same as "data types don't matter", which is
> not SQL-ish and certainly not Postgres-ish.

hm. I agree, but if it were possible to create sql/plpgsql functions
accepting 'record', then you could at least rig the cast in userland
around hstore without resorting to hacky text manipulation and/or
flattening the record to text before doing the operation.

merlin

-- 
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to