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 1kddDZ-000639-9r for pgsql-general@arkaria.postgresql.org; Fri, 13 Nov 2020 17:50:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kddDY-00077d-1H for pgsql-general@arkaria.postgresql.org; Fri, 13 Nov 2020 17:50:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kddDX-00077W-Pi for pgsql-general@lists.postgresql.org; Fri, 13 Nov 2020 17:50:35 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kddDR-0007Fi-8M for pgsql-general@lists.postgresql.org; Fri, 13 Nov 2020 17:50:35 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kddDO-0002wl-Dn; Fri, 13 Nov 2020 12:50:26 -0500 Date: Fri, 13 Nov 2020 12:50:26 -0500 From: Bruce Momjian To: Jeremy Wilson Cc: Tom Lane , Adrian Klaver , pgsql-general@lists.postgresql.org Subject: Re: Issue upgrading from 9.5 to 13 with pg_upgrade: "connection to database failed: FATAL: database "template1" does not exist" Message-ID: <20201113175026.GA10979@momjian.us> References: <5d5bd3f7-8158-97fa-9d6e-064af852f5ec@aklaver.com> <6DBC6B57-422B-4A5C-8116-5615FEBC0DF7@clover.co> <286345.1605280985@sss.pgh.pa.us> <1F006B57-B6A3-40B0-B92D-C31BAEF52CA1@clover.co> <12B3647B-5BE0-4CDA-9EC8-317AB59810CB@clover.co> <58943bf6-edf8-b5f2-8888-e5595a712ec2@aklaver.com> <7C14FAD0-775D-4F13-8E3C-97B66284BFFC@clover.co> <290630.1605286838@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Nov 13, 2020 at 12:06:34PM -0500, Jeremy Wilson wrote: > > > > On Nov 13, 2020, at 12:00 PM, Tom Lane wrote: > > > > Are you by any chance trying to preload any of the postgis-related > > extensions? If so, try not doing that. > > Not sure what you mean by this - I’ve installed the postgis packages for 9.5 and 13 and the extensions are installed and working in 9.5, but I’m not doing anything but initdb and then pg_upgrade for 13. I think he is asking about shared_preload_libraries, local_preload_libraries, and session_preload_libraries. Also, try running this query and show us what is not the default: SELECT name, current_setting(name), source FROM pg_settings WHERE source NOT IN ('default', 'override'); -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee