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 1oJj8Y-0001zZ-Da for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Aug 2022 22:16:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oJj8X-0006ma-9Q for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Aug 2022 22:16:13 +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 1oJj8W-0006hi-T3 for pgsql-hackers@lists.postgresql.org; Thu, 04 Aug 2022 22:16:13 +0000 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oJj8R-0000Ag-Bv for pgsql-hackers@lists.postgresql.org; Thu, 04 Aug 2022 22:16:11 +0000 Received: by mail-qk1-x732.google.com with SMTP id m7so690028qkk.6 for ; Thu, 04 Aug 2022 15:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc; bh=dTuJtw++w/2v0h0J9TVaCpImMs3n3KiFRSiJCsS1wZE=; b=pNKi7UYpn8SjlXEiX+XfRPyCC1qX2/7xE+mbMhyoUORrdB+NHw/fL2u1o3E7Loo3pr DCN3y7oOUxOhKIy5w1SuAoUmFCBxX6iUgO+EEDCe0kmvZCCAyrtfHL4V73Oqov7lZElW zzdPpdfUB0Szo85zLdAPDVLPWawYdhXDKloHZVduqc8tpM8Dj9/5VJusvkV+npriqLLd DkWqFx0MLSJ28V/WD/DBd/chLzfK/3youSz4F4RxEmt37bvTMZBMvTHamHcY6VIl1/dB x80jdzYosmERcJzrjkDiGXionLc4RrQvsyy3gp6YQJmKBncxvB3Oz+dfP+gLpSKgxMYv FHtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=dTuJtw++w/2v0h0J9TVaCpImMs3n3KiFRSiJCsS1wZE=; b=lPBZFN2dxZcsQuDOvVN1yrVRk7ueWWACTVpiIzxFwtlXy6RrdFsUqi1kW5Qg9IV2IF 8lpR8yzNyQyfseaIvK7poewD/LOoHKCvAjb+QHG6EjKbmc74pAHvBRecnTGEpfeGJlwK a9XEXPppgGHJNb8C3WY+aTIuXvRRSjRgLLNaXHd/h7/E/2V17nipJ/9efAJOqJCtE3uV VS+ZMp6yLwUG2eYEcYoH9xDTlvEJWbG/Z/SZUK+XU1GKwvJfBdOcAjFGIPdVS6ZqaCmW YltDCm7pU3vKc7cW+sZMYFMYofxAeigIcc0fsKIuFeZ7UlwxAJnWTPIUYlFMg52ArGjT /P5Q== X-Gm-Message-State: ACgBeo21us5nFGKqFgYfVuSOAGiMxuOmndHnDk/LU6hq8lCbxFpy4RS5 5aFX41TLRwpYsOXI2OLM+Q87Qw== X-Google-Smtp-Source: AA6agR5glt7yScP4bHS34Jr5yU7ItrpNRbNCGNgmoXcb/l0NcaClXbnA8T8hJT9+JgF2t9wyJQ9rlw== X-Received: by 2002:a05:620a:27d1:b0:6b9:fa2:9183 with SMTP id i17-20020a05620a27d100b006b90fa29183mr1621280qkp.237.1659651366426; Thu, 04 Aug 2022 15:16:06 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id a16-20020ac81090000000b0031eb5648b86sm1399514qtj.41.2022.08.04.15.16.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2022 15:16:05 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id E603480066A; Thu, 4 Aug 2022 17:16:04 -0500 (CDT) Date: Thu, 4 Aug 2022 17:16:04 -0500 From: Justin Pryzby To: Tom Lane Cc: Robert Haas , Dilip Kumar , Andres Freund , Ashutosh Sharma , Maciek Sakrejda , Bruce Momjian , Alvaro Herrera , Andrew Dunstan , Heikki Linnakangas , PostgreSQL Hackers , Thomas Munro Subject: Re: [Proposal] Fully WAL logged CREATE DATABASE - No Checkpoints Message-ID: <20220804221604.GO19644@telsasoft.com> References: <2767668.1659476794@sss.pgh.pa.us> <20220802220416.GC13682@telsasoft.com> <20220802222334.umf5wsa2r63koppn@awork3.anarazel.de> <3663919.1659650570@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3663919.1659650570@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Aug 04, 2022 at 06:02:50PM -0400, Tom Lane wrote: > The "invalidation" comment bothered me for awhile, but I think it's > fine: we know that no other backend can connect to the source DB > because we have it locked, About that - is it any problem that the currently-connected db can be used as a template? It's no issue for 2-phase commit, because "create database" cannot run in an txn. -- Justin