Re: buildfarm: could not read block 3 in file "base/16384/2662": read only 0 of 8192 bytes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: buildfarm: could not read block 3 in file "base/16384/2662": read only 0 of 8192 bytes
Date
Msg-id 30649.1535813665@sss.pgh.pa.us
Whole thread Raw
In response to Re: buildfarm: could not read block 3 in file "base/16384/2662":read only 0 of 8192 bytes  (Andres Freund <andres@anarazel.de>)
Responses Re: buildfarm: could not read block 3 in file "base/16384/2662": read only 0 of 8192 bytes  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> One concern I have with your approach is that it isn't particularly
> bullet-proof for cases where the rebuild is triggered by something that
> doesn't hold a conflicting lock.

Wouldn't that be a bug in the something-else?  The entire relation cache
system is based on the assumptions that (a) if you hold lock, you can read
a consistent and valid set of information about the rel from the catalogs,
and (b) anyone changing that info must hold a conflicting lock and send an
SINVAL message *before* releasing said lock.  I'm not prepared to consider
a redesign of those assumptions, especially not for back-patching.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: Online verification of checksums
Next
From: Robert Haas
Date:
Subject: Re: A strange GiST error message or fillfactor of GiST build