Fix some crashes under --disable-float8-byval

pull/869/head
Brian Cloutier 2016-10-19 17:57:30 +03:00
parent f629f6c632
commit 6f4e53a5c3
2 changed files with 2 additions and 2 deletions

View File

@ -291,7 +291,7 @@ master_create_distributed_table(PG_FUNCTION_ARGS)
CharGetDatum(distributionMethod);
newValues[Anum_pg_dist_partition_partkey - 1] =
CStringGetTextDatum(distributionKeyString);
newValues[Anum_pg_dist_partition_colocationid - 1] = INVALID_COLOCATION_ID;
newValues[Anum_pg_dist_partition_colocationid - 1] = Int64GetDatum(INVALID_COLOCATION_ID);
newValues[Anum_pg_dist_partition_repmodel - 1] = CharGetDatum(replicationModel);
newTuple = heap_form_tuple(RelationGetDescr(pgDistPartition), newValues, newNulls);

View File

@ -461,7 +461,7 @@ DeleteNodeRow(char *nodeName, int32 nodePort)
ScanKeyInit(&scanKey[0], Anum_pg_dist_node_nodename,
BTEqualStrategyNumber, F_TEXTEQ, CStringGetTextDatum(nodeName));
ScanKeyInit(&scanKey[1], Anum_pg_dist_node_nodeport,
BTEqualStrategyNumber, F_INT8EQ, Int32GetDatum(nodePort));
BTEqualStrategyNumber, F_INT4EQ, Int32GetDatum(nodePort));
heapScan = systable_beginscan(pgDistNode, InvalidOid, indexOK,
NULL, scanKeyCount, scanKey);