@@ -67,15 +67,7 @@ Node *replication_parse_result;
67
67
%token K_CREATE_REPLICATION_SLOT
68
68
%token K_DROP_REPLICATION_SLOT
69
69
%token K_TIMELINE_HISTORY
70
- %token K_LABEL
71
- %token K_PROGRESS
72
- %token K_FAST
73
70
%token K_WAIT
74
- %token K_NOWAIT
75
- %token K_MAX_RATE
76
- %token K_WAL
77
- %token K_TABLESPACE_MAP
78
- %token K_NOVERIFY_CHECKSUMS
79
71
%token K_TIMELINE
80
72
%token K_PHYSICAL
81
73
%token K_LOGICAL
@@ -86,15 +78,13 @@ Node *replication_parse_result;
86
78
%token K_EXPORT_SNAPSHOT
87
79
%token K_NOEXPORT_SNAPSHOT
88
80
%token K_USE_SNAPSHOT
89
- %token K_MANIFEST
90
- %token K_MANIFEST_CHECKSUMS
91
81
92
82
%type <node> command
93
83
%type <node> base_backup start_replication start_logical_replication
94
84
create_replication_slot drop_replication_slot identify_system
95
85
read_replication_slot timeline_history show
96
- %type <list> base_backup_legacy_opt_list generic_option_list
97
- %type <defelt> base_backup_legacy_opt generic_option
86
+ %type <list> generic_option_list
87
+ %type <defelt> generic_option
98
88
%type <uintval> opt_timeline
99
89
%type <list> plugin_options plugin_opt_list
100
90
%type <defelt> plugin_opt_elem
@@ -167,15 +157,7 @@ var_name: IDENT { $$ = $1; }
167
157
;
168
158
169
159
/*
170
- * BASE_BACKUP ( option [ 'value' ] [, ...] )
171
- *
172
- * We also still support the legacy syntax:
173
- *
174
- * BASE_BACKUP [LABEL '<label>'] [PROGRESS] [FAST] [WAL] [NOWAIT]
175
- * [MAX_RATE %d] [TABLESPACE_MAP] [NOVERIFY_CHECKSUMS]
176
- * [MANIFEST %s] [MANIFEST_CHECKSUMS %s]
177
- *
178
- * Future options should be supported only using the new syntax.
160
+ * BASE_BACKUP [ ( option [ 'value' ] [, ...] ) ]
179
161
*/
180
162
base_backup :
181
163
K_BASE_BACKUP ' (' generic_option_list ' )'
@@ -184,74 +166,13 @@ base_backup:
184
166
cmd->options = $3 ;
185
167
$$ = (Node *) cmd;
186
168
}
187
- | K_BASE_BACKUP base_backup_legacy_opt_list
169
+ | K_BASE_BACKUP
188
170
{
189
171
BaseBackupCmd *cmd = makeNode(BaseBackupCmd);
190
- cmd->options = $2 ;
191
172
$$ = (Node *) cmd;
192
173
}
193
174
;
194
175
195
- base_backup_legacy_opt_list :
196
- base_backup_legacy_opt_list base_backup_legacy_opt
197
- { $$ = lappend($1 , $2 ); }
198
- | /* EMPTY */
199
- { $$ = NIL; }
200
- ;
201
-
202
- base_backup_legacy_opt :
203
- K_LABEL SCONST
204
- {
205
- $$ = makeDefElem(" label" ,
206
- (Node *)makeString($2 ), -1 );
207
- }
208
- | K_PROGRESS
209
- {
210
- $$ = makeDefElem(" progress" ,
211
- (Node *)makeBoolean(true ), -1 );
212
- }
213
- | K_FAST
214
- {
215
- $$ = makeDefElem(" checkpoint" ,
216
- (Node *)makeString(" fast" ), -1 );
217
- }
218
- | K_WAL
219
- {
220
- $$ = makeDefElem(" wal" ,
221
- (Node *)makeBoolean(true ), -1 );
222
- }
223
- | K_NOWAIT
224
- {
225
- $$ = makeDefElem(" wait" ,
226
- (Node *)makeBoolean(false ), -1 );
227
- }
228
- | K_MAX_RATE UCONST
229
- {
230
- $$ = makeDefElem(" max_rate" ,
231
- (Node *)makeInteger($2 ), -1 );
232
- }
233
- | K_TABLESPACE_MAP
234
- {
235
- $$ = makeDefElem(" tablespace_map" ,
236
- (Node *)makeBoolean(true ), -1 );
237
- }
238
- | K_NOVERIFY_CHECKSUMS
239
- {
240
- $$ = makeDefElem(" verify_checksums" ,
241
- (Node *)makeBoolean(false ), -1 );
242
- }
243
- | K_MANIFEST SCONST
244
- {
245
- $$ = makeDefElem(" manifest" ,
246
- (Node *)makeString($2 ), -1 );
247
- }
248
- | K_MANIFEST_CHECKSUMS SCONST
249
- {
250
- $$ = makeDefElem(" manifest_checksums" ,
251
- (Node *)makeString($2 ), -1 );
252
- }
253
- ;
254
-
255
176
create_replication_slot :
256
177
/* CREATE_REPLICATION_SLOT slot TEMPORARY PHYSICAL [options] */
257
178
K_CREATE_REPLICATION_SLOT IDENT opt_temporary K_PHYSICAL create_slot_options
@@ -481,15 +402,7 @@ ident_or_keyword:
481
402
| K_CREATE_REPLICATION_SLOT { $$ = " create_replication_slot" ; }
482
403
| K_DROP_REPLICATION_SLOT { $$ = " drop_replication_slot" ; }
483
404
| K_TIMELINE_HISTORY { $$ = " timeline_history" ; }
484
- | K_LABEL { $$ = " label" ; }
485
- | K_PROGRESS { $$ = " progress" ; }
486
- | K_FAST { $$ = " fast" ; }
487
405
| K_WAIT { $$ = " wait" ; }
488
- | K_NOWAIT { $$ = " nowait" ; }
489
- | K_MAX_RATE { $$ = " max_rate" ; }
490
- | K_WAL { $$ = " wal" ; }
491
- | K_TABLESPACE_MAP { $$ = " tablespace_map" ; }
492
- | K_NOVERIFY_CHECKSUMS { $$ = " noverify_checksums" ; }
493
406
| K_TIMELINE { $$ = " timeline" ; }
494
407
| K_PHYSICAL { $$ = " physical" ; }
495
408
| K_LOGICAL { $$ = " logical" ; }
@@ -500,8 +413,6 @@ ident_or_keyword:
500
413
| K_EXPORT_SNAPSHOT { $$ = " export_snapshot" ; }
501
414
| K_NOEXPORT_SNAPSHOT { $$ = " noexport_snapshot" ; }
502
415
| K_USE_SNAPSHOT { $$ = " use_snapshot" ; }
503
- | K_MANIFEST { $$ = " manifest" ; }
504
- | K_MANIFEST_CHECKSUMS { $$ = " manifest_checksums" ; }
505
416
;
506
417
507
418
%%
0 commit comments