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 1pFr3c-0006p7-VR for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jan 2023 06:27:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pFr3a-00083D-AC for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jan 2023 06:27:22 +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 1pFr3a-00082v-0r for pgsql-hackers@lists.postgresql.org; Thu, 12 Jan 2023 06:27:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFr3X-0005Yl-Jx for pgsql-hackers@postgresql.org; Thu, 12 Jan 2023 06:27:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 30C6RGSb901505; Thu, 12 Jan 2023 01:27:16 -0500 From: Tom Lane To: Thomas Munro cc: Andres Freund , pgsql-hackers Subject: Re: Using WaitEventSet in the postmaster In-reply-to: References: <20221205180939.2p6zcrtevukgyay7@awork3.anarazel.de> <20221206231230.3vwxd5dfc3gkf4vl@awork3.anarazel.de> <20221207012224.hjcyzvwdjim22e2a@awork3.anarazel.de> <20230106232512.46jdujlcknqgj2ct@awork3.anarazel.de> <20230107225548.ppzg4rpninlthgth@awork3.anarazel.de> Comments: In-reply-to Thomas Munro message dated "Thu, 12 Jan 2023 17:03:02 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <901503.1673504836.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 12 Jan 2023 01:27:16 -0500 Message-ID: <901504.1673504836@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > Pushed, after a few very minor adjustments, mostly comments. Thanks > for the reviews and pointers. I think there are quite a lot of > refactoring and refinement opportunities unlocked by this change (I > have some draft proposals already), but for now I'll keep an eye on > the build farm. skink seems to have found a problem: =3D=3D2011873=3D=3D VALGRINDERROR-BEGIN =3D=3D2011873=3D=3D Syscall param epoll_wait(events) points to unaddressab= le byte(s) =3D=3D2011873=3D=3D at 0x4D8DC73: epoll_wait (epoll_wait.c:30) =3D=3D2011873=3D=3D by 0x55CA49: WaitEventSetWaitBlock (latch.c:1527) =3D=3D2011873=3D=3D by 0x55D591: WaitEventSetWait (latch.c:1473) =3D=3D2011873=3D=3D by 0x4F2B28: ServerLoop (postmaster.c:1729) =3D=3D2011873=3D=3D by 0x4F3E85: PostmasterMain (postmaster.c:1452) =3D=3D2011873=3D=3D by 0x42643C: main (main.c:200) =3D=3D2011873=3D=3D Address 0x7b1e620 is 1,360 bytes inside a recently re= -allocated block of size 8,192 alloc'd =3D=3D2011873=3D=3D at 0x48407B4: malloc (vg_replace_malloc.c:381) =3D=3D2011873=3D=3D by 0x6D9D30: AllocSetContextCreateInternal (aset.c:= 446) =3D=3D2011873=3D=3D by 0x4F2D9B: PostmasterMain (postmaster.c:614) =3D=3D2011873=3D=3D by 0x42643C: main (main.c:200) =3D=3D2011873=3D=3D = =3D=3D2011873=3D=3D VALGRINDERROR-END regards, tom lane