[PATCH] Cleanup: use heap_open/heap_close consistently

Поиск
Список
Период
Сортировка
От Marti Raudsepp
Тема [PATCH] Cleanup: use heap_open/heap_close consistently
Дата
Msg-id CABRT9RDK9ZJsXaG1rXWB3n5oorEtThiMQe_GQ2rYtwRRS3=ZFg@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PATCH] Cleanup: use heap_open/heap_close consistently  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hi,

Here's a tiny cleanup: currently get_tables_to_cluster uses
heap_open() to open the relation, but then closes it with
relation_close(). Currently relation_close=heap_close, but it seems
like good idea to be consistent -- in case these functions need to
diverge in the future.

Regards,
Marti

diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index 349d130..a10ec2d 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -1551,7 +1551,7 @@ get_tables_to_cluster(MemoryContext cluster_context)
     }
     heap_endscan(scan);

-    relation_close(indRelation, AccessShareLock);
+    heap_close(indRelation, AccessShareLock);

     return rvs;
 }

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Miroslav Šimulčík
Дата:
Сообщение: restrict modification of column values in BR triggers
Следующее
От: Asif Rehman
Дата:
Сообщение: Re: Patch to allow domains over composite types