diff options
Diffstat (limited to 'src/backend/replication/repl_gram.y')
-rw-r--r-- | src/backend/replication/repl_gram.y | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/src/backend/replication/repl_gram.y b/src/backend/replication/repl_gram.y index 6d1dbd72e91..3b92180e8cb 100644 --- a/src/backend/replication/repl_gram.y +++ b/src/backend/replication/repl_gram.y @@ -25,8 +25,6 @@ /* Result of the parsing is returned here */ Node *replication_parse_result; -static SQLCmd *make_sqlcmd(void); - /* * Bison doesn't allocate anything that needs to live across parser calls, @@ -59,7 +57,6 @@ static SQLCmd *make_sqlcmd(void); %token <str> SCONST IDENT %token <uintval> UCONST %token <recptr> RECPTR -%token T_WORD /* Keyword tokens. */ %token K_BASE_BACKUP @@ -95,7 +92,7 @@ static SQLCmd *make_sqlcmd(void); %type <node> command %type <node> base_backup start_replication start_logical_replication create_replication_slot drop_replication_slot identify_system - read_replication_slot timeline_history show sql_cmd + read_replication_slot timeline_history show %type <list> base_backup_legacy_opt_list generic_option_list %type <defelt> base_backup_legacy_opt generic_option %type <uintval> opt_timeline @@ -129,7 +126,6 @@ command: | read_replication_slot | timeline_history | show - | sql_cmd ; /* @@ -450,10 +446,6 @@ plugin_opt_arg: | /* EMPTY */ { $$ = NULL; } ; -sql_cmd: - IDENT { $$ = (Node *) make_sqlcmd(); } - ; - generic_option_list: generic_option_list ',' generic_option { $$ = lappend($1, $3); } @@ -514,20 +506,4 @@ ident_or_keyword: %% -static SQLCmd * -make_sqlcmd(void) -{ - SQLCmd *cmd = makeNode(SQLCmd); - int tok; - - /* Just move lexer to the end of command. */ - for (;;) - { - tok = yylex(); - if (tok == ';' || tok == 0) - break; - } - return cmd; -} - #include "repl_scanner.c" |