Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7O7l-0001rI-0P for pgsql-committers@arkaria.postgresql.org; Fri, 22 Mar 2019 17:38:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h7O7h-0001U8-Uz for pgsql-committers@arkaria.postgresql.org; Fri, 22 Mar 2019 17:38:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7O7h-0001Tw-Lw for pgsql-committers@lists.postgresql.org; Fri, 22 Mar 2019 17:38:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h7O7f-0003Hq-9d for pgsql-committers@lists.postgresql.org; Fri, 22 Mar 2019 17:38:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x2MHcOmx004643; Fri, 22 Mar 2019 13:38:24 -0400 From: Tom Lane To: Peter Geoghegan cc: pgsql-committers Subject: Re: pgsql: Make heap TID a tiebreaker nbtree index column. In-reply-to: References: <13999.1553105283@sss.pgh.pa.us> <24277.1553114810@sss.pgh.pa.us> <16667.1553116435@sss.pgh.pa.us> <17604.1553118255@sss.pgh.pa.us> <17845.1553118645@sss.pgh.pa.us> <8748.1553119737@sss.pgh.pa.us> <21983.1553138224@sss.pgh.pa.us> <5446.1553272377@sss.pgh.pa.us> <6226.1553274783@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Fri, 22 Mar 2019 10:23:58 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4641.1553276304.1@sss.pgh.pa.us> Date: Fri, 22 Mar 2019 13:38:24 -0400 Message-ID: <4642.1553276304@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Geoghegan writes: > On Fri, Mar 22, 2019 at 10:13 AM Tom Lane wrote: >> 1a seems a bit ambitious but maybe it's worth doing, considering >> that right now there's a non-negligible chance of OOM if you >> try to drop a role that owns a huge number of objects, or just >> plain failure due to the stringinfo buffer for the message getting >> past MaxAllocSize. Sending a gigabyte-sized message to the server >> log could be pretty unfriendly in some contexts, too. > All of these options seem acceptable. However, the problem is unlikely > to get any worse, so going to the trouble of option 1 or 1a might not > be the best use of time. Yeah. After thinking a bit more, the OOM hazard is probably pretty far-fetched --- even a role owning hundreds of thousands of objects wouldn't accumulate more than a small number of megabytes of DETAIL. You could still argue that sending such a message to the server log is a bad idea, perhaps, but I'm willing to let it go until we see actual field complaints about it. So that means that the de-revert is probably the best option for now. Will you do the honors? regards, tom lane