pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Sabino Mullane <greg@turnstep.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL Challenge: Arbitrary Cross-tab
Date: Wed, 18 Aug 2004 11:13:35 -0400
Message-ID: <22765.1092842015@sss.pgh.pa.us> (raw)
In-Reply-To: <4229381dfaf8f3ae1e4cb0ae62d6f012@biglumber.com>
References: <4229381dfaf8f3ae1e4cb0ae62d6f012@biglumber.com>

"Greg Sabino Mullane" <greg@turnstep.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



view thread (16+ messages)  latest in thread

Message-ID: <22765.1092842015@sss.pgh.pa.us>
Permalink:  ../22765.1092842015@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22765.1092842015@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, greg@turnstep.com
  Subject: Re: SQL Challenge: Arbitrary Cross-tab
  In-Reply-To: <22765.1092842015@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox