postgresql/src/backend/storage
Thomas Munro 47a338cfcd Fix SxactGlobalXmin tracking.
Commit bb16aba50 broke the code that maintains SxactGlobalXmin.  It
could get stuck when a well-timed READ ONLY transaction runs.  If
SxactGlobalXmin stops advancing, transactions on the
FinishedSerializableTransactions queue are never cleaned up, so
resources are effectively leaked.  Revert that hunk of the commit.

Also revert another similar hunk that was probably harmless, but
unnecessary and unjustified, relating to the DOOMED flag in case of
RO_SAFE early release.

Author: Thomas Munro
Reported-by: Tom Lane
Discussion: https://postgr.es/m/16170.1557251214%40sss.pgh.pa.us
2019-05-09 20:32:26 +12:00
..
buffer Refactor the fsync queue for wider use. 2019-04-04 23:38:38 +13:00
file Simplify some ERROR paths clearing wait events and transient files 2019-04-17 09:51:45 +09:00
freespace Revert "Avoid the creation of the free space map for small heap relations". 2019-05-07 09:30:24 +05:30
ipc Unify error messages 2019-04-24 09:26:13 -04:00
large_object Remove superfluous tqual.h includes. 2019-01-21 12:15:02 -08:00
lmgr Fix SxactGlobalXmin tracking. 2019-05-09 20:32:26 +12:00
page Track block level checksum failures in pg_stat_database 2019-03-09 10:47:30 -08:00
smgr Fix function names in comments. 2019-04-25 23:43:48 +09:00
sync Fix function names in comments. 2019-04-25 23:43:48 +09:00
Makefile Refactor the fsync queue for wider use. 2019-04-04 23:38:38 +13:00