Skip to content

Prepared transactionをプリペアドトランザクションに統一 - #3706

Open
noborus wants to merge 2 commits into
pgsql-jp:doc_ja_18from
noborus:prepared-transaction
Open

Prepared transactionをプリペアドトランザクションに統一#3706
noborus wants to merge 2 commits into
pgsql-jp:doc_ja_18from
noborus:prepared-transaction

Conversation

@noborus

@noborus noborus commented Jul 18, 2026

Copy link
Copy Markdown
Member

- #2490の対応です。
- prepared statementの方は別に出す予定です。

@KenichiroTanaka KenichiroTanaka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

対応ありがとうございました。
いくつか気づいたところがあったのでみていただいてもいいでしょうか。

Comment thread doc/src/sgml/logicaldecoding.sgml Outdated
明示的あるいは暗黙的にロールバックされたトランザクションは、決してデコードされません。
成功したセーブポイントは、実行された順番にセーブポイントが実行されたトランザクションの中に折り込まれます。
<command>PREPARE TRANSACTION</command>を使用して2相コミット用に準備されたトランザクションも、デコードに必要な出力プラグインコールバックが提供されていればデコードされます。
<command>PREPARE TRANSACTION</command>を使用して2相コミット用にプリペアドトランザクションも、デコードに必要な出力プラグインコールバックが提供されていればデコードされます。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

準備された、であればつながっていた日本語がプリペアドにすると少し不自然に感じました。
「2相コミット用にプリペアドトランザクションも」

「2相コミット用プリペアドトランザクションも」
としていただくのはどうでしょうか。

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正しました。

Comment thread doc/src/sgml/xact.sgml Outdated
短命なプリペアドトランザクションは共有メモリとWALにのみ格納されます
チェックポイントをまたいだトランザクションは<filename>pg_twophase</filename>ディレクトリに記録されます。
現在準備済みのトランザクションは<link linkend="view-pg-prepared-xacts"><structname>pg_prepared_xacts</structname></link>を使用して検査できます。
現在プリペアドのトランザクションは<link linkend="view-pg-prepared-xacts"><structname>pg_prepared_xacts</structname></link>を使用して検査できます。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「現在プリペアドのトランザクションは」という表現が気になりました。
「現在のプリペアドトランザクションは」などとするのがいいでしょうか。

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正しました。

Comment thread doc/src/sgml/ref/commit_prepared.sgml Outdated
<refpurpose>commit a transaction that was earlier prepared for two-phase commit</refpurpose>
-->
<refpurpose>二相コミット用に事前に準備されたトランザクションをコミットする</refpurpose>
<refpurpose>二相コミット用に事前にプリペアドトランザクションをコミットする</refpurpose>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「論理レプリケーションワーカーによってプリペアドトランザクションは次のようなパターンを持ちます」
ですが、ちょっと文章が不自然になってしまいました。
「論理レプリケーションワーカーによるプリペアドトランザクションは」
とするのはどうでしょうか。

Comment thread doc/src/sgml/ref/rollback_prepared.sgml Outdated
<refpurpose>cancel a transaction that was earlier prepared for two-phase commit</refpurpose>
-->
<refpurpose>二相コミット用に事前に準備されたトランザクションを取り消す</refpurpose>
<refpurpose>二相コミット用に事前にプリペアドトランザクションを取り消す</refpurpose>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちらも「二相コミット用事前にプリペアドトランザクションを取り消す」としていただくのはどうでしょうか。

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commit_prepared.sgmlと合わせて、prepared transactionではなかったので、元に戻して修正しました。

- 指摘されたプリペアドトランザクションにしたことで変になっていた箇所の修正
- 二相コミットを2相コミットに修正
- 「prepared transaction」でなかった箇所は「準備されたトランザクション」に戻す
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants