Re: WITH RECURSIVE ... CYCLE in vanilla SQL: issues with arrays of rows

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: WITH RECURSIVE ... CYCLE in vanilla SQL: issues with arrays of rows
Date: 2008-10-13 19:40:59
Message-ID: b42b73150810131240i5995ccer5e21166bdf8233d3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Oct 13, 2008 at 9:56 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I wrote:
>> "Merlin Moncure" <mmoncure(at)gmail(dot)com> writes:
>>> select foo from foo order by foo;
>>> ERROR: could not identify an ordering operator for type foo
>
>> Yeah, these are because of the incomplete handling of named record
>> types. I'm not sure how far we want to go in that direction.
>
> On looking closer, all these cases fail because I forgot to teach
> IsBinaryCoercible() that any composite type should be considered
> binary-coercible to RECORD. Which is clearly sensible.
>
> I'm inclined to apply the patch with binary-coercibility adjustments
> and not try to turn RECORD or RECORD[] into full-fledged polymorphic
> types. It's not immediately clear what the use of that would be
> anyway.

...meaning, that you would not be able to create a function taking
generic 'record' as a parameter? In that case I agree...any chance of
getting an updated patch?

merlin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2008-10-13 19:41:15 Re: Year 2038 Bug?
Previous Message Zdenek Kotala 2008-10-13 19:35:40 Re: Year 2038 Bug?