Re: return query/composite types - Mailing list pgsql-hackers

From Tom Lane
Subject Re: return query/composite types
Date
Msg-id 14625.1235163325@sss.pgh.pa.us
Whole thread Raw
In response to Re: return query/composite types  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-hackers
Merlin Moncure <mmoncure@gmail.com> writes:
> On Fri, Feb 20, 2009 at 3:00 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Use "select * from ..." instead.

> Yeah...I was thinking maybe that shouldn't be required:

If you allow both interpretations then you create a syntactic ambiguity
(at least for the case of single-column composite types).  We have
historically allowed both in SQL functions, but I think that's a design
error that shouldn't be repeated in other PLs.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: return query/composite types
Next
From: Kris Jurka
Date:
Subject: Re: [Pljava-dev] Re: Should creating a new base type require superuser status?