pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Jeremy Wilson <jwilson@clover.co>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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"
Date: Fri, 13 Nov 2020 08:39:12 -0800
Message-ID: <e6c4acf8-9ca6-232e-348e-c443b48fb02d@aklaver.com> (raw)
In-Reply-To: <7B8F6746-E0E5-48DD-B3EF-E4A520838C11@clover.co>
References: <F1F5603B-5145-46B2-B137-8BAC7FBCE15F@clover.co>
	<bdd88360-4ea3-bde6-5383-6ee1f4e97892@aklaver.com>
	<793E4164-90E9-41F0-B74C-129E1DB76408@clover.co>
	<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>
	<ea474230-2b08-ccd5-0edb-bc1c976089ce@aklaver.com>
	<12B3647B-5BE0-4CDA-9EC8-317AB59810CB@clover.co>
	<58943bf6-edf8-b5f2-8888-e5595a712ec2@aklaver.com>
	<7C14FAD0-775D-4F13-8E3C-97B66284BFFC@clover.co>
	<38423984-6dfd-b243-316c-6c8391d68959@aklaver.com>
	<7B8F6746-E0E5-48DD-B3EF-E4A520838C11@clover.co>

On 11/13/20 8:37 AM, Jeremy Wilson wrote:
> 
> 
>> On Nov 13, 2020, at 11:35 AM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>>
>> On 11/13/20 8:31 AM, Jeremy Wilson wrote:
>>>> On Nov 13, 2020, at 11:26 AM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>>>>
>>>> What shows up in the log file in "log" directory when you try to connect to a database?
>>> I did a completely fresh initdb to get clean logs:
>>
>> Was the below from starting using the pg_upgrade version of pg_ctl start?
> 
> No, strictly from running pg_upgrade.
> 
> Here’s the additional logs from manually running it:
> 
> 2020-11-13 11:36:35.976 EST [205733] LOG:  starting PostgreSQL 13.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5), 64-bit
> 2020-11-13 11:36:35.976 EST [205733] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
> 2020-11-13 11:36:35.981 EST [205735] LOG:  database system was shut down at 2020-11-13 11:30:06 EST
> 2020-11-13 11:36:35.989 EST [205733] LOG:  database system is ready to accept connections
> 


This does not show trying to connect to a database. It would help to 
list the commands run and then the corresponding log portions.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (30+ messages)  latest in thread

Message-ID: <e6c4acf8-9ca6-232e-348e-c443b48fb02d@aklaver.com>
Permalink:  ../e6c4acf8-9ca6-232e-348e-c443b48fb02d@aklaver.com/
Also on:    postgresql.org/message-id/e6c4acf8-9ca6-232e-348e-c443b48fb02d@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, jwilson@clover.co, tgl@sss.pgh.pa.us
  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: <e6c4acf8-9ca6-232e-348e-c443b48fb02d@aklaver.com>
  References: <F1F5603B-5145-46B2-B137-8BAC7FBCE15F@clover.co> <bdd88360-4ea3-bde6-5383-6ee1f4e97892@aklaver.com> <793E4164-90E9-41F0-B74C-129E1DB76408@clover.co> <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> <ea474230-2b08-ccd5-0edb-bc1c976089ce@aklaver.com> <12B3647B-5BE0-4CDA-9EC8-317AB59810CB@clover.co> <58943bf6-edf8-b5f2-8888-e5595a712ec2@aklaver.com> <7C14FAD0-775D-4F13-8E3C-97B66284BFFC@clover.co> <38423984-6dfd-b243-316c-6c8391d68959@aklaver.com> <7B8F6746-E0E5-48DD-B3EF-E4A520838C11@clover.co> <e6c4acf8-9ca6-232e-348e-c443b48fb02d@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox