pgsql: Remove extra copying of TupleDescs for heap_create_with_catalog

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Remove extra copying of TupleDescs for heap_create_with_catalog
Дата
Msg-id E1QYfoW-0002vH-9v@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Michael Meskes
Дата:
Сообщение: pgsql: Fixed string in German translation that causes segfault.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix thinko in previous patch for optimizing EXISTS-within-EXISTS