OSDN Git Service

Remove extra copying of TupleDescs for heap_create_with_catalog
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 17 Jun 2011 13:43:32 +0000 (09:43 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 20 Jun 2011 14:50:23 +0000 (10:50 -0400)
commita40a5d9468a5f9f11d355ebf07f7741f5c267588
treef387f43fb3430f2c10715fae92c85b6d85f90917
parentbddc35ac664bc16a8953d0d46bf85e80b78bc493
Remove extra copying of TupleDescs for heap_create_with_catalog

Some callers were creating copies of tuple descriptors to pass to that
function, stating in code comments that it was necessary because it
modified the passed descriptor.  Code inspection reveals this not to be
true, and indeed not all callers are passing copies in the first place.
So remove the extra ones and the misleading comments about this behavior
as well.
src/backend/commands/cluster.c
src/backend/executor/execMain.c