バージョンごとのドキュメント一覧

第63章 Write Ahead Logging for Extensions

目次

63.1. 汎用WALレコード
63.2. カスタムWALリソースマネージャ

Certain extensions, principally extensions that implement custom access methods, may need to perform write-ahead logging in order to ensure crash-safety. <productname>PostgreSQL</productname> provides two ways for extensions to achieve this goal. 《機械翻訳》特定の拡張、主にカスタムアクセスメソッドを実装する拡張は、クラッシュセーフを保証するために先行書き込みロギングを実行する必要があるかもしれません。 PostgreSQLは、拡張がこの目標を達成するために2つの方法を提供します。

First, extensions can choose to use <link linkend="generic-wal">generic WAL</link>, a special type of WAL record which describes changes to pages in a generic way. This method is simple to implement and does not require that an extension library be loaded in order to apply the records. However, generic WAL records will be ignored when performing logical decoding. 《機械翻訳》まず、拡張機能は汎用WALを使用することを選択できます。 これは、ページの変更を汎用的な方法で記述する特殊なWALレコードです。 この方法は実装が簡単で、レコードを適用するために拡張機能ライブラリをロードする必要がありません。 ただし、汎用WALレコードは論理デコードを実行するときには無視されます。

Second, extensions can choose to use a <link linkend="custom-rmgr">custom resource manager</link>. This method is more flexible, supports logical decoding, and can sometimes generate much smaller write-ahead log records than would be possible with generic WAL. However, it is more complex for an extension to implement. 《機械翻訳》第二に、拡張はカスタムリソースマネージャを使用することを選択できます。 この方法はより柔軟で、論理的なデコードをサポートし、一般的なWALよりも小さな先読みログレコードを生成できる場合があります。 しかし、拡張が実装するのはより複雑です。

doc/src/sgml/generic-wal.sgml doc/src/sgml/custom-rmgr.sgml