PostgreSQL参数学习:vacuum_defer_clean_age
生活随笔
收集整理的這篇文章主要介紹了
PostgreSQL参数学习:vacuum_defer_clean_age
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
官方文檔:
http://www.postgresql.org/docs/9.3/static/runtime-config-replication.html
為了防止slave端讀取數據時,因為讀到的是舊有數據而被強制取消,設定了這么一個以transaction為單位的值。
就是可以保證經過這么多的trsanction后,數據仍然得以為slave 幾點到讀取而保留。?
?
vacuum_defer_cleanup_age (integer) Specifies the number of transactions by which VACUUM and HOT updates will defer cleanup of dead row versions. The default is zero transactions, meaning that dead row versions can be removed as soon as possible, that is, as soon as they are no longer visible to any open transaction. You may wish to set this to a non-zero value on a primary server that is supporting hot standby servers, as described in Section 25.5. This allows more time for queries on the standby to complete without incurring conflicts due to early cleanup of rows. However, since the value is measured in terms of number of write transactions occurring on the primary server, it is difficult to predict just how much additional grace time will be made available to standby queries. This parameter can only be set in the postgresql.conf file or on the server command line.You should also consider setting hot_standby_feedback on standby server(s) as an alternative to using this parameter.?
參考:
http://blog.sina.com.cn/s/blog_773523db0101054f.html
結束
轉載于:https://www.cnblogs.com/gaojian/p/3355319.html
總結
以上是生活随笔為你收集整理的PostgreSQL参数学习:vacuum_defer_clean_age的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 同态滤波及matlab实现,怎样用MAT
- 下一篇: ios uiswitch 开关_IOS开