Remove extra copying of TupleDescs for heap_create_with_catalog

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: a40a5d9468a5f9f11d355ebf07f7741f5c267588
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2011-06-20T14:50:23Z
Releases: 9.2.0
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.

Files

PathChange+/−
src/backend/commands/cluster.c modified +3 −6
src/backend/executor/execMain.c modified +1 −7