From RelationBuildPartitionDesc we can see that:
if (nparts > 0) { PartitionBoundInfo boundinfo; int *mapping; int next_index = 0; result->oids = (Oid *) palloc0(nparts * sizeof(Oid));
The cause was oids field was not assigned due to nparts being 0.This is verified by additional logging added just prior to the memcpy call.
I want to get the community's opinion on whether a null check should be added prior to the memcpy() call.
Cheers
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных