From: Stephen Frost <sfrost@snowman.net>
To: Ben Primrose <bprimrose@tracelink.com>
Cc: flumbador@virgilio.it
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Issue on restore / recover
Date: Tue, 2 Jan 2018 10:19:25 -0500
Message-ID: <20180102151925.GY2416@tamriel.snowman.net> (raw)
In-Reply-To: <CA+OR6cRFbPXAZf09G=g7nvj4rnxpSAZ8+6EUML3=QKJZS_9YOQ@mail.gmail.com>
References: <524817289.230206.1514560886805@mail.virgilio.it>
<CA+OR6cRFbPXAZf09G=g7nvj4rnxpSAZ8+6EUML3=QKJZS_9YOQ@mail.gmail.com>
Greetings Ben,
* Ben Primrose (bprimrose@tracelink.com) wrote:
> How was the backup taken, and what platform are you on?
Good questions, I've asked them also.
> Are these tables in unlogged mode? Check pg_class.relpersistence to find
> out.
[...]
> > db4=# select count(*) from pgbench_accounts ;
> >
> > ERROR: could not read block 1999996 in file "pg_tblspc/16471/PG_9.4_201409291/16474/16593.15":
> > read only 0 of 8192 bytes
PostgreSQL knows how to handle unlogged tables when doing backup/restore
(they'll get zero'd out during the restore process) and so you wouldn't
(shouldn't anyway) see an error like this even if the table is unlogged
(instead, it would just be empty).
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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-admin@postgresql.org
Cc: sfrost@snowman.net, bprimrose@tracelink.com, flumbador@virgilio.it, pgsql-admin@lists.postgresql.org
Subject: Re: Issue on restore / recover
In-Reply-To: <20180102151925.GY2416@tamriel.snowman.net>
* 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