Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit63585b1

Browse files
committed
doc: Fix description of replication command CREATE_REPLICATION_SLOT
The output plugin name is a mandatory option when creating a logicalslot, but the grammar documented was not described as such. While onit, fix two comments in repl_gram.y to show that TEMPORARY is anoptional grammar choice.Author: Ayaki TachikakeDiscussion:https://postgr.es/m/OSAPR01MB2852607B2329FFA27834105AF1229@OSAPR01MB2852.jpnprd01.prod.outlook.comBackpatch-through: 15
1 parent2d27e13 commit63585b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎doc/src/sgml/protocol.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
19871987
</varlistentry>
19881988

19891989
<varlistentry id="protocol-replication-create-replication-slot" xreflabel="CREATE_REPLICATION_SLOT">
1990-
<term><literal>CREATE_REPLICATION_SLOT</literal> <replaceable class="parameter">slot_name</replaceable> [ <literal>TEMPORARY</literal> ] { <literal>PHYSICAL</literal> | <literal>LOGICAL</literal> } [ ( <replaceable class="parameter">option</replaceable> [, ...] ) ]
1990+
<term><literal>CREATE_REPLICATION_SLOT</literal> <replaceable class="parameter">slot_name</replaceable> [ <literal>TEMPORARY</literal> ] { <literal>PHYSICAL</literal> | <literal>LOGICAL</literal><replaceable class="parameter">output_plugin</replaceable>} [ ( <replaceable class="parameter">option</replaceable> [, ...] ) ]
19911991
<indexterm><primary>CREATE_REPLICATION_SLOT</primary></indexterm>
19921992
</term>
19931993
<listitem>

‎src/backend/replication/repl_gram.y

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ base_backup:
172172
;
173173

174174
create_replication_slot:
175-
/* CREATE_REPLICATION_SLOT slot TEMPORARY PHYSICAL [options]*/
175+
/* CREATE_REPLICATION_SLOT slot[TEMPORARY] PHYSICAL [options]*/
176176
K_CREATE_REPLICATION_SLOTIDENTopt_temporaryK_PHYSICALcreate_slot_options
177177
{
178178
CreateReplicationSlotCmd *cmd;
@@ -183,7 +183,7 @@ create_replication_slot:
183183
cmd->options =$5;
184184
$$ = (Node *) cmd;
185185
}
186-
/* CREATE_REPLICATION_SLOT slot TEMPORARY LOGICAL plugin [options]*/
186+
/* CREATE_REPLICATION_SLOT slot[TEMPORARY] LOGICAL plugin [options]*/
187187
|K_CREATE_REPLICATION_SLOTIDENTopt_temporaryK_LOGICALIDENTcreate_slot_options
188188
{
189189
CreateReplicationSlotCmd *cmd;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp