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 1kddNp-0006S7-KL for pgsql-general@arkaria.postgresql.org; Fri, 13 Nov 2020 18:01:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kddNo-0002WX-GH for pgsql-general@arkaria.postgresql.org; Fri, 13 Nov 2020 18:01:12 +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 1kddNo-0002WP-8b for pgsql-general@lists.postgresql.org; Fri, 13 Nov 2020 18:01:12 +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 1kddNj-0003ns-NW for pgsql-general@lists.postgresql.org; Fri, 13 Nov 2020 18:01:11 +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 0ADI13nb321633; Fri, 13 Nov 2020 13:01:03 -0500 From: Tom Lane To: Bruce Momjian cc: Jeremy Wilson , 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" In-reply-to: <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> <20201113175026.GA10979@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 13 Nov 2020 12:50:26 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <321631.1605290463.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 13 Nov 2020 13:01:03 -0500 Message-ID: <321632.1605290463@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruce Momjian writes: > On Fri, Nov 13, 2020 at 12:06:34PM -0500, Jeremy Wilson wrote: >> Not sure what you mean by this - I=E2=80=99ve installed the postgis pac= kages for 9.5 and 13 and the extensions are installed and working in 9.5, = but I=E2=80=99m 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. Yeah, but if Jeremy isn't touching the new cluster's config between initdb and pg_upgrade, those won't be set. I'm kind of baffled at this point. It seems pretty likely that this is related to the v13 postgis problems we've heard a few reports of, but the symptoms are a lot different. Best advice I can give is to go inquire on the postgis mailing lists as to whether they've figured out the "free(): invalid pointer" issue. (I assume that dropping postgis from the source DB is not an option...) regards, tom lane