diff options
author | Michael Paquier | 2022-10-12 23:53:42 +0000 |
---|---|---|
committer | Michael Paquier | 2022-10-12 23:53:42 +0000 |
commit | 63585b1ebd0d5ee66ff8f801202656d40ff9bb63 (patch) | |
tree | 42af9ce9ddb4886eaadfa7571ed484cf1ba00237 /src/backend | |
parent | 2d27e13b35e9a932006006eb084cf9a1d90a8cb8 (diff) |
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/backend')
-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 fe1ec2bc810..7ba33d6672f 100644 --- a/src/backend/replication/repl_gram.y +++ b/src/backend/replication/repl_gram.y @@ -172,7 +172,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; @@ -183,7 +183,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; |