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 1oJiyO-0001W3-U4 for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Aug 2022 22:05:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oJiyN-0002uc-HL for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Aug 2022 22:05:43 +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 1oJiyN-0002dC-1O for pgsql-hackers@lists.postgresql.org; Thu, 04 Aug 2022 22:05:43 +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 1oJiyK-00005P-TL for pgsql-hackers@lists.postgresql.org; Thu, 04 Aug 2022 22:05:42 +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 274M5Puh3664322; Thu, 4 Aug 2022 18:05:25 -0400 From: Tom Lane To: Andres Freund cc: Dilip Kumar , Justin Pryzby , Robert Haas , Ashutosh Sharma , Maciek Sakrejda , Bruce Momjian , Alvaro Herrera , Andrew Dunstan , Heikki Linnakangas , pgsql-hackers@lists.postgresql.org Subject: Re: [Proposal] Fully WAL logged CREATE DATABASE - No Checkpoints In-reply-to: <20220804214613.attcw2kktjz2z272@awork3.anarazel.de> References: <20220803160200.GD19644@telsasoft.com> <20220803170118.GG19644@telsasoft.com> <20220803182643.a6r2t2jyo5zxx767@awork3.anarazel.de> <20220803184857.GI19644@telsasoft.com> <20220804214613.attcw2kktjz2z272@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 04 Aug 2022 14:46:13 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3664320.1659650725.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 04 Aug 2022 18:05:25 -0400 Message-ID: <3664321.1659650725@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > Yea. I think at the very least we need to start holding interrupts befor= e the > DropDatabaseBuffers() and do so until commit. That's probably best done = by > doing the transaction commit inside dropdb. We've talked before about ignoring interrupts across commit, but I find the idea a bit scary. In any case, DROP DATABASE is far from the only place with a problem. regards, tom lane