mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03:00
Remove dead code in bootstrap
The bootstrap scanner/parser contains code to parse floating point values, but this is not exercised anywhere, so remove it. Reviewed-by: Jim Nasby Discussion: https://postgr.es/m/20170110051119.b5h7i3z5qagy35rb@alvherre.pgsql
This commit is contained in:
@@ -105,11 +105,11 @@ static int num_columns_read = 0;
|
||||
|
||||
%type <list> boot_index_params
|
||||
%type <ielem> boot_index_param
|
||||
%type <str> boot_const boot_ident
|
||||
%type <str> boot_ident
|
||||
%type <ival> optbootstrap optsharedrelation optwithoutoids boot_column_nullness
|
||||
%type <oidval> oidspec optoideq optrowtypeoid
|
||||
|
||||
%token <str> CONST_P ID
|
||||
%token <str> ID
|
||||
%token OPEN XCLOSE XCREATE INSERT_TUPLE
|
||||
%token XDECLARE INDEX ON USING XBUILD INDICES UNIQUE XTOAST
|
||||
%token COMMA EQUALS LPAREN RPAREN
|
||||
@@ -464,16 +464,10 @@ boot_column_val_list:
|
||||
boot_column_val:
|
||||
boot_ident
|
||||
{ InsertOneValue($1, num_columns_read++); }
|
||||
| boot_const
|
||||
{ InsertOneValue($1, num_columns_read++); }
|
||||
| NULLVAL
|
||||
{ InsertOneNull(num_columns_read++); }
|
||||
;
|
||||
|
||||
boot_const :
|
||||
CONST_P { $$ = yylval.str; }
|
||||
;
|
||||
|
||||
boot_ident :
|
||||
ID { $$ = yylval.str; }
|
||||
;
|
||||
|
Reference in New Issue
Block a user