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 1u4xFQ-00A0Jr-DX for pgsql-general@arkaria.postgresql.org; Wed, 16 Apr 2025 07:31:52 +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 1u4xFO-008kes-L9 for pgsql-general@arkaria.postgresql.org; Wed, 16 Apr 2025 07:31:51 +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 1u4xFO-008kdw-85 for pgsql-general@lists.postgresql.org; Wed, 16 Apr 2025 07:31:51 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u4xFM-000KgH-2e for pgsql-general@lists.postgresql.org; Wed, 16 Apr 2025 07:31:50 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-acb39c45b4eso74240566b.1 for ; Wed, 16 Apr 2025 00:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1744788708; x=1745393508; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=iGlF+AVTmbpicb9Egoo67n3/wynGMby921kNO7eSCu8=; b=Lx7F4OgdTRbYt8/0rm1qQpf5CwKBnFBoJkx9SnKTWE/XsK3Spu66LE+o2EFr7/xatC YJAq76tY3E4rfnGQ6UGDWXm/NTQTRpIkNmSHiE4HcRWtqmClrZDz0cKj4MXRoe0ekjHE lP6iJHdGvtmDPRW3V0Bpk6zmH9KqEe5WzHCqyguJz2DOWZPxD/XB1uDDgt9dzEVbEIKz S/gYMpbZAWOqkNKDcyu9gX7jncZf0Zc2rEgdkrnDPo/kyOUP1mIpHCHnuWFPdVirceqC iy8tUmjVO4KP/WwuTOH0/eoIUgaSG+ZeJIGecLREcJJFP2FL0+ZMVZWOs5Fm6aq5Fg3M OjAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744788708; x=1745393508; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=iGlF+AVTmbpicb9Egoo67n3/wynGMby921kNO7eSCu8=; b=FEcARfJc+HDOPAFdCNLcIGRh3QIJhcPg9HQGbDbZDR3jpMvrZHCQCU/XQiNMfrDKxl EWTr2wFSxXdMK5INM8Y9blGhvFZIv9KYsWpPSu5tLdQ0CLb0OKjR9AeDIcJyPYSAPfyR qiZDSu5ifANycjDluyDiYYi3p5CByMLV2AzloSUxOTwyjxsRmTKmNKzMXv4VjulMiMQK OjCFVskZS5jdrVnoyUN9tBF5JsM/verEVQdq+VUB4Y19wfC6MKwflOE6OpHDVSnk3SOg eOAyhk9tPNawxj7K2jJIy21Vgu2CidSjYqyh1rgrc9LKNsRMkO6xJ7jz/bwChiLYT4Zl UFXQ== X-Forwarded-Encrypted: i=1; AJvYcCXwSsYnUP8Q0gMNn9dqmXIeKtdsto4HRD8aqk17spXJCz2jZDhIHKLtxDnNjfbfCYZG+vYFtLsjbpRZie8G@lists.postgresql.org X-Gm-Message-State: AOJu0Yy3Io/QN0B9AJQCUzRx9/Vh/bxW/estaiC8iGGdmn+WN5xBb+vj WoaWk7eBDnokDwkHDTfi3nDEtLDVl+pY6t/x5GYx5U3SPxorux1v0YceRQ8fr0E= X-Gm-Gg: ASbGncubACKy3Rj+0pr+QB1PEUn0jIAp9blj7yrr/mxqvYAxO8XwwunpK0IA1g+HdqA ERfS/kp9j9iw+sKTQbdtqW3F8D7/BzIfOdpIyraZyQe1ArtuL0O+Y1Rpe5KRVVnCT7gWW5alTk7 5nUFm2PkNJKel8CL7O4aqCW9xx8nUTIGOmV898Wilp/0/077J1Fce44PJ8NPGDEwsiNxg1kBWH+ BNiMu3mokfcVXMjeoiLJ1MZfRe4hSilnEcOqpFm+K6+twPMYkmyLvOMB9GKsmCMCvTfz/XlC70a gjwzLNiPUqQLtFKOijIdzyCntujJFWuddG0sQuopo/obAlvIak1nNDX6a0su X-Google-Smtp-Source: AGHT+IE18gBbc8p7xaXat2G0s2t6PG9bTmDk7w+GOgYuBKW2YCDyhn8a5RAiix5ABlaf3u5XxRO9sw== X-Received: by 2002:a17:907:7da4:b0:ac7:81bd:60e3 with SMTP id a640c23a62f3a-acb42a4ae8cmr65525866b.27.1744788707655; Wed, 16 Apr 2025 00:31:47 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:b709:9349:713f:cd9e:e764]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-acb3d1ab3a4sm73937566b.133.2025.04.16.00.31.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 00:31:47 -0700 (PDT) Message-ID: Subject: Re: Fwd: Identify system databases From: Laurenz Albe To: Adrian Klaver , "David G. Johnston" Cc: Igor Korot , "pgsql-generallists.postgresql.org" Date: Wed, 16 Apr 2025 09:31:46 +0200 In-Reply-To: References: <817abeac-d628-4279-bfef-9e1e3aa1884b@aklaver.com> <25b6cd49-f871-47fe-bf3b-5416637736ca@aklaver.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2025-04-15 at 17:24 -0700, Adrian Klaver wrote: > I know I can use --template=3Dtemplate with createdb, but that still mean= s=20 > there has to be a database existing in the initial cluster to use as a= =20 > template. You can't get around that fact. Right. But then you fortunately cannot drop all databases, because you cannot drop the database you are connected to. Still, a cluster that is missing "postgres" will give beginners trouble, a cluster that is missing "template1" is annoying, and a cluster without "template0" is possibly in serious trouble. Yours, Laurenz Albe