Re: Issue upgrading from 9.5 to 13 with pg_upgrade: "connection to database failed: FATAL: database "template1" does not exist"

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Jeremy Wilson <jwilson(at)clover(dot)co>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Issue upgrading from 9.5 to 13 with pg_upgrade: "connection to database failed: FATAL: database "template1" does not exist"
Date: 2020-11-13 16:32:01
Message-ID: 30494da2-d738-dcc3-5edd-3f48acd66be6@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/13/20 8:27 AM, Jeremy Wilson wrote:
>
>
>> On Nov 13, 2020, at 11:26 AM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> wrote:
>>
>> What shows up in the log file in "log" directory when you try to connect to a database?
>
> 2020-11-13 10:14:35.821 EST [204797] 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 10:14:35.822 EST [204797] LOG: listening on IPv4 address "127.0.0.1", port 5432
> 2020-11-13 10:14:35.824 EST [204797] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
> 2020-11-13 10:14:35.828 EST [204797] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"

I'm pretty sure the above, two sockets, should not happen. Have to think
on how that could come to pass.

> 2020-11-13 10:14:35.833 EST [204799] LOG: database system was shut down at 2020-11-13 10:12:15 EST
> 2020-11-13 10:14:35.845 EST [204797] LOG: database system is ready to accept connections
> 2020-11-13 10:14:45.416 EST [204797] LOG: received fast shutdown request
> 2020-11-13 10:14:45.418 EST [204797] LOG: aborting any active transactions
> 2020-11-13 10:14:45.421 EST [204797] LOG: background worker "logical replication launcher" (PID 204805) exited with exit code 1
> 2020-11-13 10:14:45.421 EST [204800] LOG: shutting down
> 2020-11-13 10:14:45.442 EST [204797] LOG: database system is shut down
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-11-13 16:35:13 Re: Issue upgrading from 9.5 to 13 with pg_upgrade: "connection to database failed: FATAL: database "template1" does not exist"
Previous Message Jeremy Wilson 2020-11-13 16:31:42 Re: Issue upgrading from 9.5 to 13 with pg_upgrade: "connection to database failed: FATAL: database "template1" does not exist"