Re: INSERT/SELECT with ORDER BY

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: Bob Rivoir <rhr2(at)psu(dot)edu>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: INSERT/SELECT with ORDER BY
Date: 2000-10-12 19:00:36
Message-ID: 200010121900.PAA10883@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>
> Unless I'm horribly misreading the spec, this is correct.
> ORDER BY is used in reference to cursor definitions and
> direct select statements, but is not part of query expressions
> which is what the INSERT INTO references.
>
> <insert statement> ::=
> INSERT INTO <table name>
> <insert columns and source>
>
> <insert columns and source> ::=
> [ <left paren> <insert column list> <right paren> ]
> <query expression>
> | DEFAULT VALUES
>
> <insert column list> ::= <column name list>
>
> But, this may be a useful extension to allow, at least with the
> existance of LIMIT.

Yes, added to TODO.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message pgsql-bugs 2000-10-13 10:44:49 Drop table doesn't drop serial sequences.
Previous Message Peter Eisentraut 2000-10-12 17:33:00 Re: Truble with compilation