pgsql: Remove extra copying of TupleDescs for heap_create_with_catalog - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Remove extra copying of TupleDescs for heap_create_with_catalog
Date
Msg-id E1QYfoW-0002vH-9v@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a40a5d9468a5f9f11d355ebf07f7741f5c267588

Modified Files
--------------
src/backend/commands/cluster.c  |    9 +++------
src/backend/executor/execMain.c |    8 +-------
2 files changed, 4 insertions(+), 13 deletions(-)


pgsql-committers by date:

Previous
From: Michael Meskes
Date:
Subject: pgsql: Fixed string in German translation that causes segfault.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix thinko in previous patch for optimizing EXISTS-within-EXISTS