本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
aurora_stat_reset_wal_cache
Resets the counter for logical wal cache.
語法
重設特定槽
SELECT * FROM aurora_stat_reset_wal_cache('slot_name')
重設所有槽
SELECT * FROM aurora_stat_reset_wal_cache(NULL)
引數
NULL
或 slot_name
傳回類型
狀態訊息,文字字串
重設邏輯 WAL 快取計數器 – 成功訊息。此文字會在函數成功時傳回。
找不到複寫槽。請再試一次。- 失敗訊息。此文字會在函數未成功時傳回。
使用須知
此函數適用於下列版本:
Aurora PostgreSQL 14.5 及更高版本
Aurora PostgreSQL 13.8 版及更高版本
Aurora PostgreSQL 12.12 版和更高版本
Aurora PostgreSQL 11.17 版及更高版本
範例
下列範例會使用 aurora_stat_reset_wal_cache
函數來重設名為 test_results
的槽,然後嘗試重設不存在的槽。
=>
SELECT * FROM aurora_stat_reset_wal_cache('test_slot');
aurora_stat_reset_wal_cache -------------------------------------- Reset the logical wal cache counter. (1 row)
=>
SELECT * FROM aurora_stat_reset_wal_cache('slot-not-exist');
aurora_stat_reset_wal_cache ----------------------------------------------- Replication slot not found. Please try again. (1 row)