pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Dani Oderbolz <oderbolz@ecologic.de>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [SQL] "SELECT IN" Still Broken in 7.4b
Date: Thu, 21 Aug 2003 14:19:47 -0700
Message-ID: <200308211419.47226.josh@agliodbs.com> (raw)
In-Reply-To: <25062.1061498540@sss.pgh.pa.us>
References: <20030821102627.C51705-100000@megazone.bigpanda.com>
	<25062.1061498540@sss.pgh.pa.us>

Tom,

> I'm toying with the notion of ripping out that logic and instead
> building an in-memory hashtable of already-returned TIDs.  This could
> theoretically run out of memory if the multiple indexscan returns enough
> tuples, but I think in practice that wouldn't happen because the planner
> wouldn't choose an indexscan when very large numbers of tuples are being
> selected.

Don't forget all of the tyros who tune their queries through "set 
enable_seqscan=false".  I think we'd need some kind of memory safety valve on 
this, like sandboxing it in sort_mem.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




view thread (30+ messages)  latest in thread

Message-ID: <200308211419.47226.josh@agliodbs.com>
Permalink:  ../200308211419.47226.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200308211419.47226.josh@agliodbs.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: josh@agliodbs.com, tgl@sss.pgh.pa.us, sszabo@megazone.bigpanda.com, oderbolz@ecologic.de, pgsql-hackers@postgresql.org
  Subject: Re: [SQL] "SELECT IN" Still Broken in 7.4b
  In-Reply-To: <200308211419.47226.josh@agliodbs.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