LCOV - code coverage report
Current view: top level - src/backend/bootstrap - bootparse.c (source / functions) Hit Total Coverage
Test: PostgreSQL 13beta1 Lines: 125 226 55.3 %
Date: 2020-05-25 03:07:04 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.13