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

From: Noah Misch <noah(at)leadboat(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proposal: casts row to array and array to row
Date: 2011-11-05 13:57:43
Message-ID: 20111105135743.GA17618@tornado.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Oct 11, 2011 at 10:40:26AM +0200, Pavel Stehule wrote:
> What do you think about this idea?

+1, belatedly. Having inherent casts to/from text since version 8.3 has
smoothed out some aggravating corner cases. If the patch isn't invasive and the
casts are all explicit-only, I anticipate a similar win.

True, unlike any -> text, not every cast will actually work. However, the
semantics are well-defined and incompatible choices can be detected just as
readily as we do for incompatible casts among scalars.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2011-11-05 14:35:23 type privileges and default privileges
Previous Message hubert depesz lubaczewski 2011-11-05 12:38:35 Re: Strange problem with create table as select * from table;