From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ajay Kajla <ajaykajla@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Facing issues with pgsql upgrade.
Date: Sun, 17 Apr 2022 08:59:29 -0700
Message-ID: <10dcd957-dc0b-9e94-1508-0a3c958ff924@aklaver.com> (raw)
In-Reply-To: <CAGBudo=6bqhT53uxpWi9K8O2FTQ1k_5sN1k2gjO-h00MGAx9MA@mail.gmail.com>
References: <CAGBudo=6bqhT53uxpWi9K8O2FTQ1k_5sN1k2gjO-h00MGAx9MA@mail.gmail.com>
On 4/16/22 22:30, Ajay Kajla wrote:
> Hello All,
>
>
> I'm facing the following issue while upgrading pgsql 9.6 to pgsql 13.
>
> It's saying database "template0" "template1" does not exist on source
> 9.6, please advise.
>
>
> image.png
>
From the below it looks like something/someone deleted the template0
and template1 directories in the data directory. Is there a file backup
of the data directory?
>
> [postgres@htf:/var/lib/pgsql]$ psql
>
> psql (9.2.24, server 9.6.24)
>
> WARNING: psql version 9.2, server version 9.6.
>
> Some psql features might not work.
>
> Type "help" for help.
>
> postgres=# \c template0
>
> FATAL: database "template0" does not exist
>
> DETAIL: The database subdirectory "base/13268" is missing.
>
> Previous connection kept
>
> postgres=# \c template1
>
> FATAL: database "template1" does not exist
>
> DETAIL: The database subdirectory "base/1" is missing.
>
> Previous connection kept
>
> postgres=#
>
>
>
> With Regards,
>
> Ajay Kajla
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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, ajaykajla@gmail.com
Subject: Re: Facing issues with pgsql upgrade.
In-Reply-To: <10dcd957-dc0b-9e94-1508-0a3c958ff924@aklaver.com>
References: <CAGBudo=6bqhT53uxpWi9K8O2FTQ1k_5sN1k2gjO-h00MGAx9MA@mail.gmail.com> <10dcd957-dc0b-9e94-1508-0a3c958ff924@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