On 10/21/2012 01:39 PM, Tom Lane wrote:
I'm not exactly following what that proves?  It seems like this is still
making a not-guaranteed assumption, which is that the outer INSERT isn't
going to choose to rearrange the order of the rows coming from the CTE.
Strictly speaking, even "SELECT * FROM ordered_inserts" isn't promising
anything about row order.


Hmm. If we do

    INSERT INTO foo
    SELECT ... ORDER BY

is that not guaranteed to insert in the desired order? We used to suggest that in the old CLUSTER docs. (I realize that's not what I suggested, but it seems relevant nevertheless.)


cheers

andrew



--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to