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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Merlin Moncure" <mmoncure(at)gmail(dot)com>, 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 13:56:55
Message-ID: 12276.1223906215@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2008-10-13 14:06:44 Re: out-of-date comment in auto-generated oidjoins.sql
Previous Message Zdenek Kotala 2008-10-13 13:47:06 Re: pg_upgrade: convert on read is dead end