mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user