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:40:18 +0000 (22:40 -0500)
commit73d1bfd0b567ef9a4439be1510c12c346a064d9e
tree1e84594c76cb224116aaf497318fdecf1e20d2da
parent99f5e47df5d04670be2fb5d575d6dc294a312eea
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