aurora_stat_reset_wal_cache - Amazon Aurora

aurora_stat_reset_wal_cache

論理 WAL キャッシュのカウンターをリセットします。

構文

特定のスロットをリセットするには

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)