LCOV - code coverage report
Current view: top level - src/backend/replication - repl_gram.c (source / functions) Hit Total Coverage
Test: PostgreSQL 18devel Lines: 160 270 59.3 %
Date: 2024-07-27 03:11:23 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* A Bison parser, made by GNU Bison 3.7.5.  */
       2             : 
       3             : /* Bison implementation for Yacc-like parsers in C
       4             : 
       5             :    Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
       6             :    Inc.
       7             : 
       8             :    This program is free software: you can redistribute it and/or modify
       9             :    it under the terms of the GNU General Public License as published by
      10             :    the Free Software Foundation, either version 3 of the License, or
      11             :    (at your option) any later version.
      12             : 
      13             :    This program is distributed in the hope that it will be useful,
      14             :    but WITHOUT ANY WARRANTY; without even the implied warranty of
      15             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      16             :    GNU General Public License for more details.
      17             : 
      18             :    You should have received a copy of the GNU General Public License
      19             :    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
      20             : 
      21             : /* As a special exception, you may create a larger work that contains
      22             :    part or all of the Bison parser skeleton and distribute that work
      23             :    under terms of your choice, so long as that work isn't itself a
      24             :    parser generator using the skeleton or a modified version thereof
      25             :    as a parser skeleton.  Alternatively, if you modify or redistribute
      26             :    the parser skeleton itself, you may (at your option) remove this
      27             :    special exception, which will cause the skeleton and the resulting
      28             :    Bison output files to be licensed under the GNU General Public
      29             :    License without this special exception.
      30             : 
      31             :    This special exception was added by the Free Software Foundation in
      32             :    version 2.2 of Bison.  */
      33             : 
      34             : /* C LALR(1) parser skeleton written by Richard Stallman, by
      35             :    simplifying the original so-called "semantic" parser.  */
      36             : 
      37             : /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
      38             :    especially those whose name start with YY_ or yy_.  They are
      39             :    private implementation details that can be changed or removed.  */
      40             : 
      41             : /* All symbols defined below should begin with yy or YY, to avoid
      42             :    infringing on user name space.  This should be done even for local
      43             :    variables, as they might otherwise be expanded by user macros.
      44             :    There are some unavoidable exceptions within include files to
      45             :    define necessary library symbols; they are noted "INFRINGES ON
      46             :    USER NAME SPACE" below.  */
      47             : 
      48             : /* Identify Bison output, and Bison version.  */
      49             : #define YYBISON 30705
      50             : 
      51             : /* Bison version string.  */
      52             : #define YYBISON_VERSION "3.7.5"
      53             : 
      54             : /* Skeleton name.  */
      55             : #define YYSKELETON_NAME "yacc.c"
      56             : 
      57             : /* Pure parsers.  */
      58             : #define YYPURE 0
      59             : 
      60             : /* Push parsers.  */
      61             : #define YYPUSH 0
      62             : 
      63             : /* Pull parsers.  */
      64             : #define YYPULL 1
      65             : 
      66             : 
      67             : /* Substitute the variable and function names.  */
      68             : #define yyparse         replication_yyparse
      69             : #define yylex           replication_yylex
      70             : #define yyerror         replication_yyerror
      71             : #define yydebug         replication_yydebug
      72             : #define yynerrs         replication_yynerrs
      73             : #define yylval          replication_yylval
      74             : #define yychar          replication_yychar
      75             : 
      76             : /* First part of user prologue.  */
      77             : #line 1 "repl_gram.y"
      78             : 
      79             : /*-------------------------------------------------------------------------
      80             :  *
      81             :  * repl_gram.y              - Parser for the replication commands
      82             :  *
      83             :  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
      84             :  * Portions Copyright (c) 1994, Regents of the University of California
      85             :  *
      86             :  *
      87             :  * IDENTIFICATION
      88             :  *    src/backend/replication/repl_gram.y
      89             :  *
      90             :  *-------------------------------------------------------------------------
      91             :  */
      92             : 
      93             : #include "postgres.h"
      94             : 
      95             : #include "access/xlogdefs.h"
      96             : #include "nodes/makefuncs.h"
      97             : #include "nodes/parsenodes.h"
      98             : #include "nodes/replnodes.h"
      99             : #include "replication/walsender.h"
     100             : #include "replication/walsender_private.h"
     101             : 
     102             : 
     103             : /* silence -Wmissing-variable-declarations */
     104             : extern int replication_yychar;
     105             : extern int replication_yynerrs;
     106             : 
     107             : 
     108             : /* Result of the parsing is returned here */
     109             : Node *replication_parse_result;
     110             : 
     111             : 
     112             : /*
     113             :  * Bison doesn't allocate anything that needs to live across parser calls,
     114             :  * so we can easily have it use palloc instead of malloc.  This prevents
     115             :  * memory leaks if we error out during parsing.
     116             :  */
     117             : #define YYMALLOC palloc
     118             : #define YYFREE   pfree
     119             : 
     120             : 
     121             : #line 122 "repl_gram.c"
     122             : 
     123             : # ifndef YY_CAST
     124             : #  ifdef __cplusplus
     125             : #   define YY_CAST(Type, Val) static_cast<Type> (Val)
     126             : #   define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
     127             : #  else
     128             : #   define YY_CAST(Type, Val) ((Type) (Val))
     129             : #   define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
     130             : #  endif
     131             : # endif
     132             : # ifndef YY_NULLPTR
     133             : #  if defined __cplusplus
     134             : #   if 201103L <= __cplusplus
     135             : #    define YY_NULLPTR nullptr
     136             : #   else
     137             : #    define YY_NULLPTR 0
     138             : #   endif
     139             : #  else
     140             : #   define YY_NULLPTR ((void*)0)
     141             : #  endif
     142             : # endif
     143             : 
     144             : #include "repl_gram.h"
     145             : /* Symbol kind.  */
     146             : enum yysymbol_kind_t
     147             : {
     148             :   YYSYMBOL_YYEMPTY = -2,
     149             :   YYSYMBOL_YYEOF = 0,                      /* "end of file"  */
     150             :   YYSYMBOL_YYerror = 1,                    /* error  */
     151             :   YYSYMBOL_YYUNDEF = 2,                    /* "invalid token"  */
     152             :   YYSYMBOL_SCONST = 3,                     /* SCONST  */
     153             :   YYSYMBOL_IDENT = 4,                      /* IDENT  */
     154             :   YYSYMBOL_UCONST = 5,                     /* UCONST  */
     155             :   YYSYMBOL_RECPTR = 6,                     /* RECPTR  */
     156             :   YYSYMBOL_K_BASE_BACKUP = 7,              /* K_BASE_BACKUP  */
     157             :   YYSYMBOL_K_IDENTIFY_SYSTEM = 8,          /* K_IDENTIFY_SYSTEM  */
     158             :   YYSYMBOL_K_READ_REPLICATION_SLOT = 9,    /* K_READ_REPLICATION_SLOT  */
     159             :   YYSYMBOL_K_SHOW = 10,                    /* K_SHOW  */
     160             :   YYSYMBOL_K_START_REPLICATION = 11,       /* K_START_REPLICATION  */
     161             :   YYSYMBOL_K_CREATE_REPLICATION_SLOT = 12, /* K_CREATE_REPLICATION_SLOT  */
     162             :   YYSYMBOL_K_DROP_REPLICATION_SLOT = 13,   /* K_DROP_REPLICATION_SLOT  */
     163             :   YYSYMBOL_K_ALTER_REPLICATION_SLOT = 14,  /* K_ALTER_REPLICATION_SLOT  */
     164             :   YYSYMBOL_K_TIMELINE_HISTORY = 15,        /* K_TIMELINE_HISTORY  */
     165             :   YYSYMBOL_K_WAIT = 16,                    /* K_WAIT  */
     166             :   YYSYMBOL_K_TIMELINE = 17,                /* K_TIMELINE  */
     167             :   YYSYMBOL_K_PHYSICAL = 18,                /* K_PHYSICAL  */
     168             :   YYSYMBOL_K_LOGICAL = 19,                 /* K_LOGICAL  */
     169             :   YYSYMBOL_K_SLOT = 20,                    /* K_SLOT  */
     170             :   YYSYMBOL_K_RESERVE_WAL = 21,             /* K_RESERVE_WAL  */
     171             :   YYSYMBOL_K_TEMPORARY = 22,               /* K_TEMPORARY  */
     172             :   YYSYMBOL_K_TWO_PHASE = 23,               /* K_TWO_PHASE  */
     173             :   YYSYMBOL_K_EXPORT_SNAPSHOT = 24,         /* K_EXPORT_SNAPSHOT  */
     174             :   YYSYMBOL_K_NOEXPORT_SNAPSHOT = 25,       /* K_NOEXPORT_SNAPSHOT  */
     175             :   YYSYMBOL_K_USE_SNAPSHOT = 26,            /* K_USE_SNAPSHOT  */
     176             :   YYSYMBOL_K_UPLOAD_MANIFEST = 27,         /* K_UPLOAD_MANIFEST  */
     177             :   YYSYMBOL_28_ = 28,                       /* ';'  */
     178             :   YYSYMBOL_29_ = 29,                       /* '.'  */
     179             :   YYSYMBOL_30_ = 30,                       /* '('  */
     180             :   YYSYMBOL_31_ = 31,                       /* ')'  */
     181             :   YYSYMBOL_32_ = 32,                       /* ','  */
     182             :   YYSYMBOL_YYACCEPT = 33,                  /* $accept  */
     183             :   YYSYMBOL_firstcmd = 34,                  /* firstcmd  */
     184             :   YYSYMBOL_opt_semicolon = 35,             /* opt_semicolon  */
     185             :   YYSYMBOL_command = 36,                   /* command  */
     186             :   YYSYMBOL_identify_system = 37,           /* identify_system  */
     187             :   YYSYMBOL_read_replication_slot = 38,     /* read_replication_slot  */
     188             :   YYSYMBOL_show = 39,                      /* show  */
     189             :   YYSYMBOL_var_name = 40,                  /* var_name  */
     190             :   YYSYMBOL_base_backup = 41,               /* base_backup  */
     191             :   YYSYMBOL_create_replication_slot = 42,   /* create_replication_slot  */
     192             :   YYSYMBOL_create_slot_options = 43,       /* create_slot_options  */
     193             :   YYSYMBOL_create_slot_legacy_opt_list = 44, /* create_slot_legacy_opt_list  */
     194             :   YYSYMBOL_create_slot_legacy_opt = 45,    /* create_slot_legacy_opt  */
     195             :   YYSYMBOL_drop_replication_slot = 46,     /* drop_replication_slot  */
     196             :   YYSYMBOL_alter_replication_slot = 47,    /* alter_replication_slot  */
     197             :   YYSYMBOL_start_replication = 48,         /* start_replication  */
     198             :   YYSYMBOL_start_logical_replication = 49, /* start_logical_replication  */
     199             :   YYSYMBOL_timeline_history = 50,          /* timeline_history  */
     200             :   YYSYMBOL_upload_manifest = 51,           /* upload_manifest  */
     201             :   YYSYMBOL_opt_physical = 52,              /* opt_physical  */
     202             :   YYSYMBOL_opt_temporary = 53,             /* opt_temporary  */
     203             :   YYSYMBOL_opt_slot = 54,                  /* opt_slot  */
     204             :   YYSYMBOL_opt_timeline = 55,              /* opt_timeline  */
     205             :   YYSYMBOL_plugin_options = 56,            /* plugin_options  */
     206             :   YYSYMBOL_plugin_opt_list = 57,           /* plugin_opt_list  */
     207             :   YYSYMBOL_plugin_opt_elem = 58,           /* plugin_opt_elem  */
     208             :   YYSYMBOL_plugin_opt_arg = 59,            /* plugin_opt_arg  */
     209             :   YYSYMBOL_generic_option_list = 60,       /* generic_option_list  */
     210             :   YYSYMBOL_generic_option = 61,            /* generic_option  */
     211             :   YYSYMBOL_ident_or_keyword = 62           /* ident_or_keyword  */
     212             : };
     213             : typedef enum yysymbol_kind_t yysymbol_kind_t;
     214             : 
     215             : 
     216             : 
     217             : 
     218             : #ifdef short
     219             : # undef short
     220             : #endif
     221             : 
     222             : /* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
     223             :    <limits.h> and (if available) <stdint.h> are included
     224             :    so that the code can choose integer types of a good width.  */
     225             : 
     226             : #ifndef __PTRDIFF_MAX__
     227             : # include <limits.h> /* INFRINGES ON USER NAME SPACE */
     228             : # if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
     229             : #  include <stdint.h> /* INFRINGES ON USER NAME SPACE */
     230             : #  define YY_STDINT_H
     231             : # endif
     232             : #endif
     233             : 
     234             : /* Narrow types that promote to a signed type and that can represent a
     235             :    signed or unsigned integer of at least N bits.  In tables they can
     236             :    save space and decrease cache pressure.  Promoting to a signed type
     237             :    helps avoid bugs in integer arithmetic.  */
     238             : 
     239             : #ifdef __INT_LEAST8_MAX__
     240             : typedef __INT_LEAST8_TYPE__ yytype_int8;
     241             : #elif defined YY_STDINT_H
     242             : typedef int_least8_t yytype_int8;
     243             : #else
     244             : typedef signed char yytype_int8;
     245             : #endif
     246             : 
     247             : #ifdef __INT_LEAST16_MAX__
     248             : typedef __INT_LEAST16_TYPE__ yytype_int16;
     249             : #elif defined YY_STDINT_H
     250             : typedef int_least16_t yytype_int16;
     251             : #else
     252             : typedef short yytype_int16;
     253             : #endif
     254             : 
     255             : /* Work around bug in HP-UX 11.23, which defines these macros
     256             :    incorrectly for preprocessor constants.  This workaround can likely
     257             :    be removed in 2023, as HPE has promised support for HP-UX 11.23
     258             :    (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
     259             :    <https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>.  */
     260             : #ifdef __hpux
     261             : # undef UINT_LEAST8_MAX
     262             : # undef UINT_LEAST16_MAX
     263             : # define UINT_LEAST8_MAX 255
     264             : # define UINT_LEAST16_MAX 65535
     265             : #endif
     266             : 
     267             : #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
     268             : typedef __UINT_LEAST8_TYPE__ yytype_uint8;
     269             : #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
     270             :        && UINT_LEAST8_MAX <= INT_MAX)
     271             : typedef uint_least8_t yytype_uint8;
     272             : #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
     273             : typedef unsigned char yytype_uint8;
     274             : #else
     275             : typedef short yytype_uint8;
     276             : #endif
     277             : 
     278             : #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
     279             : typedef __UINT_LEAST16_TYPE__ yytype_uint16;
     280             : #elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
     281             :        && UINT_LEAST16_MAX <= INT_MAX)
     282             : typedef uint_least16_t yytype_uint16;
     283             : #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
     284             : typedef unsigned short yytype_uint16;
     285             : #else
     286             : typedef int yytype_uint16;
     287             : #endif
     288             : 
     289             : #ifndef YYPTRDIFF_T
     290             : # if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
     291             : #  define YYPTRDIFF_T __PTRDIFF_TYPE__
     292             : #  define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
     293             : # elif defined PTRDIFF_MAX
     294             : #  ifndef ptrdiff_t
     295             : #   include <stddef.h> /* INFRINGES ON USER NAME SPACE */
     296             : #  endif
     297             : #  define YYPTRDIFF_T ptrdiff_t
     298             : #  define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
     299             : # else
     300             : #  define YYPTRDIFF_T long
     301             : #  define YYPTRDIFF_MAXIMUM LONG_MAX
     302             : # endif
     303             : #endif
     304             : 
     305             : #ifndef YYSIZE_T
     306             : # ifdef __SIZE_TYPE__
     307             : #  define YYSIZE_T __SIZE_TYPE__
     308             : # elif defined size_t
     309             : #  define YYSIZE_T size_t
     310             : # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
     311             : #  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
     312             : #  define YYSIZE_T size_t
     313             : # else
     314             : #  define YYSIZE_T unsigned
     315             : # endif
     316             : #endif
     317             : 
     318             : #define YYSIZE_MAXIMUM                                  \
     319             :   YY_CAST (YYPTRDIFF_T,                                 \
     320             :            (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1)  \
     321             :             ? YYPTRDIFF_MAXIMUM                         \
     322             :             : YY_CAST (YYSIZE_T, -1)))
     323             : 
     324             : #define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
     325             : 
     326             : 
     327             : /* Stored state numbers (used for stacks). */
     328             : typedef yytype_int8 yy_state_t;
     329             : 
     330             : /* State numbers in computations.  */
     331             : typedef int yy_state_fast_t;
     332             : 
     333             : #ifndef YY_
     334             : # if defined YYENABLE_NLS && YYENABLE_NLS
     335             : #  if ENABLE_NLS
     336             : #   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
     337             : #   define YY_(Msgid) dgettext ("bison-runtime", Msgid)
     338             : #  endif
     339             : # endif
     340             : # ifndef YY_
     341             : #  define YY_(Msgid) Msgid
     342             : # endif
     343             : #endif
     344             : 
     345             : 
     346             : #ifndef YY_ATTRIBUTE_PURE
     347             : # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
     348             : #  define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
     349             : # else
     350             : #  define YY_ATTRIBUTE_PURE
     351             : # endif
     352             : #endif
     353             : 
     354             : #ifndef YY_ATTRIBUTE_UNUSED
     355             : # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
     356             : #  define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
     357             : # else
     358             : #  define YY_ATTRIBUTE_UNUSED
     359             : # endif
     360             : #endif
     361             : 
     362             : /* Suppress unused-variable warnings by "using" E.  */
     363             : #if ! defined lint || defined __GNUC__
     364             : # define YY_USE(E) ((void) (E))
     365             : #else
     366             : # define YY_USE(E) /* empty */
     367             : #endif
     368             : 
     369             : #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
     370             : /* Suppress an incorrect diagnostic about yylval being uninitialized.  */
     371             : # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                            \
     372             :     _Pragma ("GCC diagnostic push")                                     \
     373             :     _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")              \
     374             :     _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
     375             : # define YY_IGNORE_MAYBE_UNINITIALIZED_END      \
     376             :     _Pragma ("GCC diagnostic pop")
     377             : #else
     378             : # define YY_INITIAL_VALUE(Value) Value
     379             : #endif
     380             : #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
     381             : # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
     382             : # define YY_IGNORE_MAYBE_UNINITIALIZED_END
     383             : #endif
     384             : #ifndef YY_INITIAL_VALUE
     385             : # define YY_INITIAL_VALUE(Value) /* Nothing. */
     386             : #endif
     387             : 
     388             : #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
     389             : # define YY_IGNORE_USELESS_CAST_BEGIN                          \
     390             :     _Pragma ("GCC diagnostic push")                            \
     391             :     _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
     392             : # define YY_IGNORE_USELESS_CAST_END            \
     393             :     _Pragma ("GCC diagnostic pop")
     394             : #endif
     395             : #ifndef YY_IGNORE_USELESS_CAST_BEGIN
     396             : # define YY_IGNORE_USELESS_CAST_BEGIN
     397             : # define YY_IGNORE_USELESS_CAST_END
     398             : #endif
     399             : 
     400             : 
     401             : #define YY_ASSERT(E) ((void) (0 && (E)))
     402             : 
     403             : #if !defined yyoverflow
     404             : 
     405             : /* The parser invokes alloca or malloc; define the necessary symbols.  */
     406             : 
     407             : # ifdef YYSTACK_USE_ALLOCA
     408             : #  if YYSTACK_USE_ALLOCA
     409             : #   ifdef __GNUC__
     410             : #    define YYSTACK_ALLOC __builtin_alloca
     411             : #   elif defined __BUILTIN_VA_ARG_INCR
     412             : #    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
     413             : #   elif defined _AIX
     414             : #    define YYSTACK_ALLOC __alloca
     415             : #   elif defined _MSC_VER
     416             : #    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
     417             : #    define alloca _alloca
     418             : #   else
     419             : #    define YYSTACK_ALLOC alloca
     420             : #    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
     421             : #     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
     422             :       /* Use EXIT_SUCCESS as a witness for stdlib.h.  */
     423             : #     ifndef EXIT_SUCCESS
     424             : #      define EXIT_SUCCESS 0
     425             : #     endif
     426             : #    endif
     427             : #   endif
     428             : #  endif
     429             : # endif
     430             : 
     431             : # ifdef YYSTACK_ALLOC
     432             :    /* Pacify GCC's 'empty if-body' warning.  */
     433             : #  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
     434             : #  ifndef YYSTACK_ALLOC_MAXIMUM
     435             :     /* The OS might guarantee only one guard page at the bottom of the stack,
     436             :        and a page size can be as small as 4096 bytes.  So we cannot safely
     437             :        invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
     438             :        to allow for a few compiler-allocated temporary stack slots.  */
     439             : #   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
     440             : #  endif
     441             : # else
     442             : #  define YYSTACK_ALLOC YYMALLOC
     443             : #  define YYSTACK_FREE YYFREE
     444             : #  ifndef YYSTACK_ALLOC_MAXIMUM
     445             : #   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
     446             : #  endif
     447             : #  if (defined __cplusplus && ! defined EXIT_SUCCESS \
     448             :        && ! ((defined YYMALLOC || defined malloc) \
     449             :              && (defined YYFREE || defined free)))
     450             : #   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
     451             : #   ifndef EXIT_SUCCESS
     452             : #    define EXIT_SUCCESS 0
     453             : #   endif
     454             : #  endif
     455             : #  ifndef YYMALLOC
     456             : #   define YYMALLOC malloc
     457             : #   if ! defined malloc && ! defined EXIT_SUCCESS
     458             : void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
     459             : #   endif
     460             : #  endif
     461             : #  ifndef YYFREE
     462             : #   define YYFREE free
     463             : #   if ! defined free && ! defined EXIT_SUCCESS
     464             : void free (void *); /* INFRINGES ON USER NAME SPACE */
     465             : #   endif
     466             : #  endif
     467             : # endif
     468             : #endif /* !defined yyoverflow */
     469             : 
     470             : #if (! defined yyoverflow \
     471             :      && (! defined __cplusplus \
     472             :          || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
     473             : 
     474             : /* A type that is properly aligned for any stack member.  */
     475             : union yyalloc
     476             : {
     477             :   yy_state_t yyss_alloc;
     478             :   YYSTYPE yyvs_alloc;
     479             : };
     480             : 
     481             : /* The size of the maximum gap between one aligned stack and the next.  */
     482             : # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
     483             : 
     484             : /* The size of an array large to enough to hold all stacks, each with
     485             :    N elements.  */
     486             : # define YYSTACK_BYTES(N) \
     487             :      ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
     488             :       + YYSTACK_GAP_MAXIMUM)
     489             : 
     490             : # define YYCOPY_NEEDED 1
     491             : 
     492             : /* Relocate STACK from its old location to the new one.  The
     493             :    local variables YYSIZE and YYSTACKSIZE give the old and new number of
     494             :    elements in the stack, and YYPTR gives the new location of the
     495             :    stack.  Advance YYPTR to a properly aligned location for the next
     496             :    stack.  */
     497             : # define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
     498             :     do                                                                  \
     499             :       {                                                                 \
     500             :         YYPTRDIFF_T yynewbytes;                                         \
     501             :         YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
     502             :         Stack = &yyptr->Stack_alloc;                                    \
     503             :         yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
     504             :         yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
     505             :       }                                                                 \
     506             :     while (0)
     507             : 
     508             : #endif
     509             : 
     510             : #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
     511             : /* Copy COUNT objects from SRC to DST.  The source and destination do
     512             :    not overlap.  */
     513             : # ifndef YYCOPY
     514             : #  if defined __GNUC__ && 1 < __GNUC__
     515             : #   define YYCOPY(Dst, Src, Count) \
     516             :       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
     517             : #  else
     518             : #   define YYCOPY(Dst, Src, Count)              \
     519             :       do                                        \
     520             :         {                                       \
     521             :           YYPTRDIFF_T yyi;                      \
     522             :           for (yyi = 0; yyi < (Count); yyi++)   \
     523             :             (Dst)[yyi] = (Src)[yyi];            \
     524             :         }                                       \
     525             :       while (0)
     526             : #  endif
     527             : # endif
     528             : #endif /* !YYCOPY_NEEDED */
     529             : 
     530             : /* YYFINAL -- State number of the termination state.  */
     531             : #define YYFINAL  34
     532             : /* YYLAST -- Last index in YYTABLE.  */
     533             : #define YYLAST   80
     534             : 
     535             : /* YYNTOKENS -- Number of terminals.  */
     536             : #define YYNTOKENS  33
     537             : /* YYNNTS -- Number of nonterminals.  */
     538             : #define YYNNTS  30
     539             : /* YYNRULES -- Number of rules.  */
     540             : #define YYNRULES  82
     541             : /* YYNSTATES -- Number of states.  */
     542             : #define YYNSTATES  109
     543             : 
     544             : /* YYMAXUTOK -- Last valid token kind.  */
     545             : #define YYMAXUTOK   282
     546             : 
     547             : 
     548             : /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
     549             :    as returned by yylex, with out-of-bounds checking.  */
     550             : #define YYTRANSLATE(YYX)                                \
     551             :   (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
     552             :    ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
     553             :    : YYSYMBOL_YYUNDEF)
     554             : 
     555             : /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
     556             :    as returned by yylex.  */
     557             : static const yytype_int8 yytranslate[] =
     558             : {
     559             :        0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     560             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     561             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     562             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     563             :       30,    31,     2,     2,    32,     2,    29,     2,     2,     2,
     564             :        2,     2,     2,     2,     2,     2,     2,     2,     2,    28,
     565             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     566             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     567             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     568             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     569             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     570             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     571             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     572             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     573             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     574             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     575             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     576             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     577             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     578             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     579             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     580             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     581             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     582             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     583             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     584             :        2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
     585             :        5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
     586             :       15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
     587             :       25,    26,    27
     588             : };
     589             : 
     590             : #if YYDEBUG
     591             :   /* YYRLINE[YYN] -- Source line where rule number YYN was defined.  */
     592             : static const yytype_int16 yyrline[] =
     593             : {
     594             :        0,   105,   105,   111,   112,   116,   117,   118,   119,   120,
     595             :      121,   122,   123,   124,   125,   126,   133,   143,   155,   162,
     596             :      163,   171,   177,   186,   197,   211,   212,   216,   219,   223,
     597             :      228,   233,   238,   243,   252,   260,   272,   286,   301,   316,
     598             :      334,   342,   343,   347,   348,   352,   355,   359,   367,   372,
     599             :      373,   377,   381,   388,   395,   396,   400,   402,   407,   411,
     600             :      415,   419,   426,   427,   428,   429,   430,   431,   432,   433,
     601             :      434,   435,   436,   437,   438,   439,   440,   441,   442,   443,
     602             :      444,   445,   446
     603             : };
     604             : #endif
     605             : 
     606             : /** Accessing symbol of state STATE.  */
     607             : #define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
     608             : 
     609             : #if YYDEBUG || 0
     610             : /* The user-facing name of the symbol whose (internal) number is
     611             :    YYSYMBOL.  No bounds checking.  */
     612             : static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
     613             : 
     614             : /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
     615             :    First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
     616             : static const char *const yytname[] =
     617             : {
     618             :   "\"end of file\"", "error", "\"invalid token\"", "SCONST", "IDENT",
     619             :   "UCONST", "RECPTR", "K_BASE_BACKUP", "K_IDENTIFY_SYSTEM",
     620             :   "K_READ_REPLICATION_SLOT", "K_SHOW", "K_START_REPLICATION",
     621             :   "K_CREATE_REPLICATION_SLOT", "K_DROP_REPLICATION_SLOT",
     622             :   "K_ALTER_REPLICATION_SLOT", "K_TIMELINE_HISTORY", "K_WAIT", "K_TIMELINE",
     623             :   "K_PHYSICAL", "K_LOGICAL", "K_SLOT", "K_RESERVE_WAL", "K_TEMPORARY",
     624             :   "K_TWO_PHASE", "K_EXPORT_SNAPSHOT", "K_NOEXPORT_SNAPSHOT",
     625             :   "K_USE_SNAPSHOT", "K_UPLOAD_MANIFEST", "';'", "'.'", "'('", "')'", "','",
     626             :   "$accept", "firstcmd", "opt_semicolon", "command", "identify_system",
     627             :   "read_replication_slot", "show", "var_name", "base_backup",
     628             :   "create_replication_slot", "create_slot_options",
     629             :   "create_slot_legacy_opt_list", "create_slot_legacy_opt",
     630             :   "drop_replication_slot", "alter_replication_slot", "start_replication",
     631             :   "start_logical_replication", "timeline_history", "upload_manifest",
     632             :   "opt_physical", "opt_temporary", "opt_slot", "opt_timeline",
     633             :   "plugin_options", "plugin_opt_list", "plugin_opt_elem", "plugin_opt_arg",
     634             :   "generic_option_list", "generic_option", "ident_or_keyword", YY_NULLPTR
     635             : };
     636             : 
     637             : static const char *
     638             : yysymbol_name (yysymbol_kind_t yysymbol)
     639             : {
     640             :   return yytname[yysymbol];
     641             : }
     642             : #endif
     643             : 
     644             : #ifdef YYPRINT
     645             : /* YYTOKNUM[NUM] -- (External) token number corresponding to the
     646             :    (internal) symbol number NUM (which must be that of a token).  */
     647             : static const yytype_int16 yytoknum[] =
     648             : {
     649             :        0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     650             :      265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     651             :      275,   276,   277,   278,   279,   280,   281,   282,    59,    46,
     652             :       40,    41,    44
     653             : };
     654             : #endif
     655             : 
     656             : #define YYPACT_NINF (-36)
     657             : 
     658             : #define yypact_value_is_default(Yyn) \
     659             :   ((Yyn) == YYPACT_NINF)
     660             : 
     661             : #define YYTABLE_NINF (-1)
     662             : 
     663             : #define yytable_value_is_error(Yyn) \
     664             :   0
     665             : 
     666             :   /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
     667             :      STATE-NUM.  */
     668             : static const yytype_int8 yypact[] =
     669             : {
     670             :       17,   -25,   -36,    31,    31,    23,    50,    51,    52,    53,
     671             :      -36,    57,    32,   -36,   -36,   -36,   -36,   -36,   -36,   -36,
     672             :      -36,   -36,   -36,   -36,    -4,   -36,    30,    30,    58,    43,
     673             :       41,    48,    35,   -36,   -36,   -36,   -36,   -36,   -36,   -36,
     674             :      -36,   -36,   -36,   -36,   -36,   -36,   -36,   -36,   -36,   -36,
     675             :      -36,   -36,   -36,   -36,   -36,   -36,   -36,   -36,   -30,   -36,
     676             :       37,    62,    49,   -36,    61,   -36,    27,   -36,    -4,   -36,
     677             :       -4,   -36,   -36,   -36,   -36,    63,    54,    40,    68,    16,
     678             :      -36,    44,    70,   -36,    -4,   -36,    13,    40,   -36,    69,
     679             :      -36,   -36,    19,   -36,   -36,   -36,   -36,   -36,   -36,   -36,
     680             :       73,    21,   -36,   -36,   -36,   -36,   -36,    69,   -36
     681             : };
     682             : 
     683             :   /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
     684             :      Performed when YYTABLE does not specify something else to do.  Zero
     685             :      means the default is an error.  */
     686             : static const yytype_int8 yydefact[] =
     687             : {
     688             :        0,    22,    16,     0,     0,    46,     0,     0,     0,     0,
     689             :       40,     0,     4,     5,    12,    14,     6,     9,    10,    11,
     690             :        7,     8,    13,    15,     0,    19,    17,    18,     0,    42,
     691             :       44,    34,     0,    39,     1,     3,     2,    62,    63,    64,
     692             :       65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
     693             :       75,    76,    77,    78,    79,    80,    81,    82,     0,    57,
     694             :       58,     0,    45,    41,     0,    43,     0,    35,     0,    21,
     695             :        0,    60,    59,    61,    20,     0,    48,    28,     0,     0,
     696             :       56,    50,     0,    37,     0,    23,    26,    28,    36,     0,
     697             :       38,    47,     0,    32,    33,    29,    30,    31,    27,    24,
     698             :       55,     0,    51,    25,    54,    53,    49,     0,    52
     699             : };
     700             : 
     701             :   /* YYPGOTO[NTERM-NUM].  */
     702             : static const yytype_int8 yypgoto[] =
     703             : {
     704             :      -36,   -36,   -36,   -36,   -36,   -36,   -36,    74,   -36,   -36,
     705             :      -10,   -36,   -36,   -36,   -36,   -36,   -36,   -36,   -36,   -36,
     706             :      -36,   -36,   -36,   -36,   -36,   -28,   -36,   -35,    10,   -36
     707             : };
     708             : 
     709             :   /* YYDEFGOTO[NTERM-NUM].  */
     710             : static const yytype_int8 yydefgoto[] =
     711             : {
     712             :        0,    11,    36,    12,    13,    14,    15,    26,    16,    17,
     713             :       85,    86,    98,    18,    19,    20,    21,    22,    23,    64,
     714             :       66,    29,    83,    90,   101,   102,   105,    58,    59,    60
     715             : };
     716             : 
     717             :   /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM.  If
     718             :      positive, shift that token.  If negative, reduce the rule whose
     719             :      number is the opposite.  If YYTABLE_NINF, syntax error.  */
     720             : static const yytype_int8 yytable[] =
     721             : {
     722             :       37,    69,    70,    38,    39,    24,    40,    41,    42,    43,
     723             :       44,    45,    46,    47,    48,    49,    50,    51,    52,    53,
     724             :       54,    55,    56,    57,     1,     2,     3,     4,     5,     6,
     725             :        7,     8,     9,    79,    93,    25,    94,    95,    96,    97,
     726             :       71,    72,    73,    28,    10,    77,    78,    88,    70,    92,
     727             :      103,    70,   106,   107,    30,    31,    32,    34,    33,    61,
     728             :       35,    63,    62,    65,    67,    68,    74,    76,    75,    81,
     729             :       84,    82,    87,   100,    89,    91,   104,    99,    27,   108,
     730             :       80
     731             : };
     732             : 
     733             : static const yytype_int8 yycheck[] =
     734             : {
     735             :        4,    31,    32,     7,     8,    30,    10,    11,    12,    13,
     736             :       14,    15,    16,    17,    18,    19,    20,    21,    22,    23,
     737             :       24,    25,    26,    27,     7,     8,     9,    10,    11,    12,
     738             :       13,    14,    15,    68,    21,     4,    23,    24,    25,    26,
     739             :        3,     4,     5,    20,    27,    18,    19,    31,    32,    84,
     740             :       31,    32,    31,    32,     4,     4,     4,     0,     5,    29,
     741             :       28,    18,     4,    22,    16,    30,     4,     6,    19,     6,
     742             :       30,    17,     4,     4,    30,     5,     3,    87,     4,   107,
     743             :       70
     744             : };
     745             : 
     746             :   /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
     747             :      symbol of state STATE-NUM.  */
     748             : static const yytype_int8 yystos[] =
     749             : {
     750             :        0,     7,     8,     9,    10,    11,    12,    13,    14,    15,
     751             :       27,    34,    36,    37,    38,    39,    41,    42,    46,    47,
     752             :       48,    49,    50,    51,    30,     4,    40,    40,    20,    54,
     753             :        4,     4,     4,     5,     0,    28,    35,     4,     7,     8,
     754             :       10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
     755             :       20,    21,    22,    23,    24,    25,    26,    27,    60,    61,
     756             :       62,    29,     4,    18,    52,    22,    53,    16,    30,    31,
     757             :       32,     3,     4,     5,     4,    19,     6,    18,    19,    60,
     758             :       61,     6,    17,    55,    30,    43,    44,     4,    31,    30,
     759             :       56,     5,    60,    21,    23,    24,    25,    26,    45,    43,
     760             :        4,    57,    58,    31,     3,    59,    31,    32,    58
     761             : };
     762             : 
     763             :   /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
     764             : static const yytype_int8 yyr1[] =
     765             : {
     766             :        0,    33,    34,    35,    35,    36,    36,    36,    36,    36,
     767             :       36,    36,    36,    36,    36,    36,    37,    38,    39,    40,
     768             :       40,    41,    41,    42,    42,    43,    43,    44,    44,    45,
     769             :       45,    45,    45,    45,    46,    46,    47,    48,    49,    50,
     770             :       51,    52,    52,    53,    53,    54,    54,    55,    55,    56,
     771             :       56,    57,    57,    58,    59,    59,    60,    60,    61,    61,
     772             :       61,    61,    62,    62,    62,    62,    62,    62,    62,    62,
     773             :       62,    62,    62,    62,    62,    62,    62,    62,    62,    62,
     774             :       62,    62,    62
     775             : };
     776             : 
     777             :   /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.  */
     778             : static const yytype_int8 yyr2[] =
     779             : {
     780             :        0,     2,     2,     1,     0,     1,     1,     1,     1,     1,
     781             :        1,     1,     1,     1,     1,     1,     1,     2,     2,     1,
     782             :        3,     4,     1,     5,     6,     3,     1,     2,     0,     1,
     783             :        1,     1,     1,     1,     2,     3,     5,     5,     6,     2,
     784             :        1,     1,     0,     1,     0,     2,     0,     2,     0,     3,
     785             :        0,     1,     3,     2,     1,     0,     3,     1,     1,     2,
     786             :        2,     2,     1,     1,     1,     1,     1,     1,     1,     1,
     787             :        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     788             :        1,     1,     1
     789             : };
     790             : 
     791             : 
     792             : enum { YYENOMEM = -2 };
     793             : 
     794             : #define yyerrok         (yyerrstatus = 0)
     795             : #define yyclearin       (yychar = YYEMPTY)
     796             : 
     797             : #define YYACCEPT        goto yyacceptlab
     798             : #define YYABORT         goto yyabortlab
     799             : #define YYERROR         goto yyerrorlab
     800             : 
     801             : 
     802             : #define YYRECOVERING()  (!!yyerrstatus)
     803             : 
     804             : #define YYBACKUP(Token, Value)                                    \
     805             :   do                                                              \
     806             :     if (yychar == YYEMPTY)                                        \
     807             :       {                                                           \
     808             :         yychar = (Token);                                         \
     809             :         yylval = (Value);                                         \
     810             :         YYPOPSTACK (yylen);                                       \
     811             :         yystate = *yyssp;                                         \
     812             :         goto yybackup;                                            \
     813             :       }                                                           \
     814             :     else                                                          \
     815             :       {                                                           \
     816             :         yyerror (YY_("syntax error: cannot back up")); \
     817             :         YYERROR;                                                  \
     818             :       }                                                           \
     819             :   while (0)
     820             : 
     821             : /* Backward compatibility with an undocumented macro.
     822             :    Use YYerror or YYUNDEF. */
     823             : #define YYERRCODE YYUNDEF
     824             : 
     825             : 
     826             : /* Enable debugging if requested.  */
     827             : #if YYDEBUG
     828             : 
     829             : # ifndef YYFPRINTF
     830             : #  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
     831             : #  define YYFPRINTF fprintf
     832             : # endif
     833             : 
     834             : # define YYDPRINTF(Args)                        \
     835             : do {                                            \
     836             :   if (yydebug)                                  \
     837             :     YYFPRINTF Args;                             \
     838             : } while (0)
     839             : 
     840             : /* This macro is provided for backward compatibility. */
     841             : # ifndef YY_LOCATION_PRINT
     842             : #  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
     843             : # endif
     844             : 
     845             : 
     846             : # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
     847             : do {                                                                      \
     848             :   if (yydebug)                                                            \
     849             :     {                                                                     \
     850             :       YYFPRINTF (stderr, "%s ", Title);                                   \
     851             :       yy_symbol_print (stderr,                                            \
     852             :                   Kind, Value); \
     853             :       YYFPRINTF (stderr, "\n");                                           \
     854             :     }                                                                     \
     855             : } while (0)
     856             : 
     857             : 
     858             : /*-----------------------------------.
     859             : | Print this symbol's value on YYO.  |
     860             : `-----------------------------------*/
     861             : 
     862             : static void
     863             : yy_symbol_value_print (FILE *yyo,
     864             :                        yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
     865             : {
     866             :   FILE *yyoutput = yyo;
     867             :   YY_USE (yyoutput);
     868             :   if (!yyvaluep)
     869             :     return;
     870             : # ifdef YYPRINT
     871             :   if (yykind < YYNTOKENS)
     872             :     YYPRINT (yyo, yytoknum[yykind], *yyvaluep);
     873             : # endif
     874             :   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
     875             :   YY_USE (yykind);
     876             :   YY_IGNORE_MAYBE_UNINITIALIZED_END
     877             : }
     878             : 
     879             : 
     880             : /*---------------------------.
     881             : | Print this symbol on YYO.  |
     882             : `---------------------------*/
     883             : 
     884             : static void
     885             : yy_symbol_print (FILE *yyo,
     886             :                  yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
     887             : {
     888             :   YYFPRINTF (yyo, "%s %s (",
     889             :              yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
     890             : 
     891             :   yy_symbol_value_print (yyo, yykind, yyvaluep);
     892             :   YYFPRINTF (yyo, ")");
     893             : }
     894             : 
     895             : /*------------------------------------------------------------------.
     896             : | yy_stack_print -- Print the state stack from its BOTTOM up to its |
     897             : | TOP (included).                                                   |
     898             : `------------------------------------------------------------------*/
     899             : 
     900             : static void
     901             : yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
     902             : {
     903             :   YYFPRINTF (stderr, "Stack now");
     904             :   for (; yybottom <= yytop; yybottom++)
     905             :     {
     906             :       int yybot = *yybottom;
     907             :       YYFPRINTF (stderr, " %d", yybot);
     908             :     }
     909             :   YYFPRINTF (stderr, "\n");
     910             : }
     911             : 
     912             : # define YY_STACK_PRINT(Bottom, Top)                            \
     913             : do {                                                            \
     914             :   if (yydebug)                                                  \
     915             :     yy_stack_print ((Bottom), (Top));                           \
     916             : } while (0)
     917             : 
     918             : 
     919             : /*------------------------------------------------.
     920             : | Report that the YYRULE is going to be reduced.  |
     921             : `------------------------------------------------*/
     922             : 
     923             : static void
     924             : yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp,
     925             :                  int yyrule)
     926             : {
     927             :   int yylno = yyrline[yyrule];
     928             :   int yynrhs = yyr2[yyrule];
     929             :   int yyi;
     930             :   YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
     931             :              yyrule - 1, yylno);
     932             :   /* The symbols being reduced.  */
     933             :   for (yyi = 0; yyi < yynrhs; yyi++)
     934             :     {
     935             :       YYFPRINTF (stderr, "   $%d = ", yyi + 1);
     936             :       yy_symbol_print (stderr,
     937             :                        YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
     938             :                        &yyvsp[(yyi + 1) - (yynrhs)]);
     939             :       YYFPRINTF (stderr, "\n");
     940             :     }
     941             : }
     942             : 
     943             : # define YY_REDUCE_PRINT(Rule)          \
     944             : do {                                    \
     945             :   if (yydebug)                          \
     946             :     yy_reduce_print (yyssp, yyvsp, Rule); \
     947             : } while (0)
     948             : 
     949             : /* Nonzero means print parse trace.  It is left uninitialized so that
     950             :    multiple parsers can coexist.  */
     951             : int yydebug;
     952             : #else /* !YYDEBUG */
     953             : # define YYDPRINTF(Args) ((void) 0)
     954             : # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
     955             : # define YY_STACK_PRINT(Bottom, Top)
     956             : # define YY_REDUCE_PRINT(Rule)
     957             : #endif /* !YYDEBUG */
     958             : 
     959             : 
     960             : /* YYINITDEPTH -- initial size of the parser's stacks.  */
     961             : #ifndef YYINITDEPTH
     962             : # define YYINITDEPTH 200
     963             : #endif
     964             : 
     965             : /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
     966             :    if the built-in stack extension method is used).
     967             : 
     968             :    Do not make this value too large; the results are undefined if
     969             :    YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
     970             :    evaluated with infinite-precision integer arithmetic.  */
     971             : 
     972             : #ifndef YYMAXDEPTH
     973             : # define YYMAXDEPTH 10000
     974             : #endif
     975             : 
     976             : 
     977             : 
     978             : 
     979             : 
     980             : 
     981             : /*-----------------------------------------------.
     982             : | Release the memory associated to this symbol.  |
     983             : `-----------------------------------------------*/
     984             : 
     985             : static void
     986       10132 : yydestruct (const char *yymsg,
     987             :             yysymbol_kind_t yykind, YYSTYPE *yyvaluep)
     988             : {
     989             :   YY_USE (yyvaluep);
     990       10132 :   if (!yymsg)
     991           0 :     yymsg = "Deleting";
     992             :   YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
     993             : 
     994             :   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
     995             :   YY_USE (yykind);
     996             :   YY_IGNORE_MAYBE_UNINITIALIZED_END
     997       10132 : }
     998             : 
     999             : 
    1000             : /* Lookahead token kind.  */
    1001             : int yychar;
    1002             : 
    1003             : /* The semantic value of the lookahead symbol.  */
    1004             : YYSTYPE yylval;
    1005             : /* Number of syntax errors so far.  */
    1006             : int yynerrs;
    1007             : 
    1008             : 
    1009             : 
    1010             : 
    1011             : /*----------.
    1012             : | yyparse.  |
    1013             : `----------*/
    1014             : 
    1015             : int
    1016        5066 : yyparse (void)
    1017             : {
    1018        5066 :     yy_state_fast_t yystate = 0;
    1019             :     /* Number of tokens to shift before error messages enabled.  */
    1020        5066 :     int yyerrstatus = 0;
    1021             : 
    1022             :     /* Refer to the stacks through separate pointers, to allow yyoverflow
    1023             :        to reallocate them elsewhere.  */
    1024             : 
    1025             :     /* Their size.  */
    1026        5066 :     YYPTRDIFF_T yystacksize = YYINITDEPTH;
    1027             : 
    1028             :     /* The state stack: array, bottom, top.  */
    1029             :     yy_state_t yyssa[YYINITDEPTH];
    1030        5066 :     yy_state_t *yyss = yyssa;
    1031        5066 :     yy_state_t *yyssp = yyss;
    1032             : 
    1033             :     /* The semantic value stack: array, bottom, top.  */
    1034             :     YYSTYPE yyvsa[YYINITDEPTH];
    1035        5066 :     YYSTYPE *yyvs = yyvsa;
    1036        5066 :     YYSTYPE *yyvsp = yyvs;
    1037             : 
    1038             :   int yyn;
    1039             :   /* The return value of yyparse.  */
    1040             :   int yyresult;
    1041             :   /* Lookahead symbol kind.  */
    1042        5066 :   yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
    1043             :   /* The variables used to return semantic value and location from the
    1044             :      action routines.  */
    1045             :   YYSTYPE yyval;
    1046             : 
    1047             : 
    1048             : 
    1049             : #define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
    1050             : 
    1051             :   /* The number of symbols on the RHS of the reduced rule.
    1052             :      Keep to zero when no symbol should be popped.  */
    1053        5066 :   int yylen = 0;
    1054             : 
    1055             :   YYDPRINTF ((stderr, "Starting parse\n"));
    1056             : 
    1057        5066 :   yychar = YYEMPTY; /* Cause a token to be read.  */
    1058        5066 :   goto yysetstate;
    1059             : 
    1060             : 
    1061             : /*------------------------------------------------------------.
    1062             : | yynewstate -- push a new state, which is found in yystate.  |
    1063             : `------------------------------------------------------------*/
    1064       75392 : yynewstate:
    1065             :   /* In all cases, when you get here, the value and location stacks
    1066             :      have just been pushed.  So pushing a state here evens the stacks.  */
    1067       75392 :   yyssp++;
    1068             : 
    1069             : 
    1070             : /*--------------------------------------------------------------------.
    1071             : | yysetstate -- set current state (the top of the stack) to yystate.  |
    1072             : `--------------------------------------------------------------------*/
    1073       80458 : yysetstate:
    1074             :   YYDPRINTF ((stderr, "Entering state %d\n", yystate));
    1075             :   YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
    1076             :   YY_IGNORE_USELESS_CAST_BEGIN
    1077       80458 :   *yyssp = YY_CAST (yy_state_t, yystate);
    1078             :   YY_IGNORE_USELESS_CAST_END
    1079             :   YY_STACK_PRINT (yyss, yyssp);
    1080             : 
    1081       80458 :   if (yyss + yystacksize - 1 <= yyssp)
    1082             : #if !defined yyoverflow && !defined YYSTACK_RELOCATE
    1083             :     goto yyexhaustedlab;
    1084             : #else
    1085             :     {
    1086             :       /* Get the current used size of the three stacks, in elements.  */
    1087           0 :       YYPTRDIFF_T yysize = yyssp - yyss + 1;
    1088             : 
    1089             : # if defined yyoverflow
    1090             :       {
    1091             :         /* Give user a chance to reallocate the stack.  Use copies of
    1092             :            these so that the &'s don't force the real ones into
    1093             :            memory.  */
    1094             :         yy_state_t *yyss1 = yyss;
    1095             :         YYSTYPE *yyvs1 = yyvs;
    1096             : 
    1097             :         /* Each stack pointer address is followed by the size of the
    1098             :            data in use in that stack, in bytes.  This used to be a
    1099             :            conditional around just the two extra args, but that might
    1100             :            be undefined if yyoverflow is a macro.  */
    1101             :         yyoverflow (YY_("memory exhausted"),
    1102             :                     &yyss1, yysize * YYSIZEOF (*yyssp),
    1103             :                     &yyvs1, yysize * YYSIZEOF (*yyvsp),
    1104             :                     &yystacksize);
    1105             :         yyss = yyss1;
    1106             :         yyvs = yyvs1;
    1107             :       }
    1108             : # else /* defined YYSTACK_RELOCATE */
    1109             :       /* Extend the stack our own way.  */
    1110           0 :       if (YYMAXDEPTH <= yystacksize)
    1111           0 :         goto yyexhaustedlab;
    1112           0 :       yystacksize *= 2;
    1113           0 :       if (YYMAXDEPTH < yystacksize)
    1114           0 :         yystacksize = YYMAXDEPTH;
    1115             : 
    1116             :       {
    1117           0 :         yy_state_t *yyss1 = yyss;
    1118             :         union yyalloc *yyptr =
    1119           0 :           YY_CAST (union yyalloc *,
    1120             :                    YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
    1121           0 :         if (! yyptr)
    1122           0 :           goto yyexhaustedlab;
    1123           0 :         YYSTACK_RELOCATE (yyss_alloc, yyss);
    1124           0 :         YYSTACK_RELOCATE (yyvs_alloc, yyvs);
    1125             : #  undef YYSTACK_RELOCATE
    1126           0 :         if (yyss1 != yyssa)
    1127           0 :           YYSTACK_FREE (yyss1);
    1128             :       }
    1129             : # endif
    1130             : 
    1131           0 :       yyssp = yyss + yysize - 1;
    1132           0 :       yyvsp = yyvs + yysize - 1;
    1133             : 
    1134             :       YY_IGNORE_USELESS_CAST_BEGIN
    1135             :       YYDPRINTF ((stderr, "Stack size increased to %ld\n",
    1136             :                   YY_CAST (long, yystacksize)));
    1137             :       YY_IGNORE_USELESS_CAST_END
    1138             : 
    1139           0 :       if (yyss + yystacksize - 1 <= yyssp)
    1140           0 :         YYABORT;
    1141             :     }
    1142             : #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
    1143             : 
    1144       80458 :   if (yystate == YYFINAL)
    1145        5066 :     YYACCEPT;
    1146             : 
    1147       75392 :   goto yybackup;
    1148             : 
    1149             : 
    1150             : /*-----------.
    1151             : | yybackup.  |
    1152             : `-----------*/
    1153       75392 : yybackup:
    1154             :   /* Do appropriate processing given the current state.  Read a
    1155             :      lookahead token if we need one and don't already have one.  */
    1156             : 
    1157             :   /* First try to decide what to do without reference to lookahead token.  */
    1158       75392 :   yyn = yypact[yystate];
    1159       75392 :   if (yypact_value_is_default (yyn))
    1160       31656 :     goto yydefault;
    1161             : 
    1162             :   /* Not known => get a lookahead token if don't already have one.  */
    1163             : 
    1164             :   /* YYCHAR is either empty, or end-of-input, or a valid lookahead.  */
    1165       43736 :   if (yychar == YYEMPTY)
    1166             :     {
    1167             :       YYDPRINTF ((stderr, "Reading a token\n"));
    1168       35416 :       yychar = yylex ();
    1169             :     }
    1170             : 
    1171       43736 :   if (yychar <= YYEOF)
    1172             :     {
    1173       11142 :       yychar = YYEOF;
    1174       11142 :       yytoken = YYSYMBOL_YYEOF;
    1175             :       YYDPRINTF ((stderr, "Now at end of input.\n"));
    1176             :     }
    1177       32594 :   else if (yychar == YYerror)
    1178             :     {
    1179             :       /* The scanner already issued an error message, process directly
    1180             :          to error recovery.  But do not keep the error token as
    1181             :          lookahead, it is too special and may lead us to an endless
    1182             :          loop in error recovery. */
    1183           0 :       yychar = YYUNDEF;
    1184           0 :       yytoken = YYSYMBOL_YYerror;
    1185           0 :       goto yyerrlab1;
    1186             :     }
    1187             :   else
    1188             :     {
    1189       32594 :       yytoken = YYTRANSLATE (yychar);
    1190             :       YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    1191             :     }
    1192             : 
    1193             :   /* If the proper action on seeing token YYTOKEN is to reduce or to
    1194             :      detect an error, take that action.  */
    1195       43736 :   yyn += yytoken;
    1196       43736 :   if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    1197        8320 :     goto yydefault;
    1198       35416 :   yyn = yytable[yyn];
    1199       35416 :   if (yyn <= 0)
    1200             :     {
    1201             :       if (yytable_value_is_error (yyn))
    1202             :         goto yyerrlab;
    1203           0 :       yyn = -yyn;
    1204           0 :       goto yyreduce;
    1205             :     }
    1206             : 
    1207             :   /* Count tokens shifted since error; after three, turn off error
    1208             :      status.  */
    1209       35416 :   if (yyerrstatus)
    1210           0 :     yyerrstatus--;
    1211             : 
    1212             :   /* Shift the lookahead token.  */
    1213             :   YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
    1214       35416 :   yystate = yyn;
    1215             :   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
    1216       35416 :   *++yyvsp = yylval;
    1217             :   YY_IGNORE_MAYBE_UNINITIALIZED_END
    1218             : 
    1219             :   /* Discard the shifted token.  */
    1220       35416 :   yychar = YYEMPTY;
    1221       35416 :   goto yynewstate;
    1222             : 
    1223             : 
    1224             : /*-----------------------------------------------------------.
    1225             : | yydefault -- do the default action for the current state.  |
    1226             : `-----------------------------------------------------------*/
    1227       39976 : yydefault:
    1228       39976 :   yyn = yydefact[yystate];
    1229       39976 :   if (yyn == 0)
    1230           0 :     goto yyerrlab;
    1231       39976 :   goto yyreduce;
    1232             : 
    1233             : 
    1234             : /*-----------------------------.
    1235             : | yyreduce -- do a reduction.  |
    1236             : `-----------------------------*/
    1237       39976 : yyreduce:
    1238             :   /* yyn is the number of a rule to reduce with.  */
    1239       39976 :   yylen = yyr2[yyn];
    1240             : 
    1241             :   /* If YYLEN is nonzero, implement the default value of the action:
    1242             :      '$$ = $1'.
    1243             : 
    1244             :      Otherwise, the following line sets YYVAL to garbage.
    1245             :      This behavior is undocumented and Bison
    1246             :      users should not rely upon it.  Assigning to YYVAL
    1247             :      unconditionally makes the parser a bit smaller, and it avoids a
    1248             :      GCC warning that YYVAL may be used uninitialized.  */
    1249       39976 :   yyval = yyvsp[1-yylen];
    1250             : 
    1251             : 
    1252             :   YY_REDUCE_PRINT (yyn);
    1253       39976 :   switch (yyn)
    1254             :     {
    1255        5066 :   case 2: /* firstcmd: command opt_semicolon  */
    1256             : #line 106 "repl_gram.y"
    1257             :                                 {
    1258             :                     replication_parse_result = (yyvsp[-1].node);
    1259             :                 }
    1260             : #line 1261 "repl_gram.c"
    1261        5066 :     break;
    1262             : 
    1263        1226 :   case 16: /* identify_system: K_IDENTIFY_SYSTEM  */
    1264             : #line 134 "repl_gram.y"
    1265             :                                 {
    1266             :                     (yyval.node) = (Node *) makeNode(IdentifySystemCmd);
    1267             :                 }
    1268             : #line 1269 "repl_gram.c"
    1269        1226 :     break;
    1270             : 
    1271          12 :   case 17: /* read_replication_slot: K_READ_REPLICATION_SLOT var_name  */
    1272             : #line 144 "repl_gram.y"
    1273             :                                 {
    1274             :                     ReadReplicationSlotCmd *n = makeNode(ReadReplicationSlotCmd);
    1275             :                     n->slotname = (yyvsp[0].str);
    1276             :                     (yyval.node) = (Node *) n;
    1277             :                 }
    1278             : #line 1279 "repl_gram.c"
    1279          12 :     break;
    1280             : 
    1281        1026 :   case 18: /* show: K_SHOW var_name  */
    1282             : #line 156 "repl_gram.y"
    1283             :                                 {
    1284             :                     VariableShowStmt *n = makeNode(VariableShowStmt);
    1285             :                     n->name = (yyvsp[0].str);
    1286             :                     (yyval.node) = (Node *) n;
    1287             :                 }
    1288             : #line 1289 "repl_gram.c"
    1289        1026 :     break;
    1290             : 
    1291        1038 :   case 19: /* var_name: IDENT  */
    1292             : #line 162 "repl_gram.y"
    1293             :                         { (yyval.str) = (yyvsp[0].str); }
    1294             : #line 1295 "repl_gram.c"
    1295        1038 :     break;
    1296             : 
    1297           0 :   case 20: /* var_name: var_name '.' IDENT  */
    1298             : #line 164 "repl_gram.y"
    1299             :                                 { (yyval.str) = psprintf("%s.%s", (yyvsp[-2].str), (yyvsp[0].str)); }
    1300             : #line 1301 "repl_gram.c"
    1301           0 :     break;
    1302             : 
    1303         320 :   case 21: /* base_backup: K_BASE_BACKUP '(' generic_option_list ')'  */
    1304             : #line 172 "repl_gram.y"
    1305             :                                 {
    1306             :                     BaseBackupCmd *cmd = makeNode(BaseBackupCmd);
    1307             :                     cmd->options = (yyvsp[-1].list);
    1308             :                     (yyval.node) = (Node *) cmd;
    1309             :                 }
    1310             : #line 1311 "repl_gram.c"
    1311         320 :     break;
    1312             : 
    1313           2 :   case 22: /* base_backup: K_BASE_BACKUP  */
    1314             : #line 178 "repl_gram.y"
    1315             :                                 {
    1316             :                     BaseBackupCmd *cmd = makeNode(BaseBackupCmd);
    1317             :                     (yyval.node) = (Node *) cmd;
    1318             :                 }
    1319             : #line 1320 "repl_gram.c"
    1320           2 :     break;
    1321             : 
    1322         246 :   case 23: /* create_replication_slot: K_CREATE_REPLICATION_SLOT IDENT opt_temporary K_PHYSICAL create_slot_options  */
    1323             : #line 187 "repl_gram.y"
    1324             :                                 {
    1325             :                     CreateReplicationSlotCmd *cmd;
    1326             :                     cmd = makeNode(CreateReplicationSlotCmd);
    1327             :                     cmd->kind = REPLICATION_KIND_PHYSICAL;
    1328             :                     cmd->slotname = (yyvsp[-3].str);
    1329             :                     cmd->temporary = (yyvsp[-2].boolval);
    1330             :                     cmd->options = (yyvsp[0].list);
    1331             :                     (yyval.node) = (Node *) cmd;
    1332             :                 }
    1333             : #line 1334 "repl_gram.c"
    1334         246 :     break;
    1335             : 
    1336         574 :   case 24: /* create_replication_slot: K_CREATE_REPLICATION_SLOT IDENT opt_temporary K_LOGICAL IDENT create_slot_options  */
    1337             : #line 198 "repl_gram.y"
    1338             :                                 {
    1339             :                     CreateReplicationSlotCmd *cmd;
    1340             :                     cmd = makeNode(CreateReplicationSlotCmd);
    1341             :                     cmd->kind = REPLICATION_KIND_LOGICAL;
    1342             :                     cmd->slotname = (yyvsp[-4].str);
    1343             :                     cmd->temporary = (yyvsp[-3].boolval);
    1344             :                     cmd->plugin = (yyvsp[-1].str);
    1345             :                     cmd->options = (yyvsp[0].list);
    1346             :                     (yyval.node) = (Node *) cmd;
    1347             :                 }
    1348             : #line 1349 "repl_gram.c"
    1349         574 :     break;
    1350             : 
    1351         816 :   case 25: /* create_slot_options: '(' generic_option_list ')'  */
    1352             : #line 211 "repl_gram.y"
    1353             :                                                                         { (yyval.list) = (yyvsp[-1].list); }
    1354             : #line 1355 "repl_gram.c"
    1355         816 :     break;
    1356             : 
    1357           4 :   case 26: /* create_slot_options: create_slot_legacy_opt_list  */
    1358             : #line 212 "repl_gram.y"
    1359             :                                                                 { (yyval.list) = (yyvsp[0].list); }
    1360             : #line 1361 "repl_gram.c"
    1361           4 :     break;
    1362             : 
    1363           2 :   case 27: /* create_slot_legacy_opt_list: create_slot_legacy_opt_list create_slot_legacy_opt  */
    1364             : #line 217 "repl_gram.y"
    1365             :                                 { (yyval.list) = lappend((yyvsp[-1].list), (yyvsp[0].defelt)); }
    1366             : #line 1367 "repl_gram.c"
    1367           2 :     break;
    1368             : 
    1369           4 :   case 28: /* create_slot_legacy_opt_list: %empty  */
    1370             : #line 219 "repl_gram.y"
    1371             :                                 { (yyval.list) = NIL; }
    1372             : #line 1373 "repl_gram.c"
    1373           4 :     break;
    1374             : 
    1375           0 :   case 29: /* create_slot_legacy_opt: K_EXPORT_SNAPSHOT  */
    1376             : #line 224 "repl_gram.y"
    1377             :                                 {
    1378             :                   (yyval.defelt) = makeDefElem("snapshot",
    1379             :                                    (Node *) makeString("export"), -1);
    1380             :                 }
    1381             : #line 1382 "repl_gram.c"
    1382           0 :     break;
    1383             : 
    1384           0 :   case 30: /* create_slot_legacy_opt: K_NOEXPORT_SNAPSHOT  */
    1385             : #line 229 "repl_gram.y"
    1386             :                                 {
    1387             :                   (yyval.defelt) = makeDefElem("snapshot",
    1388             :                                    (Node *) makeString("nothing"), -1);
    1389             :                 }
    1390             : #line 1391 "repl_gram.c"
    1391           0 :     break;
    1392             : 
    1393           0 :   case 31: /* create_slot_legacy_opt: K_USE_SNAPSHOT  */
    1394             : #line 234 "repl_gram.y"
    1395             :                                 {
    1396             :                   (yyval.defelt) = makeDefElem("snapshot",
    1397             :                                    (Node *) makeString("use"), -1);
    1398             :                 }
    1399             : #line 1400 "repl_gram.c"
    1400           0 :     break;
    1401             : 
    1402           2 :   case 32: /* create_slot_legacy_opt: K_RESERVE_WAL  */
    1403             : #line 239 "repl_gram.y"
    1404             :                                 {
    1405             :                   (yyval.defelt) = makeDefElem("reserve_wal",
    1406             :                                    (Node *) makeBoolean(true), -1);
    1407             :                 }
    1408             : #line 1409 "repl_gram.c"
    1409           2 :     break;
    1410             : 
    1411           0 :   case 33: /* create_slot_legacy_opt: K_TWO_PHASE  */
    1412             : #line 244 "repl_gram.y"
    1413             :                                 {
    1414             :                   (yyval.defelt) = makeDefElem("two_phase",
    1415             :                                    (Node *) makeBoolean(true), -1);
    1416             :                 }
    1417             : #line 1418 "repl_gram.c"
    1418           0 :     break;
    1419             : 
    1420           6 :   case 34: /* drop_replication_slot: K_DROP_REPLICATION_SLOT IDENT  */
    1421             : #line 253 "repl_gram.y"
    1422             :                                 {
    1423             :                     DropReplicationSlotCmd *cmd;
    1424             :                     cmd = makeNode(DropReplicationSlotCmd);
    1425             :                     cmd->slotname = (yyvsp[0].str);
    1426             :                     cmd->wait = false;
    1427             :                     (yyval.node) = (Node *) cmd;
    1428             :                 }
    1429             : #line 1430 "repl_gram.c"
    1430           6 :     break;
    1431             : 
    1432         444 :   case 35: /* drop_replication_slot: K_DROP_REPLICATION_SLOT IDENT K_WAIT  */
    1433             : #line 261 "repl_gram.y"
    1434             :                                 {
    1435             :                     DropReplicationSlotCmd *cmd;
    1436             :                     cmd = makeNode(DropReplicationSlotCmd);
    1437             :                     cmd->slotname = (yyvsp[-1].str);
    1438             :                     cmd->wait = true;
    1439             :                     (yyval.node) = (Node *) cmd;
    1440             :                 }
    1441             : #line 1442 "repl_gram.c"
    1442         444 :     break;
    1443             : 
    1444          10 :   case 36: /* alter_replication_slot: K_ALTER_REPLICATION_SLOT IDENT '(' generic_option_list ')'  */
    1445             : #line 273 "repl_gram.y"
    1446             :                                 {
    1447             :                     AlterReplicationSlotCmd *cmd;
    1448             :                     cmd = makeNode(AlterReplicationSlotCmd);
    1449             :                     cmd->slotname = (yyvsp[-3].str);
    1450             :                     cmd->options = (yyvsp[-1].list);
    1451             :                     (yyval.node) = (Node *) cmd;
    1452             :                 }
    1453             : #line 1454 "repl_gram.c"
    1454          10 :     break;
    1455             : 
    1456         482 :   case 37: /* start_replication: K_START_REPLICATION opt_slot opt_physical RECPTR opt_timeline  */
    1457             : #line 287 "repl_gram.y"
    1458             :                                 {
    1459             :                     StartReplicationCmd *cmd;
    1460             : 
    1461             :                     cmd = makeNode(StartReplicationCmd);
    1462             :                     cmd->kind = REPLICATION_KIND_PHYSICAL;
    1463             :                     cmd->slotname = (yyvsp[-3].str);
    1464             :                     cmd->startpoint = (yyvsp[-1].recptr);
    1465             :                     cmd->timeline = (yyvsp[0].uintval);
    1466             :                     (yyval.node) = (Node *) cmd;
    1467             :                 }
    1468             : #line 1469 "repl_gram.c"
    1469         482 :     break;
    1470             : 
    1471         670 :   case 38: /* start_logical_replication: K_START_REPLICATION K_SLOT IDENT K_LOGICAL RECPTR plugin_options  */
    1472             : #line 302 "repl_gram.y"
    1473             :                                 {
    1474             :                     StartReplicationCmd *cmd;
    1475             :                     cmd = makeNode(StartReplicationCmd);
    1476             :                     cmd->kind = REPLICATION_KIND_LOGICAL;
    1477             :                     cmd->slotname = (yyvsp[-3].str);
    1478             :                     cmd->startpoint = (yyvsp[-1].recptr);
    1479             :                     cmd->options = (yyvsp[0].list);
    1480             :                     (yyval.node) = (Node *) cmd;
    1481             :                 }
    1482             : #line 1483 "repl_gram.c"
    1483         670 :     break;
    1484             : 
    1485          28 :   case 39: /* timeline_history: K_TIMELINE_HISTORY UCONST  */
    1486             : #line 317 "repl_gram.y"
    1487             :                                 {
    1488             :                     TimeLineHistoryCmd *cmd;
    1489             : 
    1490             :                     if ((yyvsp[0].uintval) <= 0)
    1491             :                         ereport(ERROR,
    1492             :                                 (errcode(ERRCODE_SYNTAX_ERROR),
    1493             :                                  errmsg("invalid timeline %u", (yyvsp[0].uintval))));
    1494             : 
    1495             :                     cmd = makeNode(TimeLineHistoryCmd);
    1496             :                     cmd->timeline = (yyvsp[0].uintval);
    1497             : 
    1498             :                     (yyval.node) = (Node *) cmd;
    1499             :                 }
    1500             : #line 1501 "repl_gram.c"
    1501          28 :     break;
    1502             : 
    1503          20 :   case 40: /* upload_manifest: K_UPLOAD_MANIFEST  */
    1504             : #line 335 "repl_gram.y"
    1505             :                                 {
    1506             :                     UploadManifestCmd *cmd = makeNode(UploadManifestCmd);
    1507             : 
    1508             :                     (yyval.node) = (Node *) cmd;
    1509             :                 }
    1510             : #line 1511 "repl_gram.c"
    1511          20 :     break;
    1512             : 
    1513         236 :   case 43: /* opt_temporary: K_TEMPORARY  */
    1514             : #line 347 "repl_gram.y"
    1515             :                                                                                 { (yyval.boolval) = true; }
    1516             : #line 1517 "repl_gram.c"
    1517         236 :     break;
    1518             : 
    1519         584 :   case 44: /* opt_temporary: %empty  */
    1520             : #line 348 "repl_gram.y"
    1521             :                                                                         { (yyval.boolval) = false; }
    1522             : #line 1523 "repl_gram.c"
    1523         584 :     break;
    1524             : 
    1525         332 :   case 45: /* opt_slot: K_SLOT IDENT  */
    1526             : #line 353 "repl_gram.y"
    1527             :                                 { (yyval.str) = (yyvsp[0].str); }
    1528             : #line 1529 "repl_gram.c"
    1529         332 :     break;
    1530             : 
    1531         150 :   case 46: /* opt_slot: %empty  */
    1532             : #line 355 "repl_gram.y"
    1533             :                                 { (yyval.str) = NULL; }
    1534             : #line 1535 "repl_gram.c"
    1535         150 :     break;
    1536             : 
    1537         480 :   case 47: /* opt_timeline: K_TIMELINE UCONST  */
    1538             : #line 360 "repl_gram.y"
    1539             :                                 {
    1540             :                     if ((yyvsp[0].uintval) <= 0)
    1541             :                         ereport(ERROR,
    1542             :                                 (errcode(ERRCODE_SYNTAX_ERROR),
    1543             :                                  errmsg("invalid timeline %u", (yyvsp[0].uintval))));
    1544             :                     (yyval.uintval) = (yyvsp[0].uintval);
    1545             :                 }
    1546             : #line 1547 "repl_gram.c"
    1547         480 :     break;
    1548             : 
    1549           2 :   case 48: /* opt_timeline: %empty  */
    1550             : #line 367 "repl_gram.y"
    1551             :                                                                 { (yyval.uintval) = 0; }
    1552             : #line 1553 "repl_gram.c"
    1553           2 :     break;
    1554             : 
    1555         660 :   case 49: /* plugin_options: '(' plugin_opt_list ')'  */
    1556             : #line 372 "repl_gram.y"
    1557             :                                                                 { (yyval.list) = (yyvsp[-1].list); }
    1558             : #line 1559 "repl_gram.c"
    1559         660 :     break;
    1560             : 
    1561          10 :   case 50: /* plugin_options: %empty  */
    1562             : #line 373 "repl_gram.y"
    1563             :                                                                         { (yyval.list) = NIL; }
    1564             : #line 1565 "repl_gram.c"
    1565          10 :     break;
    1566             : 
    1567         660 :   case 51: /* plugin_opt_list: plugin_opt_elem  */
    1568             : #line 378 "repl_gram.y"
    1569             :                                 {
    1570             :                     (yyval.list) = list_make1((yyvsp[0].defelt));
    1571             :                 }
    1572             : #line 1573 "repl_gram.c"
    1573         660 :     break;
    1574             : 
    1575        1392 :   case 52: /* plugin_opt_list: plugin_opt_list ',' plugin_opt_elem  */
    1576             : #line 382 "repl_gram.y"
    1577             :                                 {
    1578             :                     (yyval.list) = lappend((yyvsp[-2].list), (yyvsp[0].defelt));
    1579             :                 }
    1580             : #line 1581 "repl_gram.c"
    1581        1392 :     break;
    1582             : 
    1583        2052 :   case 53: /* plugin_opt_elem: IDENT plugin_opt_arg  */
    1584             : #line 389 "repl_gram.y"
    1585             :                                 {
    1586             :                     (yyval.defelt) = makeDefElem((yyvsp[-1].str), (yyvsp[0].node), -1);
    1587             :                 }
    1588             : #line 1589 "repl_gram.c"
    1589        2052 :     break;
    1590             : 
    1591        2052 :   case 54: /* plugin_opt_arg: SCONST  */
    1592             : #line 395 "repl_gram.y"
    1593             :                                                                                 { (yyval.node) = (Node *) makeString((yyvsp[0].str)); }
    1594             : #line 1595 "repl_gram.c"
    1595        2052 :     break;
    1596             : 
    1597           0 :   case 55: /* plugin_opt_arg: %empty  */
    1598             : #line 396 "repl_gram.y"
    1599             :                                                                         { (yyval.node) = NULL; }
    1600             : #line 1601 "repl_gram.c"
    1601           0 :     break;
    1602             : 
    1603        1772 :   case 56: /* generic_option_list: generic_option_list ',' generic_option  */
    1604             : #line 401 "repl_gram.y"
    1605             :                                 { (yyval.list) = lappend((yyvsp[-2].list), (yyvsp[0].defelt)); }
    1606             : #line 1607 "repl_gram.c"
    1607        1772 :     break;
    1608             : 
    1609        1146 :   case 57: /* generic_option_list: generic_option  */
    1610             : #line 403 "repl_gram.y"
    1611             :                                 { (yyval.list) = list_make1((yyvsp[0].defelt)); }
    1612             : #line 1613 "repl_gram.c"
    1613        1146 :     break;
    1614             : 
    1615         672 :   case 58: /* generic_option: ident_or_keyword  */
    1616             : #line 408 "repl_gram.y"
    1617             :                                 {
    1618             :                     (yyval.defelt) = makeDefElem((yyvsp[0].str), NULL, -1);
    1619             :                 }
    1620             : #line 1621 "repl_gram.c"
    1621         672 :     break;
    1622             : 
    1623           8 :   case 59: /* generic_option: ident_or_keyword IDENT  */
    1624             : #line 412 "repl_gram.y"
    1625             :                                 {
    1626             :                     (yyval.defelt) = makeDefElem((yyvsp[-1].str), (Node *) makeString((yyvsp[0].str)), -1);
    1627             :                 }
    1628             : #line 1629 "repl_gram.c"
    1629           8 :     break;
    1630             : 
    1631        1928 :   case 60: /* generic_option: ident_or_keyword SCONST  */
    1632             : #line 416 "repl_gram.y"
    1633             :                                 {
    1634             :                     (yyval.defelt) = makeDefElem((yyvsp[-1].str), (Node *) makeString((yyvsp[0].str)), -1);
    1635             :                 }
    1636             : #line 1637 "repl_gram.c"
    1637        1928 :     break;
    1638             : 
    1639         310 :   case 61: /* generic_option: ident_or_keyword UCONST  */
    1640             : #line 420 "repl_gram.y"
    1641             :                                 {
    1642             :                     (yyval.defelt) = makeDefElem((yyvsp[-1].str), (Node *) makeInteger((yyvsp[0].uintval)), -1);
    1643             :                 }
    1644             : #line 1645 "repl_gram.c"
    1645         310 :     break;
    1646             : 
    1647        2364 :   case 62: /* ident_or_keyword: IDENT  */
    1648             : #line 426 "repl_gram.y"
    1649             :                                                                                 { (yyval.str) = (yyvsp[0].str); }
    1650             : #line 1651 "repl_gram.c"
    1651        2364 :     break;
    1652             : 
    1653           0 :   case 63: /* ident_or_keyword: K_BASE_BACKUP  */
    1654             : #line 427 "repl_gram.y"
    1655             :                                                                         { (yyval.str) = "base_backup"; }
    1656             : #line 1657 "repl_gram.c"
    1657           0 :     break;
    1658             : 
    1659           0 :   case 64: /* ident_or_keyword: K_IDENTIFY_SYSTEM  */
    1660             : #line 428 "repl_gram.y"
    1661             :                                                                         { (yyval.str) = "identify_system"; }
    1662             : #line 1663 "repl_gram.c"
    1663           0 :     break;
    1664             : 
    1665           0 :   case 65: /* ident_or_keyword: K_SHOW  */
    1666             : #line 429 "repl_gram.y"
    1667             :                                                                                 { (yyval.str) = "show"; }
    1668             : #line 1669 "repl_gram.c"
    1669           0 :     break;
    1670             : 
    1671           0 :   case 66: /* ident_or_keyword: K_START_REPLICATION  */
    1672             : #line 430 "repl_gram.y"
    1673             :                                                                 { (yyval.str) = "start_replication"; }
    1674             : #line 1675 "repl_gram.c"
    1675           0 :     break;
    1676             : 
    1677           0 :   case 67: /* ident_or_keyword: K_CREATE_REPLICATION_SLOT  */
    1678             : #line 431 "repl_gram.y"
    1679             :                                                         { (yyval.str) = "create_replication_slot"; }
    1680             : #line 1681 "repl_gram.c"
    1681           0 :     break;
    1682             : 
    1683           0 :   case 68: /* ident_or_keyword: K_DROP_REPLICATION_SLOT  */
    1684             : #line 432 "repl_gram.y"
    1685             :                                                                 { (yyval.str) = "drop_replication_slot"; }
    1686             : #line 1687 "repl_gram.c"
    1687           0 :     break;
    1688             : 
    1689           0 :   case 69: /* ident_or_keyword: K_ALTER_REPLICATION_SLOT  */
    1690             : #line 433 "repl_gram.y"
    1691             :                                                                 { (yyval.str) = "alter_replication_slot"; }
    1692             : #line 1693 "repl_gram.c"
    1693           0 :     break;
    1694             : 
    1695           0 :   case 70: /* ident_or_keyword: K_TIMELINE_HISTORY  */
    1696             : #line 434 "repl_gram.y"
    1697             :                                                                 { (yyval.str) = "timeline_history"; }
    1698             : #line 1699 "repl_gram.c"
    1699           0 :     break;
    1700             : 
    1701         306 :   case 71: /* ident_or_keyword: K_WAIT  */
    1702             : #line 435 "repl_gram.y"
    1703             :                                                                                 { (yyval.str) = "wait"; }
    1704             : #line 1705 "repl_gram.c"
    1705         306 :     break;
    1706             : 
    1707           0 :   case 72: /* ident_or_keyword: K_TIMELINE  */
    1708             : #line 436 "repl_gram.y"
    1709             :                                                                         { (yyval.str) = "timeline"; }
    1710             : #line 1711 "repl_gram.c"
    1711           0 :     break;
    1712             : 
    1713           0 :   case 73: /* ident_or_keyword: K_PHYSICAL  */
    1714             : #line 437 "repl_gram.y"
    1715             :                                                                         { (yyval.str) = "physical"; }
    1716             : #line 1717 "repl_gram.c"
    1717           0 :     break;
    1718             : 
    1719           0 :   case 74: /* ident_or_keyword: K_LOGICAL  */
    1720             : #line 438 "repl_gram.y"
    1721             :                                                                                 { (yyval.str) = "logical"; }
    1722             : #line 1723 "repl_gram.c"
    1723           0 :     break;
    1724             : 
    1725           0 :   case 75: /* ident_or_keyword: K_SLOT  */
    1726             : #line 439 "repl_gram.y"
    1727             :                                                                                 { (yyval.str) = "slot"; }
    1728             : #line 1729 "repl_gram.c"
    1729           0 :     break;
    1730             : 
    1731         242 :   case 76: /* ident_or_keyword: K_RESERVE_WAL  */
    1732             : #line 440 "repl_gram.y"
    1733             :                                                                         { (yyval.str) = "reserve_wal"; }
    1734             : #line 1735 "repl_gram.c"
    1735         242 :     break;
    1736             : 
    1737           0 :   case 77: /* ident_or_keyword: K_TEMPORARY  */
    1738             : #line 441 "repl_gram.y"
    1739             :                                                                         { (yyval.str) = "temporary"; }
    1740             : #line 1741 "repl_gram.c"
    1741           0 :     break;
    1742             : 
    1743           6 :   case 78: /* ident_or_keyword: K_TWO_PHASE  */
    1744             : #line 442 "repl_gram.y"
    1745             :                                                                         { (yyval.str) = "two_phase"; }
    1746             : #line 1747 "repl_gram.c"
    1747           6 :     break;
    1748             : 
    1749           0 :   case 79: /* ident_or_keyword: K_EXPORT_SNAPSHOT  */
    1750             : #line 443 "repl_gram.y"
    1751             :                                                                         { (yyval.str) = "export_snapshot"; }
    1752             : #line 1753 "repl_gram.c"
    1753           0 :     break;
    1754             : 
    1755           0 :   case 80: /* ident_or_keyword: K_NOEXPORT_SNAPSHOT  */
    1756             : #line 444 "repl_gram.y"
    1757             :                                                                 { (yyval.str) = "noexport_snapshot"; }
    1758             : #line 1759 "repl_gram.c"
    1759           0 :     break;
    1760             : 
    1761           0 :   case 81: /* ident_or_keyword: K_USE_SNAPSHOT  */
    1762             : #line 445 "repl_gram.y"
    1763             :                                                                         { (yyval.str) = "use_snapshot"; }
    1764             : #line 1765 "repl_gram.c"
    1765           0 :     break;
    1766             : 
    1767           0 :   case 82: /* ident_or_keyword: K_UPLOAD_MANIFEST  */
    1768             : #line 446 "repl_gram.y"
    1769             :                                                                         { (yyval.str) = "upload_manifest"; }
    1770             : #line 1771 "repl_gram.c"
    1771           0 :     break;
    1772             : 
    1773             : 
    1774             : #line 1775 "repl_gram.c"
    1775             : 
    1776       10614 :       default: break;
    1777             :     }
    1778             :   /* User semantic actions sometimes alter yychar, and that requires
    1779             :      that yytoken be updated with the new translation.  We take the
    1780             :      approach of translating immediately before every use of yytoken.
    1781             :      One alternative is translating here after every semantic action,
    1782             :      but that translation would be missed if the semantic action invokes
    1783             :      YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
    1784             :      if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
    1785             :      incorrect destructor might then be invoked immediately.  In the
    1786             :      case of YYERROR or YYBACKUP, subsequent parser actions might lead
    1787             :      to an incorrect destructor call or verbose syntax error message
    1788             :      before the lookahead is translated.  */
    1789             :   YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
    1790             : 
    1791       39976 :   YYPOPSTACK (yylen);
    1792       39976 :   yylen = 0;
    1793             : 
    1794       39976 :   *++yyvsp = yyval;
    1795             : 
    1796             :   /* Now 'shift' the result of the reduction.  Determine what state
    1797             :      that goes to, based on the state we popped back to and the rule
    1798             :      number reduced by.  */
    1799             :   {
    1800       39976 :     const int yylhs = yyr1[yyn] - YYNTOKENS;
    1801       39976 :     const int yyi = yypgoto[yylhs] + *yyssp;
    1802       15532 :     yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
    1803        5606 :                ? yytable[yyi]
    1804       55508 :                : yydefgoto[yylhs]);
    1805             :   }
    1806             : 
    1807       39976 :   goto yynewstate;
    1808             : 
    1809             : 
    1810             : /*--------------------------------------.
    1811             : | yyerrlab -- here on detecting error.  |
    1812             : `--------------------------------------*/
    1813           0 : yyerrlab:
    1814             :   /* Make sure we have latest lookahead translation.  See comments at
    1815             :      user semantic actions for why this is necessary.  */
    1816           0 :   yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
    1817             :   /* If not already recovering from an error, report this error.  */
    1818           0 :   if (!yyerrstatus)
    1819             :     {
    1820           0 :       ++yynerrs;
    1821           0 :       yyerror (YY_("syntax error"));
    1822             :     }
    1823             : 
    1824           0 :   if (yyerrstatus == 3)
    1825             :     {
    1826             :       /* If just tried and failed to reuse lookahead token after an
    1827             :          error, discard it.  */
    1828             : 
    1829           0 :       if (yychar <= YYEOF)
    1830             :         {
    1831             :           /* Return failure if at end of input.  */
    1832           0 :           if (yychar == YYEOF)
    1833           0 :             YYABORT;
    1834             :         }
    1835             :       else
    1836             :         {
    1837           0 :           yydestruct ("Error: discarding",
    1838             :                       yytoken, &yylval);
    1839           0 :           yychar = YYEMPTY;
    1840             :         }
    1841             :     }
    1842             : 
    1843             :   /* Else will try to reuse lookahead token after shifting the error
    1844             :      token.  */
    1845           0 :   goto yyerrlab1;
    1846             : 
    1847             : 
    1848             : /*---------------------------------------------------.
    1849             : | yyerrorlab -- error raised explicitly by YYERROR.  |
    1850             : `---------------------------------------------------*/
    1851             : yyerrorlab:
    1852             :   /* Pacify compilers when the user code never invokes YYERROR and the
    1853             :      label yyerrorlab therefore never appears in user code.  */
    1854             :   if (0)
    1855             :     YYERROR;
    1856             : 
    1857             :   /* Do not reclaim the symbols of the rule whose action triggered
    1858             :      this YYERROR.  */
    1859             :   YYPOPSTACK (yylen);
    1860             :   yylen = 0;
    1861             :   YY_STACK_PRINT (yyss, yyssp);
    1862             :   yystate = *yyssp;
    1863             :   goto yyerrlab1;
    1864             : 
    1865             : 
    1866             : /*-------------------------------------------------------------.
    1867             : | yyerrlab1 -- common code for both syntax error and YYERROR.  |
    1868             : `-------------------------------------------------------------*/
    1869           0 : yyerrlab1:
    1870           0 :   yyerrstatus = 3;      /* Each real token shifted decrements this.  */
    1871             : 
    1872             :   /* Pop stack until we find a state that shifts the error token.  */
    1873             :   for (;;)
    1874             :     {
    1875           0 :       yyn = yypact[yystate];
    1876           0 :       if (!yypact_value_is_default (yyn))
    1877             :         {
    1878           0 :           yyn += YYSYMBOL_YYerror;
    1879           0 :           if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
    1880             :             {
    1881           0 :               yyn = yytable[yyn];
    1882           0 :               if (0 < yyn)
    1883           0 :                 break;
    1884             :             }
    1885             :         }
    1886             : 
    1887             :       /* Pop the current state because it cannot handle the error token.  */
    1888           0 :       if (yyssp == yyss)
    1889           0 :         YYABORT;
    1890             : 
    1891             : 
    1892           0 :       yydestruct ("Error: popping",
    1893           0 :                   YY_ACCESSING_SYMBOL (yystate), yyvsp);
    1894           0 :       YYPOPSTACK (1);
    1895           0 :       yystate = *yyssp;
    1896             :       YY_STACK_PRINT (yyss, yyssp);
    1897             :     }
    1898             : 
    1899             :   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
    1900           0 :   *++yyvsp = yylval;
    1901             :   YY_IGNORE_MAYBE_UNINITIALIZED_END
    1902             : 
    1903             : 
    1904             :   /* Shift the error token.  */
    1905             :   YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
    1906             : 
    1907           0 :   yystate = yyn;
    1908           0 :   goto yynewstate;
    1909             : 
    1910             : 
    1911             : /*-------------------------------------.
    1912             : | yyacceptlab -- YYACCEPT comes here.  |
    1913             : `-------------------------------------*/
    1914        5066 : yyacceptlab:
    1915        5066 :   yyresult = 0;
    1916        5066 :   goto yyreturn;
    1917             : 
    1918             : 
    1919             : /*-----------------------------------.
    1920             : | yyabortlab -- YYABORT comes here.  |
    1921             : `-----------------------------------*/
    1922           0 : yyabortlab:
    1923           0 :   yyresult = 1;
    1924           0 :   goto yyreturn;
    1925             : 
    1926             : 
    1927             : #if !defined yyoverflow
    1928             : /*-------------------------------------------------.
    1929             : | yyexhaustedlab -- memory exhaustion comes here.  |
    1930             : `-------------------------------------------------*/
    1931           0 : yyexhaustedlab:
    1932           0 :   yyerror (YY_("memory exhausted"));
    1933             :   yyresult = 2;
    1934             :   goto yyreturn;
    1935             : #endif
    1936             : 
    1937             : 
    1938             : /*-------------------------------------------------------.
    1939             : | yyreturn -- parsing is finished, clean up and return.  |
    1940             : `-------------------------------------------------------*/
    1941        5066 : yyreturn:
    1942        5066 :   if (yychar != YYEMPTY)
    1943             :     {
    1944             :       /* Make sure we have latest lookahead translation.  See comments at
    1945             :          user semantic actions for why this is necessary.  */
    1946           0 :       yytoken = YYTRANSLATE (yychar);
    1947           0 :       yydestruct ("Cleanup: discarding lookahead",
    1948             :                   yytoken, &yylval);
    1949             :     }
    1950             :   /* Do not reclaim the symbols of the rule whose action triggered
    1951             :      this YYABORT or YYACCEPT.  */
    1952        5066 :   YYPOPSTACK (yylen);
    1953             :   YY_STACK_PRINT (yyss, yyssp);
    1954       15198 :   while (yyssp != yyss)
    1955             :     {
    1956       10132 :       yydestruct ("Cleanup: popping",
    1957       10132 :                   YY_ACCESSING_SYMBOL (+*yyssp), yyvsp);
    1958       10132 :       YYPOPSTACK (1);
    1959             :     }
    1960             : #ifndef yyoverflow
    1961        5066 :   if (yyss != yyssa)
    1962           0 :     YYSTACK_FREE (yyss);
    1963             : #endif
    1964             : 
    1965        5066 :   return yyresult;
    1966             : }
    1967             : 
    1968             : #line 449 "repl_gram.y"
    1969             : 

Generated by: LCOV version 1.14