Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtfuv-0003pu-6X for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jul 2020 23:25:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jtfuu-0004hU-3H for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jul 2020 23:25:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtfut-0004h1-N6 for pgsql-hackers@lists.postgresql.org; Thu, 09 Jul 2020 23:25:23 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jtfuq-0000KL-F9 for pgsql-hackers@lists.postgresql.org; Thu, 09 Jul 2020 23:25:22 +0000 Received: by mail-qk1-x742.google.com with SMTP id b185so3606084qkg.1 for ; Thu, 09 Jul 2020 16:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=gQzA+/4a2OwFz+ubHOdq32Fxt9Yl3HFH+b4+MpAbKfs=; b=xXX5L6HW79Rr+hGldNMXL2DkB/4Axq7z5tfDnaT1fhxPcm/z/QLVFoLCyT7U7pDs3s X/rfzm8a23RbZ7LIYK62tWa4ou0KKEKIMEAVzTdP6EMHgSOiP0UjXHtdPfk/NShzFQSS SuIAbzcL6zkoFvbzb8jq7xg86VTomMsGlF53ux4WzTq5j/zMe8cK93X6Py9+nyhXAmWX N8NScLu0BCKTar3ExCh9ng3h1KphstqFpmxR7GEhQ9myOxcjjw764WCQ4Er7jV0nBZ3O 0W1EZKuC3leBJEvqu2qAfXiTAI0UnXp0J6JjPB9spu6eHKh0lOyXZN6txLthmmIumyiq pn3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=gQzA+/4a2OwFz+ubHOdq32Fxt9Yl3HFH+b4+MpAbKfs=; b=rKZjySlSg7AGkVqAXnc6PEga9H/BbEtsFYoqS+oWnOekOV/OwunCtAj7R+pKkABbG4 XeAaR4wH5mQn4aDx37H9g2S9FD2c7GUSFny2Ckv8wmhULRV35MgMNJivvGBq0fxVDHup 13CwEL5OWdI7a8WH4/o3yAG3IWn7DCW17Y5cWjHlzP2g5RJZOjdpu2czGvzjFpkCB7GG tJDT0S6ifHMPHmbOLnGVpqvF5T3cCActYgmrPkovQrRfiqg5Eko+5qPbM81YnE4U+Xr5 oZo5chuN8WP55MB29X79kqgowRihjwh46nNdzLqr/NTtn2+muqxG317rtEDx/UZvCYGH QaEQ== X-Gm-Message-State: AOAM5312hrpQQjOjgPKNG3zqHOs4CVkD4q+4/vqo4tte3Drq0gBITx7+ HWThmihqxJy3QDX67LYhs74D5oKyZ1dQvhNIh4J1Ogqr23CPBlQF+l5r6zZ+lzlB8bqUOwFcvbJ sDkOhF1aBDZMzeU/zpwUE08HBuiUqS1YzMTB+fOM6cGxKVT2ff3avbxWq9r/+AHtdv2iUZoKLNB r31514LOBOc2FHmw== X-Google-Smtp-Source: ABdhPJzjUWBp0+lkzV/kK12dXWu5gmSXkp2CamtMWpGy2gaUtUtmsHZU8OTKfFuLaXnIl/CM32Sv8w== X-Received: by 2002:a37:a00a:: with SMTP id j10mr63369407qke.87.1594337119070; Thu, 09 Jul 2020 16:25:19 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id e129sm5581279qkf.132.2020.07.09.16.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 16:25:17 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 4A43F2A3913; Thu, 9 Jul 2020 18:55:48 -0400 (-04) Date: Thu, 9 Jul 2020 18:55:48 -0400 From: Alvaro Herrera To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Intermittent BRIN failures on hyrax and lousyjack Message-ID: <20200709225548.GA21677@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2011047.1594334780@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jul-09, Tom Lane wrote: > Alvaro Herrera writes: > > On 2020-Jun-30, Tom Lane wrote: > >> SELECT brin_desummarize_range('brinidx', 0); > >> +WARNING: leftover placeholder tuple detected in BRIN index "brinidx", deleting > > >> So (1) the comment needs to be adjusted to mention that vacuum > >> cancellation is enough to create the situation, and (2) probably the > >> message needs to be downgraded quite a lot, DEBUG2 or even less. > >> Or maybe we could just delete the quoted stanza altogether. > > > Yeah, maybe deleting the whole thing is a decent answer. When I wrote > > that, I was thinking that it was a very unlikely event, but evidently > > that's not true. > > trilobite (also a CCA animal) just reported one of these, too: > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=trilobite&dt=2020-07-09%2008%3A03%3A08 > > Were you going to fix this, or did you expect me to? I have a moment now, let me have a go at it. I agree with deleting the message. I think I'll keep the comment, slightly reworded: /* * Placeholder tuples only appear during unfinished summarization, and we * hold SUE lock, so this function cannot run concurrently with * that. Any placeholder tuples that exist must be leftovers from a * crashed or aborted summarization; remove them silently. */ -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services