LCOV - code coverage report
Current view: top level - src/backend/bootstrap - bootparse.c (source / functions) Hit Total Coverage
Test: PostgreSQL 15devel Lines: 130 232 56.0 %
Date: 2021-12-05 00:08:40 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         boot_yyparse
      69             : #define yylex           boot_yylex
      70             : #define yyerror         boot_yyerror
      71             : #define yydebug         boot_yydebug
      72             : #define yynerrs         boot_yynerrs
      73             : #define yylval          boot_yylval
      74             : #define yychar          boot_yychar
      75             : 
      76             : /* First part of user prologue.  */
      77             : #line 1 "bootparse.y"
      78             : 
      79             : /*-------------------------------------------------------------------------
      80             :  *
      81             :  * bootparse.y
      82             :  *    yacc grammar for the "bootstrap" mode (BKI file format)
      83             :  *
      84             :  * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group
      85             :  * Portions Copyright (c) 1994, Regents of the University of California
      86             :  *
      87             :  *
      88             :  * IDENTIFICATION
      89             :  *    src/backend/bootstrap/bootparse.y
      90             :  *
      91             :  *-------------------------------------------------------------------------
      92             :  */
      93             : 
      94             : #include "postgres.h"
      95             : 
      96             : #include <unistd.h>
      97             : 
      98             : #include "bootstrap/bootstrap.h"
      99             : #include "catalog/heap.h"
     100             : #include "catalog/namespace.h"
     101             : #include "catalog/pg_am.h"
     102             : #include "catalog/pg_authid.h"
     103             : #include "catalog/pg_class.h"
     104             : #include "catalog/pg_namespace.h"
     105             : #include "catalog/pg_tablespace.h"
     106             : #include "catalog/toasting.h"
     107             : #include "commands/defrem.h"
     108             : #include "miscadmin.h"
     109             : #include "nodes/makefuncs.h"
     110             : #include "utils/memutils.h"
     111             : 
     112             : 
     113             : /*
     114             :  * Bison doesn't allocate anything that needs to live across parser calls,
     115             :  * so we can easily have it use palloc instead of malloc.  This prevents
     116             :  * memory leaks if we error out during parsing.  Note this only works with
     117             :  * bison >= 2.0.  However, in bison 1.875 the default is to use alloca()
     118             :  * if possible, so there's not really much problem anyhow, at least if
     119             :  * you're building with gcc.
     120             :  */
     121             : #define YYMALLOC palloc
     122             : #define YYFREE   pfree
     123             : 
     124             : static MemoryContext per_line_ctx = NULL;
     125             : 
     126             : static void
     127             : do_start(void)
     128             : {
     129             :     Assert(CurrentMemoryContext == CurTransactionContext);
     130             :     /* First time through, create the per-line working context */
     131             :     if (per_line_ctx == NULL)
     132             :         per_line_ctx = AllocSetContextCreate(CurTransactionContext,
     133             :                                              "bootstrap per-line processing",
     134             :                                              ALLOCSET_DEFAULT_SIZES);
     135             :     MemoryContextSwitchTo(per_line_ctx);
     136             : }
     137             : 
     138             : 
     139             : static void
     140             : do_end(void)
     141             : {
     142             :     /* Reclaim memory allocated while processing this line */
     143             :     MemoryContextSwitchTo(CurTransactionContext);
     144             :     MemoryContextReset(per_line_ctx);
     145             :     CHECK_FOR_INTERRUPTS();     /* allow SIGINT to kill bootstrap run */
     146             :     if (isatty(0))
     147             :     {
     148             :         printf("bootstrap> ");
     149             :         fflush(stdout);
     150             :     }
     151             : }
     152             : 
     153             : 
     154             : static int num_columns_read = 0;
     155             : 
     156             : 
     157             : #line 158 "bootparse.c"
     158             : 
     159             : # ifndef YY_CAST
     160             : #  ifdef __cplusplus
     161             : #   define YY_CAST(Type, Val) static_cast<Type> (Val)
     162             : #   define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
     163             : #  else
     164             : #   define YY_CAST(Type, Val) ((Type) (Val))
     165             : #   define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
     166             : #  endif
     167             : # endif
     168             : # ifndef YY_NULLPTR
     169             : #  if defined __cplusplus
     170             : #   if 201103L <= __cplusplus
     171             : #    define YY_NULLPTR nullptr
     172             : #   else
     173             : #    define YY_NULLPTR 0
     174             : #   endif
     175             : #  else
     176             : #   define YY_NULLPTR ((void*)0)
     177             : #  endif
     178             : # endif
     179             : 
     180             : 
     181             : /* Debug traces.  */
     182             : #ifndef YYDEBUG
     183             : # define YYDEBUG 0
     184             : #endif
     185             : #if YYDEBUG
     186             : extern int boot_yydebug;
     187             : #endif
     188             : 
     189             : /* Token kinds.  */
     190             : #ifndef YYTOKENTYPE
     191             : # define YYTOKENTYPE
     192             :   enum yytokentype
     193             :   {
     194             :     YYEMPTY = -2,
     195             :     YYEOF = 0,                     /* "end of file"  */
     196             :     YYerror = 256,                 /* error  */
     197             :     YYUNDEF = 257,                 /* "invalid token"  */
     198             :     ID = 258,                      /* ID  */
     199             :     COMMA = 259,                   /* COMMA  */
     200             :     EQUALS = 260,                  /* EQUALS  */
     201             :     LPAREN = 261,                  /* LPAREN  */
     202             :     RPAREN = 262,                  /* RPAREN  */
     203             :     NULLVAL = 263,                 /* NULLVAL  */
     204             :     OPEN = 264,                    /* OPEN  */
     205             :     XCLOSE = 265,                  /* XCLOSE  */
     206             :     XCREATE = 266,                 /* XCREATE  */
     207             :     INSERT_TUPLE = 267,            /* INSERT_TUPLE  */
     208             :     XDECLARE = 268,                /* XDECLARE  */
     209             :     INDEX = 269,                   /* INDEX  */
     210             :     ON = 270,                      /* ON  */
     211             :     USING = 271,                   /* USING  */
     212             :     XBUILD = 272,                  /* XBUILD  */
     213             :     INDICES = 273,                 /* INDICES  */
     214             :     UNIQUE = 274,                  /* UNIQUE  */
     215             :     XTOAST = 275,                  /* XTOAST  */
     216             :     OBJ_ID = 276,                  /* OBJ_ID  */
     217             :     XBOOTSTRAP = 277,              /* XBOOTSTRAP  */
     218             :     XSHARED_RELATION = 278,        /* XSHARED_RELATION  */
     219             :     XROWTYPE_OID = 279,            /* XROWTYPE_OID  */
     220             :     XFORCE = 280,                  /* XFORCE  */
     221             :     XNOT = 281,                    /* XNOT  */
     222             :     XNULL = 282                    /* XNULL  */
     223             :   };
     224             :   typedef enum yytokentype yytoken_kind_t;
     225             : #endif
     226             : 
     227             : /* Value type.  */
     228             : #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
     229             : union YYSTYPE
     230             : {
     231             : #line 85 "bootparse.y"
     232             : 
     233             :     List        *list;
     234             :     IndexElem   *ielem;
     235             :     char        *str;
     236             :     const char  *kw;
     237             :     int         ival;
     238             :     Oid         oidval;
     239             : 
     240             : #line 241 "bootparse.c"
     241             : 
     242             : };
     243             : typedef union YYSTYPE YYSTYPE;
     244             : # define YYSTYPE_IS_TRIVIAL 1
     245             : # define YYSTYPE_IS_DECLARED 1
     246             : #endif
     247             : 
     248             : 
     249             : extern YYSTYPE boot_yylval;
     250             : 
     251             : int boot_yyparse (void);
     252             : 
     253             : 
     254             : /* Symbol kind.  */
     255             : enum yysymbol_kind_t
     256             : {
     257             :   YYSYMBOL_YYEMPTY = -2,
     258             :   YYSYMBOL_YYEOF = 0,                      /* "end of file"  */
     259             :   YYSYMBOL_YYerror = 1,                    /* error  */
     260             :   YYSYMBOL_YYUNDEF = 2,                    /* "invalid token"  */
     261             :   YYSYMBOL_ID = 3,                         /* ID  */
     262             :   YYSYMBOL_COMMA = 4,                      /* COMMA  */
     263             :   YYSYMBOL_EQUALS = 5,                     /* EQUALS  */
     264             :   YYSYMBOL_LPAREN = 6,                     /* LPAREN  */
     265             :   YYSYMBOL_RPAREN = 7,                     /* RPAREN  */
     266             :   YYSYMBOL_NULLVAL = 8,                    /* NULLVAL  */
     267             :   YYSYMBOL_OPEN = 9,                       /* OPEN  */
     268             :   YYSYMBOL_XCLOSE = 10,                    /* XCLOSE  */
     269             :   YYSYMBOL_XCREATE = 11,                   /* XCREATE  */
     270             :   YYSYMBOL_INSERT_TUPLE = 12,              /* INSERT_TUPLE  */
     271             :   YYSYMBOL_XDECLARE = 13,                  /* XDECLARE  */
     272             :   YYSYMBOL_INDEX = 14,                     /* INDEX  */
     273             :   YYSYMBOL_ON = 15,                        /* ON  */
     274             :   YYSYMBOL_USING = 16,                     /* USING  */
     275             :   YYSYMBOL_XBUILD = 17,                    /* XBUILD  */
     276             :   YYSYMBOL_INDICES = 18,                   /* INDICES  */
     277             :   YYSYMBOL_UNIQUE = 19,                    /* UNIQUE  */
     278             :   YYSYMBOL_XTOAST = 20,                    /* XTOAST  */
     279             :   YYSYMBOL_OBJ_ID = 21,                    /* OBJ_ID  */
     280             :   YYSYMBOL_XBOOTSTRAP = 22,                /* XBOOTSTRAP  */
     281             :   YYSYMBOL_XSHARED_RELATION = 23,          /* XSHARED_RELATION  */
     282             :   YYSYMBOL_XROWTYPE_OID = 24,              /* XROWTYPE_OID  */
     283             :   YYSYMBOL_XFORCE = 25,                    /* XFORCE  */
     284             :   YYSYMBOL_XNOT = 26,                      /* XNOT  */
     285             :   YYSYMBOL_XNULL = 27,                     /* XNULL  */
     286             :   YYSYMBOL_YYACCEPT = 28,                  /* $accept  */
     287             :   YYSYMBOL_TopLevel = 29,                  /* TopLevel  */
     288             :   YYSYMBOL_Boot_Queries = 30,              /* Boot_Queries  */
     289             :   YYSYMBOL_Boot_Query = 31,                /* Boot_Query  */
     290             :   YYSYMBOL_Boot_OpenStmt = 32,             /* Boot_OpenStmt  */
     291             :   YYSYMBOL_Boot_CloseStmt = 33,            /* Boot_CloseStmt  */
     292             :   YYSYMBOL_Boot_CreateStmt = 34,           /* Boot_CreateStmt  */
     293             :   YYSYMBOL_35_1 = 35,                      /* $@1  */
     294             :   YYSYMBOL_36_2 = 36,                      /* $@2  */
     295             :   YYSYMBOL_Boot_InsertStmt = 37,           /* Boot_InsertStmt  */
     296             :   YYSYMBOL_38_3 = 38,                      /* $@3  */
     297             :   YYSYMBOL_Boot_DeclareIndexStmt = 39,     /* Boot_DeclareIndexStmt  */
     298             :   YYSYMBOL_Boot_DeclareUniqueIndexStmt = 40, /* Boot_DeclareUniqueIndexStmt  */
     299             :   YYSYMBOL_Boot_DeclareToastStmt = 41,     /* Boot_DeclareToastStmt  */
     300             :   YYSYMBOL_Boot_BuildIndsStmt = 42,        /* Boot_BuildIndsStmt  */
     301             :   YYSYMBOL_boot_index_params = 43,         /* boot_index_params  */
     302             :   YYSYMBOL_boot_index_param = 44,          /* boot_index_param  */
     303             :   YYSYMBOL_optbootstrap = 45,              /* optbootstrap  */
     304             :   YYSYMBOL_optsharedrelation = 46,         /* optsharedrelation  */
     305             :   YYSYMBOL_optrowtypeoid = 47,             /* optrowtypeoid  */
     306             :   YYSYMBOL_boot_column_list = 48,          /* boot_column_list  */
     307             :   YYSYMBOL_boot_column_def = 49,           /* boot_column_def  */
     308             :   YYSYMBOL_boot_column_nullness = 50,      /* boot_column_nullness  */
     309             :   YYSYMBOL_oidspec = 51,                   /* oidspec  */
     310             :   YYSYMBOL_boot_column_val_list = 52,      /* boot_column_val_list  */
     311             :   YYSYMBOL_boot_column_val = 53,           /* boot_column_val  */
     312             :   YYSYMBOL_boot_ident = 54                 /* boot_ident  */
     313             : };
     314             : typedef enum yysymbol_kind_t yysymbol_kind_t;
     315             : 
     316             : 
     317             : 
     318             : 
     319             : #ifdef short
     320             : # undef short
     321             : #endif
     322             : 
     323             : /* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
     324             :    <limits.h> and (if available) <stdint.h> are included
     325             :    so that the code can choose integer types of a good width.  */
     326             : 
     327             : #ifndef __PTRDIFF_MAX__
     328             : # include <limits.h> /* INFRINGES ON USER NAME SPACE */
     329             : # if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
     330             : #  include <stdint.h> /* INFRINGES ON USER NAME SPACE */
     331             : #  define YY_STDINT_H
     332             : # endif
     333             : #endif
     334             : 
     335             : /* Narrow types that promote to a signed type and that can represent a
     336             :    signed or unsigned integer of at least N bits.  In tables they can
     337             :    save space and decrease cache pressure.  Promoting to a signed type
     338             :    helps avoid bugs in integer arithmetic.  */
     339             : 
     340             : #ifdef __INT_LEAST8_MAX__
     341             : typedef __INT_LEAST8_TYPE__ yytype_int8;
     342             : #elif defined YY_STDINT_H
     343             : typedef int_least8_t yytype_int8;
     344             : #else
     345             : typedef signed char yytype_int8;
     346             : #endif
     347             : 
     348             : #ifdef __INT_LEAST16_MAX__
     349             : typedef __INT_LEAST16_TYPE__ yytype_int16;
     350             : #elif defined YY_STDINT_H
     351             : typedef int_least16_t yytype_int16;
     352             : #else
     353             : typedef short yytype_int16;
     354             : #endif
     355             : 
     356             : /* Work around bug in HP-UX 11.23, which defines these macros
     357             :    incorrectly for preprocessor constants.  This workaround can likely
     358             :    be removed in 2023, as HPE has promised support for HP-UX 11.23
     359             :    (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
     360             :    <https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>.  */
     361             : #ifdef __hpux
     362             : # undef UINT_LEAST8_MAX
     363             : # undef UINT_LEAST16_MAX
     364             : # define UINT_LEAST8_MAX 255
     365             : # define UINT_LEAST16_MAX 65535
     366             : #endif
     367             : 
     368             : #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
     369             : typedef __UINT_LEAST8_TYPE__ yytype_uint8;
     370             : #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
     371             :        && UINT_LEAST8_MAX <= INT_MAX)
     372             : typedef uint_least8_t yytype_uint8;
     373             : #elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
     374             : typedef unsigned char yytype_uint8;
     375             : #else
     376             : typedef short yytype_uint8;
     377             : #endif
     378             : 
     379             : #if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
     380             : typedef __UINT_LEAST16_TYPE__ yytype_uint16;
     381             : #elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
     382             :        && UINT_LEAST16_MAX <= INT_MAX)
     383             : typedef uint_least16_t yytype_uint16;
     384             : #elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
     385             : typedef unsigned short yytype_uint16;
     386             : #else
     387             : typedef int yytype_uint16;
     388             : #endif
     389             : 
     390             : #ifndef YYPTRDIFF_T
     391             : # if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
     392             : #  define YYPTRDIFF_T __PTRDIFF_TYPE__
     393             : #  define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
     394             : # elif defined PTRDIFF_MAX
     395             : #  ifndef ptrdiff_t
     396             : #   include <stddef.h> /* INFRINGES ON USER NAME SPACE */
     397             : #  endif
     398             : #  define YYPTRDIFF_T ptrdiff_t
     399             : #  define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
     400             : # else
     401             : #  define YYPTRDIFF_T long
     402             : #  define YYPTRDIFF_MAXIMUM LONG_MAX
     403             : # endif
     404             : #endif
     405             : 
     406             : #ifndef YYSIZE_T
     407             : # ifdef __SIZE_TYPE__
     408             : #  define YYSIZE_T __SIZE_TYPE__
     409             : # elif defined size_t
     410             : #  define YYSIZE_T size_t
     411             : # elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
     412             : #  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
     413             : #  define YYSIZE_T size_t
     414             : # else
     415             : #  define YYSIZE_T unsigned
     416             : # endif
     417             : #endif
     418             : 
     419             : #define YYSIZE_MAXIMUM                                  \
     420             :   YY_CAST (YYPTRDIFF_T,                                 \
     421             :            (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1)  \
     422             :             ? YYPTRDIFF_MAXIMUM                         \
     423             :             : YY_CAST (YYSIZE_T, -1)))
     424             : 
     425             : #define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
     426             : 
     427             : 
     428             : /* Stored state numbers (used for stacks). */
     429             : typedef yytype_int8 yy_state_t;
     430             : 
     431             : /* State numbers in computations.  */
     432             : typedef int yy_state_fast_t;
     433             : 
     434             : #ifndef YY_
     435             : # if defined YYENABLE_NLS && YYENABLE_NLS
     436             : #  if ENABLE_NLS
     437             : #   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
     438             : #   define YY_(Msgid) dgettext ("bison-runtime", Msgid)
     439             : #  endif
     440             : # endif
     441             : # ifndef YY_
     442             : #  define YY_(Msgid) Msgid
     443             : # endif
     444             : #endif
     445             : 
     446             : 
     447             : #ifndef YY_ATTRIBUTE_PURE
     448             : # if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
     449             : #  define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
     450             : # else
     451             : #  define YY_ATTRIBUTE_PURE
     452             : # endif
     453             : #endif
     454             : 
     455             : #ifndef YY_ATTRIBUTE_UNUSED
     456             : # if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
     457             : #  define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
     458             : # else
     459             : #  define YY_ATTRIBUTE_UNUSED
     460             : # endif
     461             : #endif
     462             : 
     463             : /* Suppress unused-variable warnings by "using" E.  */
     464             : #if ! defined lint || defined __GNUC__
     465             : # define YY_USE(E) ((void) (E))
     466             : #else
     467             : # define YY_USE(E) /* empty */
     468             : #endif
     469             : 
     470             : #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
     471             : /* Suppress an incorrect diagnostic about yylval being uninitialized.  */
     472             : # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                            \
     473             :     _Pragma ("GCC diagnostic push")                                     \
     474             :     _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")              \
     475             :     _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
     476             : # define YY_IGNORE_MAYBE_UNINITIALIZED_END      \
     477             :     _Pragma ("GCC diagnostic pop")
     478             : #else
     479             : # define YY_INITIAL_VALUE(Value) Value
     480             : #endif
     481             : #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
     482             : # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
     483             : # define YY_IGNORE_MAYBE_UNINITIALIZED_END
     484             : #endif
     485             : #ifndef YY_INITIAL_VALUE
     486             : # define YY_INITIAL_VALUE(Value) /* Nothing. */
     487             : #endif
     488             : 
     489             : #if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
     490             : # define YY_IGNORE_USELESS_CAST_BEGIN                          \
     491             :     _Pragma ("GCC diagnostic push")                            \
     492             :     _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
     493             : # define YY_IGNORE_USELESS_CAST_END            \
     494             :     _Pragma ("GCC diagnostic pop")
     495             : #endif
     496             : #ifndef YY_IGNORE_USELESS_CAST_BEGIN
     497             : # define YY_IGNORE_USELESS_CAST_BEGIN
     498             : # define YY_IGNORE_USELESS_CAST_END
     499             : #endif
     500             : 
     501             : 
     502             : #define YY_ASSERT(E) ((void) (0 && (E)))
     503             : 
     504             : #if !defined yyoverflow
     505             : 
     506             : /* The parser invokes alloca or malloc; define the necessary symbols.  */
     507             : 
     508             : # ifdef YYSTACK_USE_ALLOCA
     509             : #  if YYSTACK_USE_ALLOCA
     510             : #   ifdef __GNUC__
     511             : #    define YYSTACK_ALLOC __builtin_alloca
     512             : #   elif defined __BUILTIN_VA_ARG_INCR
     513             : #    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
     514             : #   elif defined _AIX
     515             : #    define YYSTACK_ALLOC __alloca
     516             : #   elif defined _MSC_VER
     517             : #    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
     518             : #    define alloca _alloca
     519             : #   else
     520             : #    define YYSTACK_ALLOC alloca
     521             : #    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
     522             : #     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
     523             :       /* Use EXIT_SUCCESS as a witness for stdlib.h.  */
     524             : #     ifndef EXIT_SUCCESS
     525             : #      define EXIT_SUCCESS 0
     526             : #     endif
     527             : #    endif
     528             : #   endif
     529             : #  endif
     530             : # endif
     531             : 
     532             : # ifdef YYSTACK_ALLOC
     533             :    /* Pacify GCC's 'empty if-body' warning.  */
     534             : #  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
     535             : #  ifndef YYSTACK_ALLOC_MAXIMUM
     536             :     /* The OS might guarantee only one guard page at the bottom of the stack,
     537             :        and a page size can be as small as 4096 bytes.  So we cannot safely
     538             :        invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
     539             :        to allow for a few compiler-allocated temporary stack slots.  */
     540             : #   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
     541             : #  endif
     542             : # else
     543             : #  define YYSTACK_ALLOC YYMALLOC
     544             : #  define YYSTACK_FREE YYFREE
     545             : #  ifndef YYSTACK_ALLOC_MAXIMUM
     546             : #   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
     547             : #  endif
     548             : #  if (defined __cplusplus && ! defined EXIT_SUCCESS \
     549             :        && ! ((defined YYMALLOC || defined malloc) \
     550             :              && (defined YYFREE || defined free)))
     551             : #   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
     552             : #   ifndef EXIT_SUCCESS
     553             : #    define EXIT_SUCCESS 0
     554             : #   endif
     555             : #  endif
     556             : #  ifndef YYMALLOC
     557             : #   define YYMALLOC malloc
     558             : #   if ! defined malloc && ! defined EXIT_SUCCESS
     559             : void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
     560             : #   endif
     561             : #  endif
     562             : #  ifndef YYFREE
     563             : #   define YYFREE free
     564             : #   if ! defined free && ! defined EXIT_SUCCESS
     565             : void free (void *); /* INFRINGES ON USER NAME SPACE */
     566             : #   endif
     567             : #  endif
     568             : # endif
     569             : #endif /* !defined yyoverflow */
     570             : 
     571             : #if (! defined yyoverflow \
     572             :      && (! defined __cplusplus \
     573             :          || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
     574             : 
     575             : /* A type that is properly aligned for any stack member.  */
     576             : union yyalloc
     577             : {
     578             :   yy_state_t yyss_alloc;
     579             :   YYSTYPE yyvs_alloc;
     580             : };
     581             : 
     582             : /* The size of the maximum gap between one aligned stack and the next.  */
     583             : # define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
     584             : 
     585             : /* The size of an array large to enough to hold all stacks, each with
     586             :    N elements.  */
     587             : # define YYSTACK_BYTES(N) \
     588             :      ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
     589             :       + YYSTACK_GAP_MAXIMUM)
     590             : 
     591             : # define YYCOPY_NEEDED 1
     592             : 
     593             : /* Relocate STACK from its old location to the new one.  The
     594             :    local variables YYSIZE and YYSTACKSIZE give the old and new number of
     595             :    elements in the stack, and YYPTR gives the new location of the
     596             :    stack.  Advance YYPTR to a properly aligned location for the next
     597             :    stack.  */
     598             : # define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
     599             :     do                                                                  \
     600             :       {                                                                 \
     601             :         YYPTRDIFF_T yynewbytes;                                         \
     602             :         YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
     603             :         Stack = &yyptr->Stack_alloc;                                    \
     604             :         yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
     605             :         yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
     606             :       }                                                                 \
     607             :     while (0)
     608             : 
     609             : #endif
     610             : 
     611             : #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
     612             : /* Copy COUNT objects from SRC to DST.  The source and destination do
     613             :    not overlap.  */
     614             : # ifndef YYCOPY
     615             : #  if defined __GNUC__ && 1 < __GNUC__
     616             : #   define YYCOPY(Dst, Src, Count) \
     617             :       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
     618             : #  else
     619             : #   define YYCOPY(Dst, Src, Count)              \
     620             :       do                                        \
     621             :         {                                       \
     622             :           YYPTRDIFF_T yyi;                      \
     623             :           for (yyi = 0; yyi < (Count); yyi++)   \
     624             :             (Dst)[yyi] = (Src)[yyi];            \
     625             :         }                                       \
     626             :       while (0)
     627             : #  endif
     628             : # endif
     629             : #endif /* !YYCOPY_NEEDED */
     630             : 
     631             : /* YYFINAL -- State number of the termination state.  */
     632             : #define YYFINAL  46
     633             : /* YYLAST -- Last index in YYTABLE.  */
     634             : #define YYLAST   169
     635             : 
     636             : /* YYNTOKENS -- Number of terminals.  */
     637             : #define YYNTOKENS  28
     638             : /* YYNNTS -- Number of nonterminals.  */
     639             : #define YYNNTS  27
     640             : /* YYNRULES -- Number of rules.  */
     641             : #define YYNRULES  65
     642             : /* YYNSTATES -- Number of states.  */
     643             : #define YYNSTATES  110
     644             : 
     645             : /* YYMAXUTOK -- Last valid token kind.  */
     646             : #define YYMAXUTOK   282
     647             : 
     648             : 
     649             : /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
     650             :    as returned by yylex, with out-of-bounds checking.  */
     651             : #define YYTRANSLATE(YYX)                                \
     652             :   (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
     653             :    ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
     654             :    : YYSYMBOL_YYUNDEF)
     655             : 
     656             : /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
     657             :    as returned by yylex.  */
     658             : static const yytype_int8 yytranslate[] =
     659             : {
     660             :        0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     661             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     662             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     663             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     664             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     665             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     666             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     667             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     668             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     669             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     670             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     671             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     672             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     673             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     674             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     675             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     676             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     677             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     678             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     679             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     680             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     681             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     682             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     683             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     684             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     685             :        2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
     686             :        5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
     687             :       15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
     688             :       25,    26,    27
     689             : };
     690             : 
     691             : #if YYDEBUG
     692             :   /* YYRLINE[YYN] -- Source line where rule number YYN was defined.  */
     693             : static const yytype_int16 yyrline[] =
     694             : {
     695             :        0,   115,   115,   116,   120,   121,   125,   126,   127,   128,
     696             :      129,   130,   131,   132,   136,   145,   155,   165,   154,   251,
     697             :      250,   269,   321,   373,   385,   395,   396,   400,   415,   416,
     698             :      420,   421,   425,   426,   430,   431,   435,   444,   445,   446,
     699             :      450,   454,   455,   456,   460,   462,   467,   468,   469,   470,
     700             :      471,   472,   473,   474,   475,   476,   477,   478,   479,   480,
     701             :      481,   482,   483,   484,   485,   486
     702             : };
     703             : #endif
     704             : 
     705             : /** Accessing symbol of state STATE.  */
     706             : #define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])
     707             : 
     708             : #if YYDEBUG || 0
     709             : /* The user-facing name of the symbol whose (internal) number is
     710             :    YYSYMBOL.  No bounds checking.  */
     711             : static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;
     712             : 
     713             : /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
     714             :    First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
     715             : static const char *const yytname[] =
     716             : {
     717             :   "\"end of file\"", "error", "\"invalid token\"", "ID", "COMMA",
     718             :   "EQUALS", "LPAREN", "RPAREN", "NULLVAL", "OPEN", "XCLOSE", "XCREATE",
     719             :   "INSERT_TUPLE", "XDECLARE", "INDEX", "ON", "USING", "XBUILD", "INDICES",
     720             :   "UNIQUE", "XTOAST", "OBJ_ID", "XBOOTSTRAP", "XSHARED_RELATION",
     721             :   "XROWTYPE_OID", "XFORCE", "XNOT", "XNULL", "$accept", "TopLevel",
     722             :   "Boot_Queries", "Boot_Query", "Boot_OpenStmt", "Boot_CloseStmt",
     723             :   "Boot_CreateStmt", "$@1", "$@2", "Boot_InsertStmt", "$@3",
     724             :   "Boot_DeclareIndexStmt", "Boot_DeclareUniqueIndexStmt",
     725             :   "Boot_DeclareToastStmt", "Boot_BuildIndsStmt", "boot_index_params",
     726             :   "boot_index_param", "optbootstrap", "optsharedrelation", "optrowtypeoid",
     727             :   "boot_column_list", "boot_column_def", "boot_column_nullness", "oidspec",
     728             :   "boot_column_val_list", "boot_column_val", "boot_ident", YY_NULLPTR
     729             : };
     730             : 
     731             : static const char *
     732             : yysymbol_name (yysymbol_kind_t yysymbol)
     733             : {
     734             :   return yytname[yysymbol];
     735             : }
     736             : #endif
     737             : 
     738             : #ifdef YYPRINT
     739             : /* YYTOKNUM[NUM] -- (External) token number corresponding to the
     740             :    (internal) symbol number NUM (which must be that of a token).  */
     741             : static const yytype_int16 yytoknum[] =
     742             : {
     743             :        0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     744             :      265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     745             :      275,   276,   277,   278,   279,   280,   281,   282
     746             : };
     747             : #endif
     748             : 
     749             : #define YYPACT_NINF (-53)
     750             : 
     751             : #define yypact_value_is_default(Yyn) \
     752             :   ((Yyn) == YYPACT_NINF)
     753             : 
     754             : #define YYTABLE_NINF (-1)
     755             : 
     756             : #define yytable_value_is_error(Yyn) \
     757             :   0
     758             : 
     759             :   /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
     760             :      STATE-NUM.  */
     761             : static const yytype_int16 yypact[] =
     762             : {
     763             :       -4,   142,   142,   142,   -53,     2,   -14,    25,    -4,   -53,
     764             :      -53,   -53,   -53,   -53,   -53,   -53,   -53,   -53,   -53,   -53,
     765             :      -53,   -53,   -53,   -53,   -53,   -53,   -53,   -53,   -53,   -53,
     766             :      -53,   -53,   -53,   -53,   -53,   -53,   -53,   -53,   -53,   -53,
     767             :      142,    20,   142,    13,   142,   -53,   -53,   -53,     6,   -53,
     768             :      117,   142,   142,   142,   -53,     8,   -53,    92,   -53,   -53,
     769             :       14,   142,    17,   -53,     9,   117,   -53,   -53,   142,    19,
     770             :      142,   142,    29,   -53,    21,   142,   -53,   -53,   -53,   142,
     771             :       22,   142,    30,   142,    35,   -53,    37,   142,    34,   142,
     772             :       36,   142,    10,   -53,   142,   142,   -53,   -53,    23,   142,
     773             :      -53,   -53,    11,    -3,   -53,   -53,   -53,    18,   -53,   -53
     774             : };
     775             : 
     776             :   /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
     777             :      Performed when YYTABLE does not specify something else to do.  Zero
     778             :      means the default is an error.  */
     779             : static const yytype_int8 yydefact[] =
     780             : {
     781             :        3,     0,     0,     0,    19,     0,     0,     0,     2,     4,
     782             :        6,     7,     8,     9,    10,    11,    12,    13,    46,    47,
     783             :       48,    49,    50,    51,    52,    53,    54,    55,    56,    57,
     784             :       58,    59,    60,    61,    62,    63,    64,    65,    14,    15,
     785             :        0,     0,     0,     0,     0,    24,     1,     5,    29,    40,
     786             :        0,     0,     0,     0,    28,    31,    45,     0,    41,    44,
     787             :        0,     0,     0,    30,    33,     0,    20,    42,     0,     0,
     788             :        0,     0,     0,    43,     0,     0,    23,    32,    16,     0,
     789             :        0,     0,     0,     0,    17,    34,     0,     0,     0,     0,
     790             :        0,     0,     0,    26,     0,     0,    35,    18,    39,     0,
     791             :       21,    27,     0,     0,    36,    25,    22,     0,    38,    37
     792             : };
     793             : 
     794             :   /* YYPGOTO[NTERM-NUM].  */
     795             : static const yytype_int8 yypgoto[] =
     796             : {
     797             :      -53,   -53,   -53,    38,   -53,   -53,   -53,   -53,   -53,   -53,
     798             :      -53,   -53,   -53,   -53,   -53,   -51,   -52,   -53,   -53,   -53,
     799             :      -53,   -39,   -53,   -41,   -53,   -46,    -1
     800             : };
     801             : 
     802             :   /* YYDEFGOTO[NTERM-NUM].  */
     803             : static const yytype_int8 yydefgoto[] =
     804             : {
     805             :        0,     7,     8,     9,    10,    11,    12,    81,    90,    13,
     806             :       41,    14,    15,    16,    17,    92,    93,    55,    64,    72,
     807             :       84,    85,   104,    48,    57,    58,    49
     808             : };
     809             : 
     810             :   /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM.  If
     811             :      positive, shift that token.  If negative, reduce the rule whose
     812             :      number is the opposite.  If YYTABLE_NINF, syntax error.  */
     813             : static const yytype_int8 yytable[] =
     814             : {
     815             :       38,    39,    40,    53,    45,     1,     2,     3,     4,     5,
     816             :       60,    67,    62,     6,    99,    99,    42,   100,   106,    73,
     817             :       69,    43,    44,   107,   108,    46,    50,    52,    54,    68,
     818             :       77,    63,    70,    71,    75,    78,    87,    79,    83,    89,
     819             :       95,    51,    91,    97,   102,   109,    47,   105,   103,    59,
     820             :       96,    61,     0,     0,     0,     0,    59,     0,     0,     0,
     821             :        0,     0,     0,     0,    59,     0,     0,    74,     0,    76,
     822             :        0,     0,     0,     0,    80,     0,     0,     0,    82,     0,
     823             :       86,     0,    88,     0,     0,     0,    94,     0,    86,     0,
     824             :       98,     0,     0,   101,    94,    18,    65,     0,    94,    66,
     825             :       56,    19,    20,    21,    22,    23,    24,    25,    26,    27,
     826             :       28,    29,    30,    31,    32,    33,    34,    35,    36,    37,
     827             :       18,     0,     0,     0,     0,    56,    19,    20,    21,    22,
     828             :       23,    24,    25,    26,    27,    28,    29,    30,    31,    32,
     829             :       33,    34,    35,    36,    37,    18,     0,     0,     0,     0,
     830             :        0,    19,    20,    21,    22,    23,    24,    25,    26,    27,
     831             :       28,    29,    30,    31,    32,    33,    34,    35,    36,    37
     832             : };
     833             : 
     834             : static const yytype_int8 yycheck[] =
     835             : {
     836             :        1,     2,     3,    44,    18,     9,    10,    11,    12,    13,
     837             :       51,    57,    53,    17,     4,     4,    14,     7,     7,    65,
     838             :       61,    19,    20,    26,    27,     0,     6,    14,    22,    15,
     839             :       71,    23,    15,    24,    15,     6,     6,    16,    16,     4,
     840             :        6,    42,     5,     7,    95,    27,     8,    99,    25,    50,
     841             :       89,    52,    -1,    -1,    -1,    -1,    57,    -1,    -1,    -1,
     842             :       -1,    -1,    -1,    -1,    65,    -1,    -1,    68,    -1,    70,
     843             :       -1,    -1,    -1,    -1,    75,    -1,    -1,    -1,    79,    -1,
     844             :       81,    -1,    83,    -1,    -1,    -1,    87,    -1,    89,    -1,
     845             :       91,    -1,    -1,    94,    95,     3,     4,    -1,    99,     7,
     846             :        8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
     847             :       18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
     848             :        3,    -1,    -1,    -1,    -1,     8,     9,    10,    11,    12,
     849             :       13,    14,    15,    16,    17,    18,    19,    20,    21,    22,
     850             :       23,    24,    25,    26,    27,     3,    -1,    -1,    -1,    -1,
     851             :       -1,     9,    10,    11,    12,    13,    14,    15,    16,    17,
     852             :       18,    19,    20,    21,    22,    23,    24,    25,    26,    27
     853             : };
     854             : 
     855             :   /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
     856             :      symbol of state STATE-NUM.  */
     857             : static const yytype_int8 yystos[] =
     858             : {
     859             :        0,     9,    10,    11,    12,    13,    17,    29,    30,    31,
     860             :       32,    33,    34,    37,    39,    40,    41,    42,     3,     9,
     861             :       10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
     862             :       20,    21,    22,    23,    24,    25,    26,    27,    54,    54,
     863             :       54,    38,    14,    19,    20,    18,     0,    31,    51,    54,
     864             :        6,    54,    14,    51,    22,    45,     8,    52,    53,    54,
     865             :       51,    54,    51,    23,    46,     4,     7,    53,    15,    51,
     866             :       15,    24,    47,    53,    54,    15,    54,    51,     6,    16,
     867             :       54,    35,    54,    16,    48,    49,    54,     6,    54,     4,
     868             :       36,     5,    43,    44,    54,     6,    49,     7,    54,     4,
     869             :        7,    54,    43,    25,    50,    44,     7,    26,    27,    27
     870             : };
     871             : 
     872             :   /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
     873             : static const yytype_int8 yyr1[] =
     874             : {
     875             :        0,    28,    29,    29,    30,    30,    31,    31,    31,    31,
     876             :       31,    31,    31,    31,    32,    33,    35,    36,    34,    38,
     877             :       37,    39,    40,    41,    42,    43,    43,    44,    45,    45,
     878             :       46,    46,    47,    47,    48,    48,    49,    50,    50,    50,
     879             :       51,    52,    52,    52,    53,    53,    54,    54,    54,    54,
     880             :       54,    54,    54,    54,    54,    54,    54,    54,    54,    54,
     881             :       54,    54,    54,    54,    54,    54
     882             : };
     883             : 
     884             :   /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.  */
     885             : static const yytype_int8 yyr2[] =
     886             : {
     887             :        0,     2,     1,     0,     1,     2,     1,     1,     1,     1,
     888             :        1,     1,     1,     1,     2,     2,     0,     0,    11,     0,
     889             :        5,    11,    12,     6,     2,     3,     1,     2,     1,     0,
     890             :        1,     0,     2,     0,     1,     3,     4,     3,     2,     0,
     891             :        1,     1,     2,     3,     1,     1,     1,     1,     1,     1,
     892             :        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
     893             :        1,     1,     1,     1,     1,     1
     894             : };
     895             : 
     896             : 
     897             : enum { YYENOMEM = -2 };
     898             : 
     899             : #define yyerrok         (yyerrstatus = 0)
     900             : #define yyclearin       (yychar = YYEMPTY)
     901             : 
     902             : #define YYACCEPT        goto yyacceptlab
     903             : #define YYABORT         goto yyabortlab
     904             : #define YYERROR         goto yyerrorlab
     905             : 
     906             : 
     907             : #define YYRECOVERING()  (!!yyerrstatus)
     908             : 
     909             : #define YYBACKUP(Token, Value)                                    \
     910             :   do                                                              \
     911             :     if (yychar == YYEMPTY)                                        \
     912             :       {                                                           \
     913             :         yychar = (Token);                                         \
     914             :         yylval = (Value);                                         \
     915             :         YYPOPSTACK (yylen);                                       \
     916             :         yystate = *yyssp;                                         \
     917             :         goto yybackup;                                            \
     918             :       }                                                           \
     919             :     else                                                          \
     920             :       {                                                           \
     921             :         yyerror (YY_("syntax error: cannot back up")); \
     922             :         YYERROR;                                                  \
     923             :       }                                                           \
     924             :   while (0)
     925             : 
     926             : /* Backward compatibility with an undocumented macro.
     927             :    Use YYerror or YYUNDEF. */
     928             : #define YYERRCODE YYUNDEF
     929             : 
     930             : 
     931             : /* Enable debugging if requested.  */
     932             : #if YYDEBUG
     933             : 
     934             : # ifndef YYFPRINTF
     935             : #  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
     936             : #  define YYFPRINTF fprintf
     937             : # endif
     938             : 
     939             : # define YYDPRINTF(Args)                        \
     940             : do {                                            \
     941             :   if (yydebug)                                  \
     942             :     YYFPRINTF Args;                             \
     943             : } while (0)
     944             : 
     945             : /* This macro is provided for backward compatibility. */
     946             : # ifndef YY_LOCATION_PRINT
     947             : #  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
     948             : # endif
     949             : 
     950             : 
     951             : # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
     952             : do {                                                                      \
     953             :   if (yydebug)                                                            \
     954             :     {                                                                     \
     955             :       YYFPRINTF (stderr, "%s ", Title);                                   \
     956             :       yy_symbol_print (stderr,                                            \
     957             :                   Kind, Value); \
     958             :       YYFPRINTF (stderr, "\n");                                           \
     959             :     }                                                                     \
     960             : } while (0)
     961             : 
     962             : 
     963             : /*-----------------------------------.
     964             : | Print this symbol's value on YYO.  |
     965             : `-----------------------------------*/
     966             : 
     967             : static void
     968             : yy_symbol_value_print (FILE *yyo,
     969             :                        yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
     970             : {
     971             :   FILE *yyoutput = yyo;
     972             :   YY_USE (yyoutput);
     973             :   if (!yyvaluep)
     974             :     return;
     975             : # ifdef YYPRINT
     976             :   if (yykind < YYNTOKENS)
     977             :     YYPRINT (yyo, yytoknum[yykind], *yyvaluep);
     978             : # endif
     979             :   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
     980             :   YY_USE (yykind);
     981             :   YY_IGNORE_MAYBE_UNINITIALIZED_END
     982             : }
     983             : 
     984             : 
     985             : /*---------------------------.
     986             : | Print this symbol on YYO.  |
     987             : `---------------------------*/
     988             : 
     989             : static void
     990             : yy_symbol_print (FILE *yyo,
     991             :                  yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
     992             : {
     993             :   YYFPRINTF (yyo, "%s %s (",
     994             :              yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));
     995             : 
     996             :   yy_symbol_value_print (yyo, yykind, yyvaluep);
     997             :   YYFPRINTF (yyo, ")");
     998             : }
     999             : 
    1000             : /*------------------------------------------------------------------.
    1001             : | yy_stack_print -- Print the state stack from its BOTTOM up to its |
    1002             : | TOP (included).                                                   |
    1003             : `------------------------------------------------------------------*/
    1004             : 
    1005             : static void
    1006             : yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
    1007             : {
    1008             :   YYFPRINTF (stderr, "Stack now");
    1009             :   for (; yybottom <= yytop; yybottom++)
    1010             :     {
    1011             :       int yybot = *yybottom;
    1012             :       YYFPRINTF (stderr, " %d", yybot);
    1013             :     }
    1014             :   YYFPRINTF (stderr, "\n");
    1015             : }
    1016             : 
    1017             : # define YY_STACK_PRINT(Bottom, Top)                            \
    1018             : do {                                                            \
    1019             :   if (yydebug)                                                  \
    1020             :     yy_stack_print ((Bottom), (Top));                           \
    1021             : } while (0)
    1022             : 
    1023             : 
    1024             : /*------------------------------------------------.
    1025             : | Report that the YYRULE is going to be reduced.  |
    1026             : `------------------------------------------------*/
    1027             : 
    1028             : static void
    1029             : yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp,
    1030             :                  int yyrule)
    1031             : {
    1032             :   int yylno = yyrline[yyrule];
    1033             :   int yynrhs = yyr2[yyrule];
    1034             :   int yyi;
    1035             :   YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
    1036             :              yyrule - 1, yylno);
    1037             :   /* The symbols being reduced.  */
    1038             :   for (yyi = 0; yyi < yynrhs; yyi++)
    1039             :     {
    1040             :       YYFPRINTF (stderr, "   $%d = ", yyi + 1);
    1041             :       yy_symbol_print (stderr,
    1042             :                        YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
    1043             :                        &yyvsp[(yyi + 1) - (yynrhs)]);
    1044             :       YYFPRINTF (stderr, "\n");
    1045             :     }
    1046             : }
    1047             : 
    1048             : # define YY_REDUCE_PRINT(Rule)          \
    1049             : do {                                    \
    1050             :   if (yydebug)                          \
    1051             :     yy_reduce_print (yyssp, yyvsp, Rule); \
    1052             : } while (0)
    1053             : 
    1054             : /* Nonzero means print parse trace.  It is left uninitialized so that
    1055             :    multiple parsers can coexist.  */
    1056             : int yydebug;
    1057             : #else /* !YYDEBUG */
    1058             : # define YYDPRINTF(Args) ((void) 0)
    1059             : # define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
    1060             : # define YY_STACK_PRINT(Bottom, Top)
    1061             : # define YY_REDUCE_PRINT(Rule)
    1062             : #endif /* !YYDEBUG */
    1063             : 
    1064             : 
    1065             : /* YYINITDEPTH -- initial size of the parser's stacks.  */
    1066             : #ifndef YYINITDEPTH
    1067             : # define YYINITDEPTH 200
    1068             : #endif
    1069             : 
    1070             : /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
    1071             :    if the built-in stack extension method is used).
    1072             : 
    1073             :    Do not make this value too large; the results are undefined if
    1074             :    YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
    1075             :    evaluated with infinite-precision integer arithmetic.  */
    1076             : 
    1077             : #ifndef YYMAXDEPTH
    1078             : # define YYMAXDEPTH 10000
    1079             : #endif
    1080             : 
    1081             : 
    1082             : 
    1083             : 
    1084             : 
    1085             : 
    1086             : /*-----------------------------------------------.
    1087             : | Release the memory associated to this symbol.  |
    1088             : `-----------------------------------------------*/
    1089             : 
    1090             : static void
    1091         964 : yydestruct (const char *yymsg,
    1092             :             yysymbol_kind_t yykind, YYSTYPE *yyvaluep)
    1093             : {
    1094             :   YY_USE (yyvaluep);
    1095         964 :   if (!yymsg)
    1096           0 :     yymsg = "Deleting";
    1097             :   YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);
    1098             : 
    1099             :   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
    1100             :   YY_USE (yykind);
    1101             :   YY_IGNORE_MAYBE_UNINITIALIZED_END
    1102         964 : }
    1103             : 
    1104             : 
    1105             : /* Lookahead token kind.  */
    1106             : int yychar;
    1107             : 
    1108             : /* The semantic value of the lookahead symbol.  */
    1109             : YYSTYPE yylval;
    1110             : /* Number of syntax errors so far.  */
    1111             : int yynerrs;
    1112             : 
    1113             : 
    1114             : 
    1115             : 
    1116             : /*----------.
    1117             : | yyparse.  |
    1118             : `----------*/
    1119             : 
    1120             : int
    1121         482 : yyparse (void)
    1122             : {
    1123         482 :     yy_state_fast_t yystate = 0;
    1124             :     /* Number of tokens to shift before error messages enabled.  */
    1125         482 :     int yyerrstatus = 0;
    1126             : 
    1127             :     /* Refer to the stacks through separate pointers, to allow yyoverflow
    1128             :        to reallocate them elsewhere.  */
    1129             : 
    1130             :     /* Their size.  */
    1131         482 :     YYPTRDIFF_T yystacksize = YYINITDEPTH;
    1132             : 
    1133             :     /* The state stack: array, bottom, top.  */
    1134             :     yy_state_t yyssa[YYINITDEPTH];
    1135         482 :     yy_state_t *yyss = yyssa;
    1136         482 :     yy_state_t *yyssp = yyss;
    1137             : 
    1138             :     /* The semantic value stack: array, bottom, top.  */
    1139             :     YYSTYPE yyvsa[YYINITDEPTH];
    1140         482 :     YYSTYPE *yyvs = yyvsa;
    1141         482 :     YYSTYPE *yyvsp = yyvs;
    1142             : 
    1143             :   int yyn;
    1144             :   /* The return value of yyparse.  */
    1145             :   int yyresult;
    1146             :   /* Lookahead symbol kind.  */
    1147         482 :   yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
    1148             :   /* The variables used to return semantic value and location from the
    1149             :      action routines.  */
    1150             :   YYSTYPE yyval;
    1151             : 
    1152             : 
    1153             : 
    1154             : #define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
    1155             : 
    1156             :   /* The number of symbols on the RHS of the reduced rule.
    1157             :      Keep to zero when no symbol should be popped.  */
    1158         482 :   int yylen = 0;
    1159             : 
    1160             :   YYDPRINTF ((stderr, "Starting parse\n"));
    1161             : 
    1162         482 :   yychar = YYEMPTY; /* Cause a token to be read.  */
    1163         482 :   goto yysetstate;
    1164             : 
    1165             : 
    1166             : /*------------------------------------------------------------.
    1167             : | yynewstate -- push a new state, which is found in yystate.  |
    1168             : `------------------------------------------------------------*/
    1169   321858874 : yynewstate:
    1170             :   /* In all cases, when you get here, the value and location stacks
    1171             :      have just been pushed.  So pushing a state here evens the stacks.  */
    1172   321858874 :   yyssp++;
    1173             : 
    1174             : 
    1175             : /*--------------------------------------------------------------------.
    1176             : | yysetstate -- set current state (the top of the stack) to yystate.  |
    1177             : `--------------------------------------------------------------------*/
    1178   321859356 : yysetstate:
    1179             :   YYDPRINTF ((stderr, "Entering state %d\n", yystate));
    1180             :   YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
    1181             :   YY_IGNORE_USELESS_CAST_BEGIN
    1182   321859356 :   *yyssp = YY_CAST (yy_state_t, yystate);
    1183             :   YY_IGNORE_USELESS_CAST_END
    1184             :   YY_STACK_PRINT (yyss, yyssp);
    1185             : 
    1186   321859356 :   if (yyss + yystacksize - 1 <= yyssp)
    1187             : #if !defined yyoverflow && !defined YYSTACK_RELOCATE
    1188             :     goto yyexhaustedlab;
    1189             : #else
    1190             :     {
    1191             :       /* Get the current used size of the three stacks, in elements.  */
    1192           0 :       YYPTRDIFF_T yysize = yyssp - yyss + 1;
    1193             : 
    1194             : # if defined yyoverflow
    1195             :       {
    1196             :         /* Give user a chance to reallocate the stack.  Use copies of
    1197             :            these so that the &'s don't force the real ones into
    1198             :            memory.  */
    1199             :         yy_state_t *yyss1 = yyss;
    1200             :         YYSTYPE *yyvs1 = yyvs;
    1201             : 
    1202             :         /* Each stack pointer address is followed by the size of the
    1203             :            data in use in that stack, in bytes.  This used to be a
    1204             :            conditional around just the two extra args, but that might
    1205             :            be undefined if yyoverflow is a macro.  */
    1206             :         yyoverflow (YY_("memory exhausted"),
    1207             :                     &yyss1, yysize * YYSIZEOF (*yyssp),
    1208             :                     &yyvs1, yysize * YYSIZEOF (*yyvsp),
    1209             :                     &yystacksize);
    1210             :         yyss = yyss1;
    1211             :         yyvs = yyvs1;
    1212             :       }
    1213             : # else /* defined YYSTACK_RELOCATE */
    1214             :       /* Extend the stack our own way.  */
    1215           0 :       if (YYMAXDEPTH <= yystacksize)
    1216           0 :         goto yyexhaustedlab;
    1217           0 :       yystacksize *= 2;
    1218           0 :       if (YYMAXDEPTH < yystacksize)
    1219           0 :         yystacksize = YYMAXDEPTH;
    1220             : 
    1221             :       {
    1222           0 :         yy_state_t *yyss1 = yyss;
    1223             :         union yyalloc *yyptr =
    1224           0 :           YY_CAST (union yyalloc *,
    1225             :                    YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
    1226           0 :         if (! yyptr)
    1227           0 :           goto yyexhaustedlab;
    1228           0 :         YYSTACK_RELOCATE (yyss_alloc, yyss);
    1229           0 :         YYSTACK_RELOCATE (yyvs_alloc, yyvs);
    1230             : #  undef YYSTACK_RELOCATE
    1231           0 :         if (yyss1 != yyssa)
    1232           0 :           YYSTACK_FREE (yyss1);
    1233             :       }
    1234             : # endif
    1235             : 
    1236           0 :       yyssp = yyss + yysize - 1;
    1237           0 :       yyvsp = yyvs + yysize - 1;
    1238             : 
    1239             :       YY_IGNORE_USELESS_CAST_BEGIN
    1240             :       YYDPRINTF ((stderr, "Stack size increased to %ld\n",
    1241             :                   YY_CAST (long, yystacksize)));
    1242             :       YY_IGNORE_USELESS_CAST_END
    1243             : 
    1244           0 :       if (yyss + yystacksize - 1 <= yyssp)
    1245           0 :         YYABORT;
    1246             :     }
    1247             : #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
    1248             : 
    1249   321859356 :   if (yystate == YYFINAL)
    1250         482 :     YYACCEPT;
    1251             : 
    1252   321858874 :   goto yybackup;
    1253             : 
    1254             : 
    1255             : /*-----------.
    1256             : | yybackup.  |
    1257             : `-----------*/
    1258   321858874 : yybackup:
    1259             :   /* Do appropriate processing given the current state.  Read a
    1260             :      lookahead token if we need one and don't already have one.  */
    1261             : 
    1262             :   /* First try to decide what to do without reference to lookahead token.  */
    1263   321858874 :   yyn = yypact[yystate];
    1264   321858874 :   if (yypact_value_is_default (yyn))
    1265   230124634 :     goto yydefault;
    1266             : 
    1267             :   /* Not known => get a lookahead token if don't already have one.  */
    1268             : 
    1269             :   /* YYCHAR is either empty, or end-of-input, or a valid lookahead.  */
    1270    91734240 :   if (yychar == YYEMPTY)
    1271             :     {
    1272             :       YYDPRINTF ((stderr, "Reading a token\n"));
    1273    91362136 :       yychar = yylex ();
    1274             :     }
    1275             : 
    1276    91734240 :   if (yychar <= YYEOF)
    1277             :     {
    1278         964 :       yychar = YYEOF;
    1279         964 :       yytoken = YYSYMBOL_YYEOF;
    1280             :       YYDPRINTF ((stderr, "Now at end of input.\n"));
    1281             :     }
    1282    91733276 :   else if (yychar == YYerror)
    1283             :     {
    1284             :       /* The scanner already issued an error message, process directly
    1285             :          to error recovery.  But do not keep the error token as
    1286             :          lookahead, it is too special and may lead us to an endless
    1287             :          loop in error recovery. */
    1288           0 :       yychar = YYUNDEF;
    1289           0 :       yytoken = YYSYMBOL_YYerror;
    1290           0 :       goto yyerrlab1;
    1291             :     }
    1292             :   else
    1293             :     {
    1294    91733276 :       yytoken = YYTRANSLATE (yychar);
    1295             :       YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    1296             :     }
    1297             : 
    1298             :   /* If the proper action on seeing token YYTOKEN is to reduce or to
    1299             :      detect an error, take that action.  */
    1300    91734240 :   yyn += yytoken;
    1301    91734240 :   if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    1302      372104 :     goto yydefault;
    1303    91362136 :   yyn = yytable[yyn];
    1304    91362136 :   if (yyn <= 0)
    1305             :     {
    1306             :       if (yytable_value_is_error (yyn))
    1307             :         goto yyerrlab;
    1308           0 :       yyn = -yyn;
    1309           0 :       goto yyreduce;
    1310             :     }
    1311             : 
    1312             :   /* Count tokens shifted since error; after three, turn off error
    1313             :      status.  */
    1314    91362136 :   if (yyerrstatus)
    1315           0 :     yyerrstatus--;
    1316             : 
    1317             :   /* Shift the lookahead token.  */
    1318             :   YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
    1319    91362136 :   yystate = yyn;
    1320             :   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
    1321    91362136 :   *++yyvsp = yylval;
    1322             :   YY_IGNORE_MAYBE_UNINITIALIZED_END
    1323             : 
    1324             :   /* Discard the shifted token.  */
    1325    91362136 :   yychar = YYEMPTY;
    1326    91362136 :   goto yynewstate;
    1327             : 
    1328             : 
    1329             : /*-----------------------------------------------------------.
    1330             : | yydefault -- do the default action for the current state.  |
    1331             : `-----------------------------------------------------------*/
    1332   230496738 : yydefault:
    1333   230496738 :   yyn = yydefact[yystate];
    1334   230496738 :   if (yyn == 0)
    1335           0 :     goto yyerrlab;
    1336   230496738 :   goto yyreduce;
    1337             : 
    1338             : 
    1339             : /*-----------------------------.
    1340             : | yyreduce -- do a reduction.  |
    1341             : `-----------------------------*/
    1342   230496738 : yyreduce:
    1343             :   /* yyn is the number of a rule to reduce with.  */
    1344   230496738 :   yylen = yyr2[yyn];
    1345             : 
    1346             :   /* If YYLEN is nonzero, implement the default value of the action:
    1347             :      '$$ = $1'.
    1348             : 
    1349             :      Otherwise, the following line sets YYVAL to garbage.
    1350             :      This behavior is undocumented and Bison
    1351             :      users should not rely upon it.  Assigning to YYVAL
    1352             :      unconditionally makes the parser a bit smaller, and it avoids a
    1353             :      GCC warning that YYVAL may be used uninitialized.  */
    1354   230496738 :   yyval = yyvsp[1-yylen];
    1355             : 
    1356             : 
    1357             :   YY_REDUCE_PRINT (yyn);
    1358   230496738 :   switch (yyn)
    1359             :     {
    1360       28438 :   case 14: /* Boot_OpenStmt: OPEN boot_ident  */
    1361             : #line 137 "bootparse.y"
    1362             :                                 {
    1363             :                     do_start();
    1364             :                     boot_openrel((yyvsp[0].str));
    1365             :                     do_end();
    1366             :                 }
    1367             : #line 1368 "bootparse.c"
    1368       28438 :     break;
    1369             : 
    1370       30366 :   case 15: /* Boot_CloseStmt: XCLOSE boot_ident  */
    1371             : #line 146 "bootparse.y"
    1372             :                                 {
    1373             :                     do_start();
    1374             :                     closerel((yyvsp[0].str));
    1375             :                     do_end();
    1376             :                 }
    1377             : #line 1378 "bootparse.c"
    1378       30366 :     break;
    1379             : 
    1380       30366 :   case 16: /* $@1: %empty  */
    1381             : #line 155 "bootparse.y"
    1382             :                                 {
    1383             :                     do_start();
    1384             :                     numattr = 0;
    1385             :                     elog(DEBUG4, "creating%s%s relation %s %u",
    1386             :                          (yyvsp[-3].ival) ? " bootstrap" : "",
    1387             :                          (yyvsp[-2].ival) ? " shared" : "",
    1388             :                          (yyvsp[-5].str),
    1389             :                          (yyvsp[-4].oidval));
    1390             :                 }
    1391             : #line 1392 "bootparse.c"
    1392       30366 :     break;
    1393             : 
    1394       30366 :   case 17: /* $@2: %empty  */
    1395             : #line 165 "bootparse.y"
    1396             :                                 {
    1397             :                     do_end();
    1398             :                 }
    1399             : #line 1400 "bootparse.c"
    1400       30366 :     break;
    1401             : 
    1402       30366 :   case 18: /* Boot_CreateStmt: XCREATE boot_ident oidspec optbootstrap optsharedrelation optrowtypeoid LPAREN $@1 boot_column_list $@2 RPAREN  */
    1403             : #line 169 "bootparse.y"
    1404             :                                 {
    1405             :                     TupleDesc tupdesc;
    1406             :                     bool    shared_relation;
    1407             :                     bool    mapped_relation;
    1408             : 
    1409             :                     do_start();
    1410             : 
    1411             :                     tupdesc = CreateTupleDesc(numattr, attrtypes);
    1412             : 
    1413             :                     shared_relation = (yyvsp[-6].ival);
    1414             : 
    1415             :                     /*
    1416             :                      * The catalogs that use the relation mapper are the
    1417             :                      * bootstrap catalogs plus the shared catalogs.  If this
    1418             :                      * ever gets more complicated, we should invent a BKI
    1419             :                      * keyword to mark the mapped catalogs, but for now a
    1420             :                      * quick hack seems the most appropriate thing.  Note in
    1421             :                      * particular that all "nailed" heap rels (see formrdesc
    1422             :                      * in relcache.c) must be mapped.
    1423             :                      */
    1424             :                     mapped_relation = ((yyvsp[-7].ival) || shared_relation);
    1425             : 
    1426             :                     if ((yyvsp[-7].ival))
    1427             :                     {
    1428             :                         TransactionId relfrozenxid;
    1429             :                         MultiXactId relminmxid;
    1430             : 
    1431             :                         if (boot_reldesc)
    1432             :                         {
    1433             :                             elog(DEBUG4, "create bootstrap: warning, open relation exists, closing first");
    1434             :                             closerel(NULL);
    1435             :                         }
    1436             : 
    1437             :                         boot_reldesc = heap_create((yyvsp[-9].str),
    1438             :                                                    PG_CATALOG_NAMESPACE,
    1439             :                                                    shared_relation ? GLOBALTABLESPACE_OID : 0,
    1440             :                                                    (yyvsp[-8].oidval),
    1441             :                                                    InvalidOid,
    1442             :                                                    HEAP_TABLE_AM_OID,
    1443             :                                                    tupdesc,
    1444             :                                                    RELKIND_RELATION,
    1445             :                                                    RELPERSISTENCE_PERMANENT,
    1446             :                                                    shared_relation,
    1447             :                                                    mapped_relation,
    1448             :                                                    true,
    1449             :                                                    &relfrozenxid,
    1450             :                                                    &relminmxid);
    1451             :                         elog(DEBUG4, "bootstrap relation created");
    1452             :                     }
    1453             :                     else
    1454             :                     {
    1455             :                         Oid id;
    1456             : 
    1457             :                         id = heap_create_with_catalog((yyvsp[-9].str),
    1458             :                                                       PG_CATALOG_NAMESPACE,
    1459             :                                                       shared_relation ? GLOBALTABLESPACE_OID : 0,
    1460             :                                                       (yyvsp[-8].oidval),
    1461             :                                                       (yyvsp[-5].oidval),
    1462             :                                                       InvalidOid,
    1463             :                                                       BOOTSTRAP_SUPERUSERID,
    1464             :                                                       HEAP_TABLE_AM_OID,
    1465             :                                                       tupdesc,
    1466             :                                                       NIL,
    1467             :                                                       RELKIND_RELATION,
    1468             :                                                       RELPERSISTENCE_PERMANENT,
    1469             :                                                       shared_relation,
    1470             :                                                       mapped_relation,
    1471             :                                                       ONCOMMIT_NOOP,
    1472             :                                                       (Datum) 0,
    1473             :                                                       false,
    1474             :                                                       true,
    1475             :                                                       false,
    1476             :                                                       InvalidOid,
    1477             :                                                       NULL);
    1478             :                         elog(DEBUG4, "relation created with OID %u", id);
    1479             :                     }
    1480             :                     do_end();
    1481             :                 }
    1482             : #line 1483 "bootparse.c"
    1483       30366 :     break;
    1484             : 
    1485     5002196 :   case 19: /* $@3: %empty  */
    1486             : #line 251 "bootparse.y"
    1487             :                                 {
    1488             :                     do_start();
    1489             :                     elog(DEBUG4, "inserting row");
    1490             :                     num_columns_read = 0;
    1491             :                 }
    1492             : #line 1493 "bootparse.c"
    1493     5002196 :     break;
    1494             : 
    1495     5002196 :   case 20: /* Boot_InsertStmt: INSERT_TUPLE $@3 LPAREN boot_column_val_list RPAREN  */
    1496             : #line 257 "bootparse.y"
    1497             :                                 {
    1498             :                     if (num_columns_read != numattr)
    1499             :                         elog(ERROR, "incorrect number of columns in row (expected %d, got %d)",
    1500             :                              numattr, num_columns_read);
    1501             :                     if (boot_reldesc == NULL)
    1502             :                         elog(FATAL, "relation not open");
    1503             :                     InsertOneTuple();
    1504             :                     do_end();
    1505             :                 }
    1506             : #line 1507 "bootparse.c"
    1507     5002196 :     break;
    1508             : 
    1509        5784 :   case 21: /* Boot_DeclareIndexStmt: XDECLARE INDEX boot_ident oidspec ON boot_ident USING boot_ident LPAREN boot_index_params RPAREN  */
    1510             : #line 270 "bootparse.y"
    1511             :                                 {
    1512             :                     IndexStmt *stmt = makeNode(IndexStmt);
    1513             :                     Oid     relationId;
    1514             : 
    1515             :                     elog(DEBUG4, "creating index \"%s\"", (yyvsp[-8].str));
    1516             : 
    1517             :                     do_start();
    1518             : 
    1519             :                     stmt->idxname = (yyvsp[-8].str);
    1520             :                     stmt->relation = makeRangeVar(NULL, (yyvsp[-5].str), -1);
    1521             :                     stmt->accessMethod = (yyvsp[-3].str);
    1522             :                     stmt->tableSpace = NULL;
    1523             :                     stmt->indexParams = (yyvsp[-1].list);
    1524             :                     stmt->indexIncludingParams = NIL;
    1525             :                     stmt->options = NIL;
    1526             :                     stmt->whereClause = NULL;
    1527             :                     stmt->excludeOpNames = NIL;
    1528             :                     stmt->idxcomment = NULL;
    1529             :                     stmt->indexOid = InvalidOid;
    1530             :                     stmt->oldNode = InvalidOid;
    1531             :                     stmt->oldCreateSubid = InvalidSubTransactionId;
    1532             :                     stmt->oldFirstRelfilenodeSubid = InvalidSubTransactionId;
    1533             :                     stmt->unique = false;
    1534             :                     stmt->primary = false;
    1535             :                     stmt->isconstraint = false;
    1536             :                     stmt->deferrable = false;
    1537             :                     stmt->initdeferred = false;
    1538             :                     stmt->transformed = false;
    1539             :                     stmt->concurrent = false;
    1540             :                     stmt->if_not_exists = false;
    1541             :                     stmt->reset_default_tblspc = false;
    1542             : 
    1543             :                     /* locks and races need not concern us in bootstrap mode */
    1544             :                     relationId = RangeVarGetRelid(stmt->relation, NoLock,
    1545             :                                                   false);
    1546             : 
    1547             :                     DefineIndex(relationId,
    1548             :                                 stmt,
    1549             :                                 (yyvsp[-7].oidval),
    1550             :                                 InvalidOid,
    1551             :                                 InvalidOid,
    1552             :                                 false,
    1553             :                                 false,
    1554             :                                 false,
    1555             :                                 true, /* skip_build */
    1556             :                                 false);
    1557             :                     do_end();
    1558             :                 }
    1559             : #line 1560 "bootparse.c"
    1560        5784 :     break;
    1561             : 
    1562       51574 :   case 22: /* Boot_DeclareUniqueIndexStmt: XDECLARE UNIQUE INDEX boot_ident oidspec ON boot_ident USING boot_ident LPAREN boot_index_params RPAREN  */
    1563             : #line 322 "bootparse.y"
    1564             :                                 {
    1565             :                     IndexStmt *stmt = makeNode(IndexStmt);
    1566             :                     Oid     relationId;
    1567             : 
    1568             :                     elog(DEBUG4, "creating unique index \"%s\"", (yyvsp[-8].str));
    1569             : 
    1570             :                     do_start();
    1571             : 
    1572             :                     stmt->idxname = (yyvsp[-8].str);
    1573             :                     stmt->relation = makeRangeVar(NULL, (yyvsp[-5].str), -1);
    1574             :                     stmt->accessMethod = (yyvsp[-3].str);
    1575             :                     stmt->tableSpace = NULL;
    1576             :                     stmt->indexParams = (yyvsp[-1].list);
    1577             :                     stmt->indexIncludingParams = NIL;
    1578             :                     stmt->options = NIL;
    1579             :                     stmt->whereClause = NULL;
    1580             :                     stmt->excludeOpNames = NIL;
    1581             :                     stmt->idxcomment = NULL;
    1582             :                     stmt->indexOid = InvalidOid;
    1583             :                     stmt->oldNode = InvalidOid;
    1584             :                     stmt->oldCreateSubid = InvalidSubTransactionId;
    1585             :                     stmt->oldFirstRelfilenodeSubid = InvalidSubTransactionId;
    1586             :                     stmt->unique = true;
    1587             :                     stmt->primary = false;
    1588             :                     stmt->isconstraint = false;
    1589             :                     stmt->deferrable = false;
    1590             :                     stmt->initdeferred = false;
    1591             :                     stmt->transformed = false;
    1592             :                     stmt->concurrent = false;
    1593             :                     stmt->if_not_exists = false;
    1594             :                     stmt->reset_default_tblspc = false;
    1595             : 
    1596             :                     /* locks and races need not concern us in bootstrap mode */
    1597             :                     relationId = RangeVarGetRelid(stmt->relation, NoLock,
    1598             :                                                   false);
    1599             : 
    1600             :                     DefineIndex(relationId,
    1601             :                                 stmt,
    1602             :                                 (yyvsp[-7].oidval),
    1603             :                                 InvalidOid,
    1604             :                                 InvalidOid,
    1605             :                                 false,
    1606             :                                 false,
    1607             :                                 false,
    1608             :                                 true, /* skip_build */
    1609             :                                 false);
    1610             :                     do_end();
    1611             :                 }
    1612             : #line 1613 "bootparse.c"
    1613       51574 :     break;
    1614             : 
    1615       16388 :   case 23: /* Boot_DeclareToastStmt: XDECLARE XTOAST oidspec oidspec ON boot_ident  */
    1616             : #line 374 "bootparse.y"
    1617             :                                 {
    1618             :                     elog(DEBUG4, "creating toast table for table \"%s\"", (yyvsp[0].str));
    1619             : 
    1620             :                     do_start();
    1621             : 
    1622             :                     BootstrapToastTable((yyvsp[0].str), (yyvsp[-3].oidval), (yyvsp[-2].oidval));
    1623             :                     do_end();
    1624             :                 }
    1625             : #line 1626 "bootparse.c"
    1626       16388 :     break;
    1627             : 
    1628         482 :   case 24: /* Boot_BuildIndsStmt: XBUILD INDICES  */
    1629             : #line 386 "bootparse.y"
    1630             :                                 {
    1631             :                     do_start();
    1632             :                     build_indices();
    1633             :                     do_end();
    1634             :                 }
    1635             : #line 1636 "bootparse.c"
    1636         482 :     break;
    1637             : 
    1638       37596 :   case 25: /* boot_index_params: boot_index_params COMMA boot_index_param  */
    1639             : #line 395 "bootparse.y"
    1640             :                                                                 { (yyval.list) = lappend((yyvsp[-2].list), (yyvsp[0].ielem)); }
    1641             : #line 1642 "bootparse.c"
    1642       37596 :     break;
    1643             : 
    1644       57358 :   case 26: /* boot_index_params: boot_index_param  */
    1645             : #line 396 "bootparse.y"
    1646             :                                                                                         { (yyval.list) = list_make1((yyvsp[0].ielem)); }
    1647             : #line 1648 "bootparse.c"
    1648       57358 :     break;
    1649             : 
    1650       94954 :   case 27: /* boot_index_param: boot_ident boot_ident  */
    1651             : #line 401 "bootparse.y"
    1652             :                                 {
    1653             :                     IndexElem *n = makeNode(IndexElem);
    1654             :                     n->name = (yyvsp[-1].str);
    1655             :                     n->expr = NULL;
    1656             :                     n->indexcolname = NULL;
    1657             :                     n->collation = NIL;
    1658             :                     n->opclass = list_make1(makeString((yyvsp[0].str)));
    1659             :                     n->ordering = SORTBY_DEFAULT;
    1660             :                     n->nulls_ordering = SORTBY_NULLS_DEFAULT;
    1661             :                     (yyval.ielem) = n;
    1662             :                 }
    1663             : #line 1664 "bootparse.c"
    1664       94954 :     break;
    1665             : 
    1666        1928 :   case 28: /* optbootstrap: XBOOTSTRAP  */
    1667             : #line 415 "bootparse.y"
    1668             :                                         { (yyval.ival) = 1; }
    1669             : #line 1670 "bootparse.c"
    1670        1928 :     break;
    1671             : 
    1672       28438 :   case 29: /* optbootstrap: %empty  */
    1673             : #line 416 "bootparse.y"
    1674             :                                                 { (yyval.ival) = 0; }
    1675             : #line 1676 "bootparse.c"
    1676       28438 :     break;
    1677             : 
    1678        4820 :   case 30: /* optsharedrelation: XSHARED_RELATION  */
    1679             : #line 420 "bootparse.y"
    1680             :                                                 { (yyval.ival) = 1; }
    1681             : #line 1682 "bootparse.c"
    1682        4820 :     break;
    1683             : 
    1684       25546 :   case 31: /* optsharedrelation: %empty  */
    1685             : #line 421 "bootparse.y"
    1686             :                                                                 { (yyval.ival) = 0; }
    1687             : #line 1688 "bootparse.c"
    1688       25546 :     break;
    1689             : 
    1690        4338 :   case 32: /* optrowtypeoid: XROWTYPE_OID oidspec  */
    1691             : #line 425 "bootparse.y"
    1692             :                                                 { (yyval.oidval) = (yyvsp[0].oidval); }
    1693             : #line 1694 "bootparse.c"
    1694        4338 :     break;
    1695             : 
    1696       26028 :   case 33: /* optrowtypeoid: %empty  */
    1697             : #line 426 "bootparse.y"
    1698             :                                                                         { (yyval.oidval) = InvalidOid; }
    1699             : #line 1700 "bootparse.c"
    1700       26028 :     break;
    1701             : 
    1702      277150 :   case 36: /* boot_column_def: boot_ident EQUALS boot_ident boot_column_nullness  */
    1703             : #line 436 "bootparse.y"
    1704             :                                 {
    1705             :                    if (++numattr > MAXATTR)
    1706             :                         elog(FATAL, "too many columns");
    1707             :                    DefineAttr((yyvsp[-3].str), (yyvsp[-1].str), numattr-1, (yyvsp[0].ival));
    1708             :                 }
    1709             : #line 1710 "bootparse.c"
    1710      277150 :     break;
    1711             : 
    1712       14942 :   case 37: /* boot_column_nullness: XFORCE XNOT XNULL  */
    1713             : #line 444 "bootparse.y"
    1714             :                                                 { (yyval.ival) = BOOTCOL_NULL_FORCE_NOT_NULL; }
    1715             : #line 1716 "bootparse.c"
    1716       14942 :     break;
    1717             : 
    1718         964 :   case 38: /* boot_column_nullness: XFORCE XNULL  */
    1719             : #line 445 "bootparse.y"
    1720             :                                                 {  (yyval.ival) = BOOTCOL_NULL_FORCE_NULL; }
    1721             : #line 1722 "bootparse.c"
    1722         964 :     break;
    1723             : 
    1724      261244 :   case 39: /* boot_column_nullness: %empty  */
    1725             : #line 446 "bootparse.y"
    1726             :                   { (yyval.ival) = BOOTCOL_NULL_AUTO; }
    1727             : #line 1728 "bootparse.c"
    1728      261244 :     break;
    1729             : 
    1730      124838 :   case 40: /* oidspec: boot_ident  */
    1731             : #line 450 "bootparse.y"
    1732             :                                                                                         { (yyval.oidval) = atooid((yyvsp[0].str)); }
    1733             : #line 1734 "bootparse.c"
    1734      124838 :     break;
    1735             : 
    1736    59566042 :   case 44: /* boot_column_val: boot_ident  */
    1737             : #line 461 "bootparse.y"
    1738             :                         { InsertOneValue((yyvsp[0].str), num_columns_read++); }
    1739             : #line 1740 "bootparse.c"
    1740    59566042 :     break;
    1741             : 
    1742    14427224 :   case 45: /* boot_column_val: NULLVAL  */
    1743             : #line 463 "bootparse.y"
    1744             :                         { InsertOneNull(num_columns_read++); }
    1745             : #line 1746 "bootparse.c"
    1746    14427224 :     break;
    1747             : 
    1748    60712720 :   case 46: /* boot_ident: ID  */
    1749             : #line 467 "bootparse.y"
    1750             :                                         { (yyval.str) = (yyvsp[0].str); }
    1751             : #line 1752 "bootparse.c"
    1752    60712720 :     break;
    1753             : 
    1754           0 :   case 47: /* boot_ident: OPEN  */
    1755             : #line 468 "bootparse.y"
    1756             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1757             : #line 1758 "bootparse.c"
    1758           0 :     break;
    1759             : 
    1760           0 :   case 48: /* boot_ident: XCLOSE  */
    1761             : #line 469 "bootparse.y"
    1762             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1763             : #line 1764 "bootparse.c"
    1764           0 :     break;
    1765             : 
    1766           0 :   case 49: /* boot_ident: XCREATE  */
    1767             : #line 470 "bootparse.y"
    1768             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1769             : #line 1770 "bootparse.c"
    1770           0 :     break;
    1771             : 
    1772           0 :   case 50: /* boot_ident: INSERT_TUPLE  */
    1773             : #line 471 "bootparse.y"
    1774             :                                 { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1775             : #line 1776 "bootparse.c"
    1776           0 :     break;
    1777             : 
    1778           0 :   case 51: /* boot_ident: XDECLARE  */
    1779             : #line 472 "bootparse.y"
    1780             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1781             : #line 1782 "bootparse.c"
    1782           0 :     break;
    1783             : 
    1784           0 :   case 52: /* boot_ident: INDEX  */
    1785             : #line 473 "bootparse.y"
    1786             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1787             : #line 1788 "bootparse.c"
    1788           0 :     break;
    1789             : 
    1790           0 :   case 53: /* boot_ident: ON  */
    1791             : #line 474 "bootparse.y"
    1792             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1793             : #line 1794 "bootparse.c"
    1794           0 :     break;
    1795             : 
    1796           0 :   case 54: /* boot_ident: USING  */
    1797             : #line 475 "bootparse.y"
    1798             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1799             : #line 1800 "bootparse.c"
    1800           0 :     break;
    1801             : 
    1802           0 :   case 55: /* boot_ident: XBUILD  */
    1803             : #line 476 "bootparse.y"
    1804             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1805             : #line 1806 "bootparse.c"
    1806           0 :     break;
    1807             : 
    1808           0 :   case 56: /* boot_ident: INDICES  */
    1809             : #line 477 "bootparse.y"
    1810             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1811             : #line 1812 "bootparse.c"
    1812           0 :     break;
    1813             : 
    1814           0 :   case 57: /* boot_ident: UNIQUE  */
    1815             : #line 478 "bootparse.y"
    1816             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1817             : #line 1818 "bootparse.c"
    1818           0 :     break;
    1819             : 
    1820           0 :   case 58: /* boot_ident: XTOAST  */
    1821             : #line 479 "bootparse.y"
    1822             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1823             : #line 1824 "bootparse.c"
    1824           0 :     break;
    1825             : 
    1826           0 :   case 59: /* boot_ident: OBJ_ID  */
    1827             : #line 480 "bootparse.y"
    1828             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1829             : #line 1830 "bootparse.c"
    1830           0 :     break;
    1831             : 
    1832           0 :   case 60: /* boot_ident: XBOOTSTRAP  */
    1833             : #line 481 "bootparse.y"
    1834             :                                 { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1835             : #line 1836 "bootparse.c"
    1836           0 :     break;
    1837             : 
    1838           0 :   case 61: /* boot_ident: XSHARED_RELATION  */
    1839             : #line 482 "bootparse.y"
    1840             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1841             : #line 1842 "bootparse.c"
    1842           0 :     break;
    1843             : 
    1844           0 :   case 62: /* boot_ident: XROWTYPE_OID  */
    1845             : #line 483 "bootparse.y"
    1846             :                                 { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1847             : #line 1848 "bootparse.c"
    1848           0 :     break;
    1849             : 
    1850           0 :   case 63: /* boot_ident: XFORCE  */
    1851             : #line 484 "bootparse.y"
    1852             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1853             : #line 1854 "bootparse.c"
    1854           0 :     break;
    1855             : 
    1856           0 :   case 64: /* boot_ident: XNOT  */
    1857             : #line 485 "bootparse.y"
    1858             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1859             : #line 1860 "bootparse.c"
    1860           0 :     break;
    1861             : 
    1862           0 :   case 65: /* boot_ident: XNULL  */
    1863             : #line 486 "bootparse.y"
    1864             :                                         { (yyval.str) = pstrdup((yyvsp[0].kw)); }
    1865             : #line 1866 "bootparse.c"
    1866           0 :     break;
    1867             : 
    1868             : 
    1869             : #line 1870 "bootparse.c"
    1870             : 
    1871    84602086 :       default: break;
    1872             :     }
    1873             :   /* User semantic actions sometimes alter yychar, and that requires
    1874             :      that yytoken be updated with the new translation.  We take the
    1875             :      approach of translating immediately before every use of yytoken.
    1876             :      One alternative is translating here after every semantic action,
    1877             :      but that translation would be missed if the semantic action invokes
    1878             :      YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
    1879             :      if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
    1880             :      incorrect destructor might then be invoked immediately.  In the
    1881             :      case of YYERROR or YYBACKUP, subsequent parser actions might lead
    1882             :      to an incorrect destructor call or verbose syntax error message
    1883             :      before the lookahead is translated.  */
    1884             :   YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);
    1885             : 
    1886   230496738 :   YYPOPSTACK (yylen);
    1887   230496738 :   yylen = 0;
    1888             : 
    1889   230496738 :   *++yyvsp = yyval;
    1890             : 
    1891             :   /* Now 'shift' the result of the reduction.  Determine what state
    1892             :      that goes to, based on the state we popped back to and the rule
    1893             :      number reduced by.  */
    1894             :   {
    1895   230496738 :     const int yylhs = yyr1[yyn] - YYNTOKENS;
    1896   230496738 :     const int yyi = yypgoto[yylhs] + *yyssp;
    1897   141108874 :     yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
    1898   135207266 :                ? yytable[yyi]
    1899   371605612 :                : yydefgoto[yylhs]);
    1900             :   }
    1901             : 
    1902   230496738 :   goto yynewstate;
    1903             : 
    1904             : 
    1905             : /*--------------------------------------.
    1906             : | yyerrlab -- here on detecting error.  |
    1907             : `--------------------------------------*/
    1908           0 : yyerrlab:
    1909             :   /* Make sure we have latest lookahead translation.  See comments at
    1910             :      user semantic actions for why this is necessary.  */
    1911           0 :   yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
    1912             :   /* If not already recovering from an error, report this error.  */
    1913           0 :   if (!yyerrstatus)
    1914             :     {
    1915           0 :       ++yynerrs;
    1916           0 :       yyerror (YY_("syntax error"));
    1917             :     }
    1918             : 
    1919           0 :   if (yyerrstatus == 3)
    1920             :     {
    1921             :       /* If just tried and failed to reuse lookahead token after an
    1922             :          error, discard it.  */
    1923             : 
    1924           0 :       if (yychar <= YYEOF)
    1925             :         {
    1926             :           /* Return failure if at end of input.  */
    1927           0 :           if (yychar == YYEOF)
    1928           0 :             YYABORT;
    1929             :         }
    1930             :       else
    1931             :         {
    1932           0 :           yydestruct ("Error: discarding",
    1933             :                       yytoken, &yylval);
    1934           0 :           yychar = YYEMPTY;
    1935             :         }
    1936             :     }
    1937             : 
    1938             :   /* Else will try to reuse lookahead token after shifting the error
    1939             :      token.  */
    1940           0 :   goto yyerrlab1;
    1941             : 
    1942             : 
    1943             : /*---------------------------------------------------.
    1944             : | yyerrorlab -- error raised explicitly by YYERROR.  |
    1945             : `---------------------------------------------------*/
    1946             : yyerrorlab:
    1947             :   /* Pacify compilers when the user code never invokes YYERROR and the
    1948             :      label yyerrorlab therefore never appears in user code.  */
    1949             :   if (0)
    1950             :     YYERROR;
    1951             : 
    1952             :   /* Do not reclaim the symbols of the rule whose action triggered
    1953             :      this YYERROR.  */
    1954             :   YYPOPSTACK (yylen);
    1955             :   yylen = 0;
    1956             :   YY_STACK_PRINT (yyss, yyssp);
    1957             :   yystate = *yyssp;
    1958             :   goto yyerrlab1;
    1959             : 
    1960             : 
    1961             : /*-------------------------------------------------------------.
    1962             : | yyerrlab1 -- common code for both syntax error and YYERROR.  |
    1963             : `-------------------------------------------------------------*/
    1964           0 : yyerrlab1:
    1965           0 :   yyerrstatus = 3;      /* Each real token shifted decrements this.  */
    1966             : 
    1967             :   /* Pop stack until we find a state that shifts the error token.  */
    1968             :   for (;;)
    1969             :     {
    1970           0 :       yyn = yypact[yystate];
    1971           0 :       if (!yypact_value_is_default (yyn))
    1972             :         {
    1973           0 :           yyn += YYSYMBOL_YYerror;
    1974           0 :           if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
    1975             :             {
    1976           0 :               yyn = yytable[yyn];
    1977           0 :               if (0 < yyn)
    1978           0 :                 break;
    1979             :             }
    1980             :         }
    1981             : 
    1982             :       /* Pop the current state because it cannot handle the error token.  */
    1983           0 :       if (yyssp == yyss)
    1984           0 :         YYABORT;
    1985             : 
    1986             : 
    1987           0 :       yydestruct ("Error: popping",
    1988           0 :                   YY_ACCESSING_SYMBOL (yystate), yyvsp);
    1989           0 :       YYPOPSTACK (1);
    1990           0 :       yystate = *yyssp;
    1991             :       YY_STACK_PRINT (yyss, yyssp);
    1992             :     }
    1993             : 
    1994             :   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
    1995           0 :   *++yyvsp = yylval;
    1996             :   YY_IGNORE_MAYBE_UNINITIALIZED_END
    1997             : 
    1998             : 
    1999             :   /* Shift the error token.  */
    2000             :   YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
    2001             : 
    2002           0 :   yystate = yyn;
    2003           0 :   goto yynewstate;
    2004             : 
    2005             : 
    2006             : /*-------------------------------------.
    2007             : | yyacceptlab -- YYACCEPT comes here.  |
    2008             : `-------------------------------------*/
    2009         482 : yyacceptlab:
    2010         482 :   yyresult = 0;
    2011         482 :   goto yyreturn;
    2012             : 
    2013             : 
    2014             : /*-----------------------------------.
    2015             : | yyabortlab -- YYABORT comes here.  |
    2016             : `-----------------------------------*/
    2017           0 : yyabortlab:
    2018           0 :   yyresult = 1;
    2019           0 :   goto yyreturn;
    2020             : 
    2021             : 
    2022             : #if !defined yyoverflow
    2023             : /*-------------------------------------------------.
    2024             : | yyexhaustedlab -- memory exhaustion comes here.  |
    2025             : `-------------------------------------------------*/
    2026           0 : yyexhaustedlab:
    2027           0 :   yyerror (YY_("memory exhausted"));
    2028             :   yyresult = 2;
    2029             :   goto yyreturn;
    2030             : #endif
    2031             : 
    2032             : 
    2033             : /*-------------------------------------------------------.
    2034             : | yyreturn -- parsing is finished, clean up and return.  |
    2035             : `-------------------------------------------------------*/
    2036         482 : yyreturn:
    2037         482 :   if (yychar != YYEMPTY)
    2038             :     {
    2039             :       /* Make sure we have latest lookahead translation.  See comments at
    2040             :          user semantic actions for why this is necessary.  */
    2041           0 :       yytoken = YYTRANSLATE (yychar);
    2042           0 :       yydestruct ("Cleanup: discarding lookahead",
    2043             :                   yytoken, &yylval);
    2044             :     }
    2045             :   /* Do not reclaim the symbols of the rule whose action triggered
    2046             :      this YYABORT or YYACCEPT.  */
    2047         482 :   YYPOPSTACK (yylen);
    2048             :   YY_STACK_PRINT (yyss, yyssp);
    2049        1446 :   while (yyssp != yyss)
    2050             :     {
    2051         964 :       yydestruct ("Cleanup: popping",
    2052         964 :                   YY_ACCESSING_SYMBOL (+*yyssp), yyvsp);
    2053         964 :       YYPOPSTACK (1);
    2054             :     }
    2055             : #ifndef yyoverflow
    2056         482 :   if (yyss != yyssa)
    2057           0 :     YYSTACK_FREE (yyss);
    2058             : #endif
    2059             : 
    2060         482 :   return yyresult;
    2061             : }
    2062             : 
    2063             : #line 488 "bootparse.y"
    2064             : 
    2065             : 
    2066             : #include "bootscanner.c"

Generated by: LCOV version 1.14