pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #13864: Reproducible, ERROR: could not read block 30 in file "base/16414/11914": read only 0 of 8192 bytes
2+ messages / 2 participants
[nested] [flat]
* BUG #13864: Reproducible, ERROR: could not read block 30 in file "base/16414/11914": read only 0 of 8192 bytes
@ 2016-01-14 01:12 prtkgaur1@gmail.com
2016-01-15 16:58 ` Re: BUG #13864: Reproducible, ERROR: could not read block 30 in file "base/16414/11914": read only 0 of 8192 bytes Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: prtkgaur1@gmail.com @ 2016-01-14 01:12 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 13864
Logged by: Prateek Gaur
Email address: prtkgaur1@gmail.com
PostgreSQL version: 9.4.5
Operating system: Ubuntu 12.04.5 LTS
Description:
I have a healthy 9.3 postgres backup taken by running
/usr/lib/postgresql/9.3/bin/pg_basebackup -D postgres_clone -l initial -U
postgres -h localhost -p XXX -X stream
After starting postgres from this backup by command :
/usr/lib/9.3/bin/pg_ctl -postgres_clone -l <logpath> start
we run certain commands against this database. These commands are :
BEGIN TRANSACTION;
Create View A;
Create View B;
Create View C; ( Note C builds on top of Views A and B ).
COMMIT;
These commands work fine for postgres version 9.3.
But after upgrading to version 9.4.5 with command .
/usr/lib/postgresql/9.4/bin/pg_upgrade \
-b /usr/lib/postgresql/9.3/bin/pg_upgrade \
-B /usr/lib/postgresql/9.4/bin/pg_upgrade \
-d ./postgres_clone \
-D ./9.4_postgres_clone \
-U postgres -v
and starting a 9.4 database with : /usr/lib/9.4/bin/pg_ctl -postgres_clone
-l <logpath> start
The commands described above end up in a failure message 'ERROR: could not
read block 30 in file "base/16414/11914": read only 0 of 8192 bytes'.
The failure happens while running Create View C.
The failure is very deterministic after upgrading to postgres 9.4.5 but
never happens if I stick to version 9.3.
But interestingly when I break above set of commands into two transactions.
Something like :
BEGIN TRANSACTION;
Create View A;
Create View B;
COMMIT;
BEGIN TRANSACTION;
Create View C;
COMMIT:
I stop seeing the failure for version 9.4.5
Unfortunately I can't use this fix as I want the three statements to be a
part of a single transaction.
Have we seen a scenario where 'could not read block ... ' goes away by
pre-apending a 'COMMIT' statement to the the offending statement?
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #13864: Reproducible, ERROR: could not read block 30 in file "base/16414/11914": read only 0 of 8192 bytes
2016-01-14 01:12 BUG #13864: Reproducible, ERROR: could not read block 30 in file "base/16414/11914": read only 0 of 8192 bytes prtkgaur1@gmail.com
@ 2016-01-15 16:58 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2016-01-15 16:58 UTC (permalink / raw)
To: prtkgaur1@gmail.com; +Cc: pgsql-bugs
prtkgaur1@gmail.com writes:
> The commands described above end up in a failure message 'ERROR: could not
> read block 30 in file "base/16414/11914": read only 0 of 8192 bytes'.
Could we see a self-contained example of this, please?
It'd also be useful to know what you get from
select relname from pg_class where pg_relation_filenode(oid) = 11914;
in this database.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-01-15 16:58 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-01-14 01:12 BUG #13864: Reproducible, ERROR: could not read block 30 in file "base/16414/11914": read only 0 of 8192 bytes prtkgaur1@gmail.com
2016-01-15 16:58 ` Tom Lane <tgl@sss.pgh.pa.us>
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