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

Generated by: LCOV version 1.14