diff options
author | Robert Haas <rhaas@postgresql.org> | 2019-03-25 11:23:52 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2019-03-25 11:28:06 -0400 |
commit | 5857be907d5178673ce077ba71562f3c4297ee32 (patch) | |
tree | 43e0a4dfc86de5232bb83271b4020733ffc3087c /src/backend/nodes/copyfuncs.c | |
parent | 25ee70511ec2ccbef0ad3fe64875a4d552cdcd50 (diff) |
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
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
-rw-r--r-- | src/backend/nodes/copyfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index d97781e1cbe..04cc15606d2 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -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); |