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 B4D9FD1BA94 for ; Thu, 21 Aug 2003 19:18:40 -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 74224-07 for ; Thu, 21 Aug 2003 19:18:09 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 95F6BD1B9DE for ; Thu, 21 Aug 2003 19:18:06 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h7LMHt5H029874; Thu, 21 Aug 2003 18:17:55 -0400 (EDT) To: Joe Conway Cc: Stephan Szabo , Dani Oderbolz , pgsql-hackers@postgresql.org Subject: Re: [SQL] "SELECT IN" Still Broken in 7.4b In-reply-to: <3F45414A.6030301@joeconway.com> References: <20030821102627.C51705-100000@megazone.bigpanda.com> <25062.1061498540@sss.pgh.pa.us> <3F45414A.6030301@joeconway.com> Comments: In-reply-to Joe Conway message dated "Thu, 21 Aug 2003 15:01:46 -0700" Date: Thu, 21 Aug 2003 18:17:55 -0400 Message-ID: <29873.1061504275@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/972 X-Sequence-Number: 42629 Joe Conway writes: > Tom Lane wrote: >> 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. > I thought with your recent changes, you could use dynahash, which > already spills to disk instead of consuming all memory? I was going to use dynahash, but it doesn't spill to disk. You're confusing that with the HashJoin mechanism, which is quite different and only really useful for joins. regards, tom lane