]> granicus.if.org Git - postgresql/commit
Prevent autovacuum transactions from running in serializable mode.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Nov 2011 03:39:16 +0000 (22:39 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 30 Nov 2011 03:39:34 +0000 (22:39 -0500)
commit2767158978796f4ce5cf39d28f29d32b66ee142e
tree3e4cf6d179521301664c61ff3a121c708ca45c5e
parent10ff8f98a0df59d0ad5d162cd88a0c687c3a5920
Prevent autovacuum transactions from running in serializable mode.

Force the transaction isolation level to READ COMMITTED in autovacuum
worker and launcher processes.  There is no benefit to using a higher
isolation level, and doing so could result in delaying foreground
transactions (or maybe even causing unnecessary serialization failures?).
Noted by Dan Ports.

Also, make sure we disable zero_damaged_pages and statement_timeout in
the autovac launcher, not only workers.  Now that the launcher can run
transactions, these settings could affect its behavior, and it seems
like the same arguments apply to the launcher as the workers.
src/backend/postmaster/autovacuum.c