PostgreSQL 8.2.3 婺桺桺懼
劯锔媆锔䆹43. 係䂘臘媆誕嬉誕

43.10. pg_autovacuum

pg_autovacuum 婺 autovacuum 垽檴誕䘋庻嗘鐽凹懟婻噿係䔇陉䘞埗昄䂍庺䔇埗昄儖䫘庯躻媘橙䊖臖臘㔗套悩澇橬柊冕溇䕞闼幽嘪䫘係䂘评啘䔇䚺䩕㔗噿庯 autovacuum 䔇敘崔媇敇埗蓕誗22.1.4

臘43-10. pg_autovacuum 庖枕

劉庖䌂傋嚘䫘柟誄
vacrelidoidpg_class.oid溴溇螄嘘䫘庯䔇臘
enabledbool 套悩婺啺臖臘傯婉嚔赆躻媘橙䊖
vac_base_threshinteger 橙䊖嬉媞櫹䔇橔儏䔇臯昄䕞
vac_scale_factorfloat4 誘媹彄 vac_base_thresh 婪䔇臯䔇唉昄
anl_base_threshinteger 彖悊幋嬉媞櫹䔇橔儏䔇臯昄䕞
anl_scale_factorfloat4 誘媹彄 anl_base_thresh 婪䔇臯䔇唉昄
vac_cost_delayinteger 躻垔幬䔇 vacuum_cost_delay 埗昄
vac_cost_limitinteger 躻垔幬䔇 vacuum_cost_limit 埗昄
freeze_min_ageinteger 躻垔幬䔇 vacuum_freeze_min_age 埗昄
freeze_max_ageinteger 躻垔幬䔇 autovacuum_freeze_max_age 埗昄

autovacuum 垽檴誕䘋婘昊婻臘婪臯䔇敘桄潡蔙役鍴昄䕞轙誺 vac_base_thresh 媹婪 vac_scale_factor 幻傖噿係(臘)婺嘷嬉䔇橬昽臯䔇嚄螇昄幋劯儖凹臖臘埏蕙婔渇 VACUUM 淉嘩㔗䌂嚚套悩昊臘婪某噖敘桄潡蔙役鍴䔇臯昄䕞轙誺庖 anl_base_thresh 媹婪 anl_scale_factor 幻傖噿係(臘)婺嘷嬉橬昽臯䔇嚄螇昄幋劯儖凹臖臘埏蕙婔渇 ANALYZE 淉嘩㔗

劯湙套悩臘䔇 pg_class.relfrozenxid 庖枕轙誺 freeze_max_age 渇庋媇闼幽方螺臖臘滇劥赆媞櫹autovacuum 鄘嚔欓臯 VACUUM 淉嘩傖镪噉庋媇 ID 麉培㔗剿嘪婘 autovacuum 赆䥕䫘䔇愙喕婋係䂘幘嚔脄䫘 autovacuum 準欓臯 VACUUM 㔗埗蓕誗22.1.3诙埡敘崔媇敇㔗

婪誄欔橬昄庖庖枕鄘埇傖寙劆 -1 潡蔙滇傂嘘蘘昄臘䴺婘認婻昄唚婪嘪䫘係䂘评啘䔇䚺䩕唚㔗濘懟vac_cost_delay 埻麟傯陉䘞埗昄 autovacuum_vacuum_cost_delay 䂓欪䚺䩕昄唚套悩嬉麵認婻埗昄螆䘞婺蘘唚彍傯 vacuum_cost_delay 䂓欪䚺䩕唚㔗vac_cost_limit 幘婔湙㔗劯湙autovacuum 儖媘䘖嚕商鐽凹剘婻臘螆䘞崓庯係䂘噘匔唚䔇 freeze_max_age 唚(臖唚備噕螩懫噘匔唚敘償)劯施freeze_min_age value 儖赆鍊彽婺係䂘噘匔 autovacuum_freeze_max_age 唚䔇婔剪幋喙㔗


劯锔饡釕嬉誕
pg_auth_members婪婔亓pg_cast