Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id E635C1337B6E for ; Fri, 25 Mar 2011 17:06:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 37484-02 for ; Fri, 25 Mar 2011 20:06:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 4CA4C133616B for ; Fri, 25 Mar 2011 17:06:48 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p2PK6UPC015646; Fri, 25 Mar 2011 16:06:31 -0400 (EDT) To: Robert Haas cc: Kevin Grittner , Dan Ports , YAMAMOTO Takashi , pgsql-hackers@postgresql.org Subject: Re: SSI bug? In-reply-to: References: <20110221234236.4635E19D574@mail.netbsd.org> <20110318022622.196E519CFCA@mail.netbsd.org> <4D835508020000250003BAD2@gw.wicourts.gov> <20110318181832.GB72629@csail.mit.edu> <4D837F6F020000250003BAF6@gw.wicourts.gov> <4D838EFC020000250003BB12@gw.wicourts.gov> Comments: In-reply-to Robert Haas message dated "Fri, 25 Mar 2011 15:18:41 -0400" Date: Fri, 25 Mar 2011 16:06:30 -0400 Message-ID: <15645.1301083590@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/1481 X-Sequence-Number: 184731 Robert Haas writes: > On Fri, Mar 18, 2011 at 5:57 PM, Kevin Grittner > wrote: >>> I'm still looking at whether it's sane to try to issue a warning >>> when an HTAB exceeds the number of entries declared as its >>> max_size when it was created. > I don't think it's too late to commit something like this, but I'm not > clear on whether we want it. We do *not* want that. Up to now, I believe the lockmgr's lock table is the only shared hash table that is expected to grow past the declared size; that can happen anytime a session exceeds max_locks_per_transaction, which we consider to be only a soft limit. I don't know whether SSI has introduced any other hash tables that behave similarly. (If it has, we might want to rethink the amount of "slop" space we leave in shmem...) There might perhaps be some value in adding a warning like this if it were enabled per-table (and not enabled by default). But I'd want to see a specific reason for it, not just "let's see if we can scare users with a WARNING appearing out of nowhere". regards, tom lane