mirror of https://github.com/citusdata/citus.git
Fix some crashes under --disable-float8-byval
parent
f629f6c632
commit
6f4e53a5c3
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue