Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6263cd commit 096f1ccCopy full SHA for 096f1cc
src/backend/catalog/partition.c
@@ -454,6 +454,7 @@ RelationBuildPartitionDesc(Relation rel)
454
palloc0(sizeof(PartitionBoundInfoData));
455
boundinfo->strategy = key->strategy;
456
boundinfo->ndatums = ndatums;
457
+ boundinfo->null_index = -1;
458
boundinfo->datums = (Datum **) palloc0(ndatums * sizeof(Datum *));
459
460
/* Initialize mapping array with invalid values */
@@ -503,8 +504,6 @@ RelationBuildPartitionDesc(Relation rel)
503
504
mapping[null_index] = next_index++;
505
boundinfo->null_index = mapping[null_index];
506
}
- else
507
- boundinfo->null_index = -1;
508
509
/* All partition must now have a valid mapping */
510
Assert(next_index == nparts);
0 commit comments