日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

PostgreSQL参数学习:vacuum_defer_clean_age

發布時間:2023/12/20 数据库 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。