LCOV - code coverage report
Current view: top level - src/backend/bootstrap - bootparse.c (source / functions) Hit Total Coverage
Test: PostgreSQL 18devel Lines: 130 232 56.0 %
Date: 2024-11-21 08:14:44 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.14