Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrjRO-002Lt1-Hg for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Apr 2024 19:05:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rrjRN-00B6bG-8H for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Apr 2024 19:05:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrjRM-00B6b8-Qa for pgsql-hackers@lists.postgresql.org; Tue, 02 Apr 2024 19:05:00 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrjRJ-000EaT-MW for pgsql-hackers@lists.postgresql.org; Tue, 02 Apr 2024 19:04:59 +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 432J4sTb1731083; Tue, 2 Apr 2024 15:04:54 -0400 From: Tom Lane To: Akshat Jaimini cc: pgsql-hackers@lists.postgresql.org, Mikhail Zhilin Subject: Re: BUG: deadlock between autovacuum worker and client backend during removal of orphan temp tables with sequences In-reply-to: <171170826140.2046436.12738244831107414180.pgcf@coridan.postgresql.org> References: <2B25F88E-E6AA-4883-B21B-936F7B5D5F78@yandex-team.ru> <171170826140.2046436.12738244831107414180.pgcf@coridan.postgresql.org> Comments: In-reply-to Akshat Jaimini message dated "Fri, 29 Mar 2024 10:31:01 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1731081.1712084694.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 02 Apr 2024 15:04:54 -0400 Message-ID: <1731082.1712084694@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Akshat Jaimini writes: > The code seems to implement the feature and has good and explanatory com= ments associated with it. > I believe we can go ahead with committing patch although I would request= some senior contributors to also take a look at this patch since I am rel= atively new to patch reviews. Looks like a good catch and a reasonable fix. Pushed after rewriting the comments a bit. As far as this goes: > I ran make installcheck-world after applying the patch and recompiling i= t. It did fail for a particular test but from the logs it seems to be unre= lated to this particular patch since it fails for the following: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > select error_trap_test(); > - error_trap_test = > ---------------------------- > - division_by_zero detected > -(1 row) > - > +ERROR: cannot start subtransactions during a parallel operation ... that's the test case from 0075d7894, and the failure is what I'd expect from a backend older than that. Maybe you forgot to recompile/reinstall after updating past that commit? regards, tom lane