Re: Proposal: casts row to array and array to row

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proposal: casts row to array and array to row
Date: 2011-10-11 13:36:33
Message-ID: 25836.1318340193@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> 2011/10/11 Robert Haas <robertmhaas(at)gmail(dot)com>:
>> On Tue, Oct 11, 2011 at 4:40 AM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> 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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2011-10-11 13:42:04 Re: Proposal: casts row to array and array to row
Previous Message Alexander Korotkov 2011-10-11 13:36:08 Re: index-only scans