Stephen Frost <[EMAIL PROTECTED]> 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 ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster