From: | Stephen Frost <sfrost(at)snowman(dot)net> |
---|---|
To: | Ben Primrose <bprimrose(at)tracelink(dot)com> |
Cc: | flumbador(at)virgilio(dot)it, pgsql-admin(at)lists(dot)postgresql(dot)org |
Subject: | Re: Issue on restore / recover |
Date: | 2018-01-02 15:19:25 |
Message-ID: | 20180102151925.GY2416@tamriel.snowman.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Greetings Ben,
* Ben Primrose (bprimrose(at)tracelink(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2018-01-02 15:38:54 | Re: Issue on restore / recover |
Previous Message | Stephen Frost | 2018-01-02 15:16:25 | Re: Issue on restore / recover |