diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index e548476..8b0680a 100644
*** a/src/backend/parser/gram.y
--- b/src/backend/parser/gram.y
*************** static Node *makeRecursiveViewSelect(cha
*** 581,588 ****
  %type <partelem>	part_elem
  %type <list>		part_params
  %type <partboundspec> PartitionBoundSpec
! %type <node>		partbound_datum PartitionRangeDatum
! %type <list>		hash_partbound partbound_datum_list range_datum_list
  %type <defelt>		hash_partbound_elem
  
  /*
--- 581,587 ----
  %type <partelem>	part_elem
  %type <list>		part_params
  %type <partboundspec> PartitionBoundSpec
! %type <list>		hash_partbound
  %type <defelt>		hash_partbound_elem
  
  /*
*************** PartitionBoundSpec:
*** 2739,2745 ****
  				}
  
  			/* a LIST partition */
! 			| FOR VALUES IN_P '(' partbound_datum_list ')'
  				{
  					PartitionBoundSpec *n = makeNode(PartitionBoundSpec);
  
--- 2738,2744 ----
  				}
  
  			/* a LIST partition */
! 			| FOR VALUES IN_P '(' expr_list ')'
  				{
  					PartitionBoundSpec *n = makeNode(PartitionBoundSpec);
  
*************** PartitionBoundSpec:
*** 2752,2758 ****
  				}
  
  			/* a RANGE partition */
! 			| FOR VALUES FROM '(' range_datum_list ')' TO '(' range_datum_list ')'
  				{
  					PartitionBoundSpec *n = makeNode(PartitionBoundSpec);
  
--- 2751,2757 ----
  				}
  
  			/* a RANGE partition */
! 			| FOR VALUES FROM '(' expr_list ')' TO '(' expr_list ')'
  				{
  					PartitionBoundSpec *n = makeNode(PartitionBoundSpec);
  
*************** hash_partbound:
*** 2795,2851 ****
  			}
  		;
  
- partbound_datum:
- 			Sconst			{ $$ = makeStringConst($1, @1); }
- 			| NumericOnly	{ $$ = makeAConst($1, @1); }
- 			| NULL_P		{ $$ = makeNullAConst(@1); }
- 		;
- 
- partbound_datum_list:
- 			partbound_datum						{ $$ = list_make1($1); }
- 			| partbound_datum_list ',' partbound_datum
- 												{ $$ = lappend($1, $3); }
- 		;
- 
- range_datum_list:
- 			PartitionRangeDatum					{ $$ = list_make1($1); }
- 			| range_datum_list ',' PartitionRangeDatum
- 												{ $$ = lappend($1, $3); }
- 		;
- 
- PartitionRangeDatum:
- 			MINVALUE
- 				{
- 					PartitionRangeDatum *n = makeNode(PartitionRangeDatum);
- 
- 					n->kind = PARTITION_RANGE_DATUM_MINVALUE;
- 					n->value = NULL;
- 					n->location = @1;
- 
- 					$$ = (Node *) n;
- 				}
- 			| MAXVALUE
- 				{
- 					PartitionRangeDatum *n = makeNode(PartitionRangeDatum);
- 
- 					n->kind = PARTITION_RANGE_DATUM_MAXVALUE;
- 					n->value = NULL;
- 					n->location = @1;
- 
- 					$$ = (Node *) n;
- 				}
- 			| partbound_datum
- 				{
- 					PartitionRangeDatum *n = makeNode(PartitionRangeDatum);
- 
- 					n->kind = PARTITION_RANGE_DATUM_VALUE;
- 					n->value = $1;
- 					n->location = @1;
- 
- 					$$ = (Node *) n;
- 				}
- 		;
- 
  /*****************************************************************************
   *
   *	ALTER TYPE
--- 2794,2799 ----
