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 1lV0qf-00025H-Rg for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Apr 2021 23:47:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lV0qd-0000SD-JD for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Apr 2021 23:47:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lV0qd-0000Q4-Bs for pgsql-hackers@lists.postgresql.org; Fri, 09 Apr 2021 23:47:35 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lV0qa-0005xx-JU for pgsql-hackers@lists.postgresql.org; Fri, 09 Apr 2021 23:47:34 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id ED5D35C00B2; Fri, 9 Apr 2021 19:47:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 09 Apr 2021 19:47:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=yGC8Ezl/Iex02KI/wtNAERlDpu7 y7FCUWFAWybmaKlg=; b=KnfSSQAhnUwHamqtvX4/kxGUvlGz3sxcVVgndlUMs8r 4Wk34BTIEPVdniejIpZE5iPBvPr38ApV79FO1yb6gE/FcgDqbrBtOUTmR9hfhg0H nysKFs2g50IZ5QYaWRKq9y/lbPMmjyGxZnoVDHlG4FxF7S3yZtWqVZa5qC5pXE6J xkT64+46vqUdTdrD6BTsdYXc57I1m6B88KkFylUPAr7RCX2oZvHLYmRTObn0qmNU LYZLc5mectRaFXPRBqwAY5quK1S1qjOxaHrYB9YJ3DvUcTZ9YYc7v+c+PdKqnG3/ xTPlvatu9nm53TNNtSTOoGgx8v+LHm7JPyBostobuXw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=yGC8Ez l/Iex02KI/wtNAERlDpu7y7FCUWFAWybmaKlg=; b=SGAItIrrYmEOk01qGef5qb vVHx3UkEDQby22Q8pM5bWu5CziTRS0PMqzJ3znBqbyjDucnFCFWMD5NtuZrceIgz z9ZG7CMNoxY1KBYaxFPHkpFiY2l4wZUg2z2mI4TckUKMe6ZQzOp9hb5ATWQMZxtE XckADDiG6H0A5yI+eNKyUZCblxy38ALR3+U8Rkq7vpz9nUxhggd+DtrRn2aUihQp NLAKydtQUcJ0plvxKmpFi8od2dxJ2uIEqkIlRc7deJ21KzLoN6PNHrrkAKSxomUM hH8Ncg9BRDeOUkby+HONep0tA0mui7oAF2QdAR3vItIR3SSboEwmzpW6LAZ1d2GQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekvddgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpeejuefgffeggeevgeehledvudefjedvleelkeeijefgveekveetieetffdv veehteenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdefuddrshhonecukf hppedutdejrddugedvrdeffedruddtfeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Received: from intern.anarazel.de (107-142-33-103.lightspeed.sntcca.sbcglobal.net [107.142.33.103]) by mail.messagingengine.com (Postfix) with ESMTPA id E50F7108005C; Fri, 9 Apr 2021 19:47:29 -0400 (EDT) Date: Fri, 9 Apr 2021 16:47:28 -0700 From: Andres Freund To: Alvaro Herrera Cc: Tom Lane , Zhihong Yu , PostgreSQL Developers Subject: Re: pgsql: autovacuum: handle analyze for partitioned tables Message-ID: <20210409234728.4zibyifpytgrh2fu@alap3.anarazel.de> References: <2027895.1617969225@sss.pgh.pa.us> <20210409155430.GA9512@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210409155430.GA9512@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2021-04-09 11:54:30 -0400, Alvaro Herrera wrote: > On 2021-Apr-09, Tom Lane wrote: > > > Could we get this pushed sooner rather than later? The buildfarm > > is showing a wide variety of intermittent failures on HEAD, and it's > > hard to tell how many of them trace to this one bug. > > Pushed now, thanks. I assume this is also the likely explanation for / fix for: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=skink&dt=2021-04-08%2016%3A03%3A03 ==3500389== VALGRINDERROR-BEGIN ==3500389== Invalid read of size 8 ==3500389== at 0x4EC4B8: relation_needs_vacanalyze (autovacuum.c:3237) ==3500389== by 0x4EE0AF: do_autovacuum (autovacuum.c:2168) ==3500389== by 0x4EEEA8: AutoVacWorkerMain (autovacuum.c:1715) ==3500389== by 0x4EEF7F: StartAutoVacWorker (autovacuum.c:1500) ==3500389== by 0x4FD2E4: StartAutovacuumWorker (postmaster.c:5539) ==3500389== by 0x4FE50A: sigusr1_handler (postmaster.c:5243) ==3500389== by 0x4A6513F: ??? (in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so) ==3500389== by 0x4DCA865: select (select.c:41) ==3500389== by 0x4FEB75: ServerLoop (postmaster.c:1701) ==3500389== by 0x4FFE52: PostmasterMain (postmaster.c:1409) ==3500389== by 0x442563: main (main.c:209) ==3500389== Address 0x10 is not stack'd, malloc'd or (recently) free'd ==3500389== ==3500389== VALGRINDERROR-END ==3500389== ==3500389== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==3500389== Access not within mapped region at address 0x10 ==3500389== at 0x4EC4B8: relation_needs_vacanalyze (autovacuum.c:3237) ==3500389== by 0x4EE0AF: do_autovacuum (autovacuum.c:2168) ==3500389== by 0x4EEEA8: AutoVacWorkerMain (autovacuum.c:1715) ==3500389== by 0x4EEF7F: StartAutoVacWorker (autovacuum.c:1500) ==3500389== by 0x4FD2E4: StartAutovacuumWorker (postmaster.c:5539) ==3500389== by 0x4FE50A: sigusr1_handler (postmaster.c:5243) ==3500389== by 0x4A6513F: ??? (in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so) ==3500389== by 0x4DCA865: select (select.c:41) ==3500389== by 0x4FEB75: ServerLoop (postmaster.c:1701) ==3500389== by 0x4FFE52: PostmasterMain (postmaster.c:1409) ==3500389== by 0x442563: main (main.c:209) ==3500389== If you believe this happened as a result of a stack ==3500389== overflow in your program's main thread (unlikely but ==3500389== possible), you can try to increase the size of the ==3500389== main thread stack using the --main-stacksize= flag. ==3500389== The main thread stack size used in this run was 8388608. Greetings, Andres Freund