Re: We're leaking predicate locks in HEAD - Mailing list pgsql-hackers

From Tom Lane
Subject Re: We're leaking predicate locks in HEAD
Date
Msg-id 6018.1557287586@sss.pgh.pa.us
Whole thread Raw
In response to Re: We're leaking predicate locks in HEAD  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: We're leaking predicate locks in HEAD  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> Reproduced here.  Once the system reaches a state where it's leaking
> (which happens only occasionally for me during installcheck-parallel),
> it keeps leaking for future SSI transactions.  The cause is
> SxactGlobalXmin getting stuck.  The attached fixes it for me.  I can't
> remember why on earth I made that change, but it is quite clearly
> wrong: you have to check every transaction, or you might never advance
> SxactGlobalXmin.

Hm.  So I don't have any opinion about whether this is a correct fix for
the leak, but I am quite distressed that the system failed to notice that
it was leaking predicate locks.  Shouldn't there be the same sort of
leak-detection infrastructure that we have for most types of resources?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: postgres_fdw: another oddity in costing aggregate pushdown paths
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: Statistical aggregate functions are not working with PARTIALaggregation