Re: Interesting CREATE TABLE AS misbehavior

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Interesting CREATE TABLE AS misbehavior
Дата
Msg-id 27663.1158590702@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Interesting CREATE TABLE AS misbehavior  (Stephen Frost <sfrost@snowman.net>)
Список 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 по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: OID conflicts
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [PATCHES] Patch for UUID datatype (beta)