Re: SQL Challenge: Arbitrary Cross-tab

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: SQL Challenge: Arbitrary Cross-tab
Date: 2004-08-18 15:13:35
Message-ID: 22765.1092842015@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Greg Sabino Mullane" <greg(at)turnstep(dot)com> writes:
>> Don't you miss for each subselect an order by tid ?

> No: since all the SELECTs are part of one statement, they
> will have the same (pseudo-random) implicit order.

Nope; Gaetano's right, you cannot assume that. It's entirely possible
for the planner to choose different plans depending on the OFFSET.
(Maybe not very likely, with such small offsets, but could happen.)

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2004-08-18 15:16:49 Re: multi column foreign key for implicitly unique columns
Previous Message Gaetano Mendola 2004-08-18 14:48:27 Re: SQL Challenge: Arbitrary Cross-tab