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 1oBVG5-0006tG-U4 for pgsql-general@arkaria.postgresql.org; Wed, 13 Jul 2022 05:50:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oBVG4-0004Mb-S1 for pgsql-general@arkaria.postgresql.org; Wed, 13 Jul 2022 05:50:00 +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 1oBVG4-0004MS-E9 for pgsql-general@lists.postgresql.org; Wed, 13 Jul 2022 05:50:00 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oBVG1-0001H0-FG for pgsql-general@lists.postgresql.org; Wed, 13 Jul 2022 05:49:59 +0000 Received: by mail-ej1-x62b.google.com with SMTP id ss3so11946173ejc.11 for ; Tue, 12 Jul 2022 22:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=PmgfzJNhOwzF4HiRIeB1lrKfFpfjC5IBaM/W7/99Llw=; b=0XSG5RXqL+KwFEIv8n7ubVluffOpMDUNESmAVO9XPg2cl+3aQXjxJsKfQWMOA18HeO RJCnzts/zRQKj0Dnhp3j/fMdxmmqOm4y+yMYYgJGqoP/x+DiM5t/3nKM4e03tei6UHpn iTr5X7QTn/NIB37MoG4ouXBzx+lYkGEc2vUzb3zgU3Pszx+hoc2G7Y55VOoYpwWGcCC3 uupHR/UG9WYRR3q5OLqrbQ5DCn27gLY3Z2NBOv6p2YkxbB/dqPZ1dDuYauhVfXvnue6s /1d4E9tJ39r/w56jnZ00FVQpCbUcjVCBgD/aUSRsBItNMblxNtC2AJ5woMNHJbZ43jDW SSvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=PmgfzJNhOwzF4HiRIeB1lrKfFpfjC5IBaM/W7/99Llw=; b=H0Lp0Pc/28watTssAgkBsaIkkwphYPkxXcrzDknPTnf5x4UosPGQRuwN1WI7M73RZV OJ19vvzr+QC3nv5cnmypwZ9sCHkdzxAJFjR0+YMmJO0J0TosFlxFP8lRkETXjKHfE3hQ SeCkd2IA4hkLo4SQCpx2Egt4tnnLTo4o1hyuJOK5DkTqHpLwdaobbsDEMwQpMlrdOUAX Vr1SZ6XmXsMy/pEDzJUEX6vgOj8Sbp9T0vi3yjy+fh6a7+EdQTYLgHpH3vAnkwOij797 3oKWXT/0tZ/+YmVAkOqsl6mvRlWDZLW4CaDGOPsa9/jgcAXnfiaNp1uE+mYG6Lwuulth J5fA== X-Gm-Message-State: AJIora9Z0fXX+xuiNaenvNkRhDiyZZAtEpCLX4gxo3+atNAvqIfqHr8z UvrwMjmml9Snxn17E+jsiNFPEZPXtykoGg== X-Google-Smtp-Source: AGRyM1tJf1cLV9qYXQSGkTtMmwcBT5NbHvtbJF4kbY3Bni/8uFt2cyaJfJhT/MAS1IWqRJNIPRF3+w== X-Received: by 2002:a17:907:c08:b0:72b:87a4:dee6 with SMTP id ga8-20020a1709070c0800b0072b87a4dee6mr1682573ejc.283.1657691395164; Tue, 12 Jul 2022 22:49:55 -0700 (PDT) Received: from localhost.localdomain ([83.68.136.68]) by smtp.gmail.com with ESMTPSA id be5-20020a0564021a2500b0043a2338ca10sm7231578edb.92.2022.07.12.22.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 22:49:54 -0700 (PDT) Message-ID: Subject: Re: Problem upgrading from 10 to 14 with pg_upgrade: unexpected error upgrading "template1" database for some clusters From: Laurenz Albe To: Ken Yeung , "pgsql-general@lists.postgresql.org" Date: Wed, 13 Jul 2022 07:49:54 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2022-07-13 at 02:53 +0000, Ken Yeung wrote: > From: Laurenz Albe > Sent: Wednesday, July 13, 2022 3:16 AM > > > You configured "pg_hba.conf" so that a local login without password is > > not possible.  The easiest solution is to change the "pg_hba.conf" > > entries for "localhost" in IPv4 and IPv6 to "trust" for the duration of > > the upgrade. > > I am afraid this workaround may not be suitable for our case because of certain security consideration. If you want to make your life difficult, that's ok. Remember that this change would only be for *local* connections for the duration of the upgrade. As an alternative, you could create a password file or, if that is also too insecure, set the PGSSLCERT and PGSSLKEY environment variables so that you can use a client certificate to connect. Other authentication methods might also be possible; you'll have to experiment. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com