mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03: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:
@@ -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++)
|
||||
|
Reference in New Issue
Block a user