| От | Tom Lane |
|---|---|
| Тема | Re: Small patch: fix code duplication in heapam.c |
| Дата | |
| Msg-id | 22609.1458828528@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Small patch: fix code duplication in heapam.c (Aleksander Alekseev <a.alekseev@postgrespro.ru>) |
| Ответы |
Re: Small patch: fix code duplication in heapam.c
|
| Список | pgsql-hackers |
Aleksander Alekseev <a.alekseev@postgrespro.ru> writes:
> I discovered that there is a lot of code duplication in heapam.c.
> In particular relation_openrv and relation_openrv_extended procedures
> and also heap_openrv and heap_openrv_extended procedures are almost the
> same. Here is a patch that fixes this.
As with that other patch to refactor palloc-related stuff, I'm not
convinced that this is an improvement. All that code is hotspot stuff,
and turning it into a pile of nested procedures doesn't seem like it
improves either performance or readability.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера