pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kumari, Jyoti <Jyoti.K@dell.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Cc: Tamrakar, Animesh <Animesh.Tamrakar@dell.com>
Cc: Pokharna, Prashant <Prashant.Pokharna@dell.com>
Cc: Bharti, Anand <Anand.Bharti@dell.com>
Subject: Re: Upgrade issue during Postgres 9.6 to 12.3 on the two and more server
Date: Fri, 26 Feb 2021 11:35:36 -0500
Message-ID: <287554.1614357336@sss.pgh.pa.us> (raw)
In-Reply-To: <MN2PR19MB40309CCDB4BD0CA540090A9A909D9@MN2PR19MB4030.namprd19.prod.outlook.com>
References: <MN2PR19MB40309CCDB4BD0CA540090A9A909D9@MN2PR19MB4030.namprd19.prod.outlook.com>

"Kumari, Jyoti" <Jyoti.K@dell.com> writes:
> connection to database failed: FATAL:  could not read block 12 in file "base/1/1259": read only 0 of 8192 bytes.

Looks like your template1 database is corrupt.

I think you could get out of this by dropping template1 and re-creating
it from template0.  However, the usual caveats for working with damaged
databases apply: it's a good idea to make a filesystem-level backup of
the entire database directory before you do anything.  That way you
can at least get back to where you were if things go further wrong.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <287554.1614357336@sss.pgh.pa.us>
Permalink:  ../287554.1614357336@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/287554.1614357336@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Jyoti.K@dell.com, pgsql-bugs@lists.postgresql.org, Animesh.Tamrakar@dell.com, Prashant.Pokharna@dell.com, Anand.Bharti@dell.com
  Subject: Re: Upgrade issue during Postgres 9.6 to 12.3 on the two and more server
  In-Reply-To: <287554.1614357336@sss.pgh.pa.us>

* 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