pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <greg@turnstep.com>
To: pgsql-sql@postgresql.org
Subject: Re: SQL Challenge: Arbitrary Cross-tab
Date: Fri, 20 Aug 2004 02:16:50 -0000
Message-ID: <a1aa78544af9cfda7c505876591e95dc@biglumber.com> (raw)
In-Reply-To: <22765.1092842015@sss.pgh.pa.us>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
 
> 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.)
 
Interesting. I realized that there was a finite chance of different
plans being chosen, but it seemed neigh-impossible since there is
no WHERE clause and the offsets only vary from 0-7. What sort of
different plans would it choose, out of curiosity?
Seq-scan vs. index-scan? Are there any particular cases where the
same plan is guaranteed to be used?
 
- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200408192216
-----BEGIN PGP SIGNATURE-----
 
iD8DBQFBJV9xvJuQZxSWSsgRAp74AJ96mtrKC1J53y0TPqTPdq2Xost0fACg4DnJ
7P+dgpHWBazGNE9+SR7uxLY=
=MZuM
-----END PGP SIGNATURE-----





view thread (16+ messages)  latest in thread

Message-ID: <a1aa78544af9cfda7c505876591e95dc@biglumber.com>
Permalink:  ../a1aa78544af9cfda7c505876591e95dc@biglumber.com/
Also on:    postgresql.org/message-id/a1aa78544af9cfda7c505876591e95dc@biglumber.com

 · 

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: greg@turnstep.com
  Subject: Re: SQL Challenge: Arbitrary Cross-tab
  In-Reply-To: <a1aa78544af9cfda7c505876591e95dc@biglumber.com>

* 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