X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 2190DD1B550 for ; Thu, 21 Aug 2003 18:22:09 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 57608-04 for ; Thu, 21 Aug 2003 18:21:40 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id B35BFD1B927 for ; Thu, 21 Aug 2003 18:21:37 -0300 (ADT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3534613; Thu, 21 Aug 2003 14:21:34 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Tom Lane , Stephan Szabo Subject: Re: [SQL] "SELECT IN" Still Broken in 7.4b Date: Thu, 21 Aug 2003 14:19:47 -0700 User-Agent: KMail/1.4.3 Cc: Dani Oderbolz , pgsql-hackers@postgresql.org References: <20030821102627.C51705-100000@megazone.bigpanda.com> <25062.1061498540@sss.pgh.pa.us> In-Reply-To: <25062.1061498540@sss.pgh.pa.us> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200308211419.47226.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/968 X-Sequence-Number: 42625 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=20 enable_seqscan=3Dfalse". I think we'd need some kind of memory safety valv= e on=20 this, like sandboxing it in sort_mem. --=20 -Josh Berkus Aglio Database Solutions San Francisco