mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-28 10:21:51 +02:00
Fix use of wrong datatype with sizeof().
OID and int are the same size, but they are not the same thing. David Rowley Discussion: http://postgr.es/m/CAKJS1f_MhS++XngkTvWL9X1v8M5t-0N0B-R465yHQY=TmNV0Ew@mail.gmail.com
This commit is contained in:
parent
25ee70511e
commit
5857be907d
@ -1204,7 +1204,7 @@ _copyPartitionedRelPruneInfo(const PartitionedRelPruneInfo *from)
|
||||
COPY_SCALAR_FIELD(nexprs);
|
||||
COPY_POINTER_FIELD(subplan_map, from->nparts * sizeof(int));
|
||||
COPY_POINTER_FIELD(subpart_map, from->nparts * sizeof(int));
|
||||
COPY_POINTER_FIELD(relid_map, from->nparts * sizeof(int));
|
||||
COPY_POINTER_FIELD(relid_map, from->nparts * sizeof(Oid));
|
||||
COPY_POINTER_FIELD(hasexecparam, from->nexprs * sizeof(bool));
|
||||
COPY_SCALAR_FIELD(do_initial_prune);
|
||||
COPY_SCALAR_FIELD(do_exec_prune);
|
||||
|
@ -475,7 +475,7 @@ make_partitionedrel_pruneinfo(PlannerInfo *root, RelOptInfo *parentrel,
|
||||
*/
|
||||
subplan_map = (int *) palloc(nparts * sizeof(int));
|
||||
subpart_map = (int *) palloc(nparts * sizeof(int));
|
||||
relid_map = (Oid *) palloc(nparts * sizeof(int));
|
||||
relid_map = (Oid *) palloc(nparts * sizeof(Oid));
|
||||
present_parts = NULL;
|
||||
|
||||
for (i = 0; i < nparts; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user