Small improvement to get_base_rel_indexes()

Поиск
Список
Период
Сортировка
От David Rowley
Тема Small improvement to get_base_rel_indexes()
Дата
Msg-id CAKJS1f__ObP8T=eRkAqJ5iik47QtDv_B5FrAkLkUsPOcO8L66w@mail.gmail.com
обсуждение исходный текст
Ответы Re: Small improvement to get_base_rel_indexes()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Attached is a small patch which improves the way get_base_rel_indexes() works.

The current version creates a new bitmapset on each recursion level then bms_joins() to the one on the next level up each time. I understand that this will patch will have about a 0 net performance improvement, but I thought I'd post anyway as:

1. It removes 5 lines of code.
2. It's a better example to leave in the code.

Is it worth applying?

Regards

David Rowley
--
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services
Вложения

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

Предыдущее
От: Petr Jelinek
Дата:
Сообщение: Re: Test code is worth the space
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: replication slot restart_lsn initialization