Re: Interesting CREATE TABLE AS misbehavior - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Interesting CREATE TABLE AS misbehavior
Date
Msg-id 27663.1158590702@sss.pgh.pa.us
Whole thread Raw
In response to Re: Interesting CREATE TABLE AS misbehavior  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> I'd tend to agree that it seems like a bug but I'm a little mystified as
> to why an 'order by' would be desired (or allowed) for a 'create table as'
> at all.  Allowing it seems to imply it has some meaning.

By that logic we should disallow CLUSTER, REINDEX, and a host of other
things that are meaningless according to the SQL data model ;-)

But if you want a plausible use-case, the combination of ORDER BY and
LIMIT certainly seems interesting and useful, even if each one alone
is debatable.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: OID conflicts
Next
From: Peter Eisentraut
Date:
Subject: Re: [PATCHES] Patch for UUID datatype (beta)