diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-10-13 08:53:44 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-10-13 08:53:44 +0900 |
commit | 91416f45f8bb8c4466e577efd79822be11645794 (patch) | |
tree | 081f74f522eb038287175dffd90358fa832b6018 /src | |
parent | 42d203ccfa8741ca8086e33f98aaa6c169063ef7 (diff) | |
download | postgresql-91416f45f8bb8c4466e577efd79822be11645794.tar.gz postgresql-91416f45f8bb8c4466e577efd79822be11645794.zip |
doc: Fix description of replication command CREATE_REPLICATION_SLOT
The output plugin name is a mandatory option when creating a logical
slot, but the grammar documented was not described as such. While on
it, fix two comments in repl_gram.y to show that TEMPORARY is an
optional grammar choice.
Author: Ayaki Tachikake
Discussion: https://postgr.es/m/OSAPR01MB2852607B2329FFA27834105AF1229@OSAPR01MB2852.jpnprd01.prod.outlook.com
Backpatch-through: 15
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/replication/repl_gram.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/repl_gram.y b/src/backend/replication/repl_gram.y index 4cf087e602e..ea6b8c0ade6 100644 --- a/src/backend/replication/repl_gram.y +++ b/src/backend/replication/repl_gram.y @@ -174,7 +174,7 @@ base_backup: ; create_replication_slot: - /* CREATE_REPLICATION_SLOT slot TEMPORARY PHYSICAL [options] */ + /* CREATE_REPLICATION_SLOT slot [TEMPORARY] PHYSICAL [options] */ K_CREATE_REPLICATION_SLOT IDENT opt_temporary K_PHYSICAL create_slot_options { CreateReplicationSlotCmd *cmd; @@ -185,7 +185,7 @@ create_replication_slot: cmd->options = $5; $$ = (Node *) cmd; } - /* CREATE_REPLICATION_SLOT slot TEMPORARY LOGICAL plugin [options] */ + /* CREATE_REPLICATION_SLOT slot [TEMPORARY] LOGICAL plugin [options] */ | K_CREATE_REPLICATION_SLOT IDENT opt_temporary K_LOGICAL IDENT create_slot_options { CreateReplicationSlotCmd *cmd; |