Andres Freund <and...@anarazel.de> writes: > On 2019-05-01 22:01:53 -0400, Tom Lane wrote: >> I think that argument is pretty pointless considering that "REINDEX TABLE >> pg_class" does it this way, and that code is nearly old enough to >> vote.
> IMO the reindex_relation() case isn't comparable. IMV it's the exact same case: we need to perform a pg_class update while one or more of pg_class's indexes shouldn't be touched. I am kind of wondering why it didn't seem to be necessary to cover this for REINDEX INDEX back in 2003, but it clearly is necessary now. > That's not pretty either :( So, I don't like your patch, you don't like mine. Anybody else want to weigh in? We do not have the luxury of time to argue about this. If we commit something today, we *might* get a useful set of CLOBBER_CACHE_ALWAYS results for all branches by Sunday. Those regression tests will have to come out of the back branches on Sunday, because we are not shipping minor releases with unstable regression tests, and I've heard no proposal for avoiding the occasional-deadlock problem. regards, tom lane