Update comments atop ReplicationSlotCreate.

Amit Kapila <akapila@postgresql.org>

Commit: c970bdc037f4f35f1ff852b4c032f5fb3f6f6622
Author: Amit Kapila <akapila@postgresql.org>
Date: 2026-01-06T05:02:25Z
Update comments atop ReplicationSlotCreate.

Since commit 1462aad2e4, which introduced the ability to modify the
two_phase property of a slot, the comments above ReplicationSlotCreate
have become outdated. We have now added a cautionary note in the comments
above ReplicationSlotAlter explaining when it is safe to modify the
two_phase property of a slot.

Author: Daniil Davydov <3danissimo@gmail.com>
Author: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Backpatch-through: 18
Discussion: https://postgr.es/m/CAJDiXggZXQZ7bD0QcTizDt6us9aX6ZKK4dWxzgb5x3+TsVHjqQ@mail.gmail.com

Files

PathChange+/−
src/backend/replication/slot.c modified +11 −7

Discussion