Small improvement to get_base_rel_indexes() - Mailing list pgsql-hackers

From David Rowley
Subject Small improvement to get_base_rel_indexes()
Date
Msg-id CAKJS1f__ObP8T=eRkAqJ5iik47QtDv_B5FrAkLkUsPOcO8L66w@mail.gmail.com
Whole thread Raw
Responses Re: Small improvement to get_base_rel_indexes()  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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
Attachment

pgsql-hackers by date:

Previous
From: Petr Jelinek
Date:
Subject: Re: Test code is worth the space
Next
From: Michael Paquier
Date:
Subject: Re: replication slot restart_lsn initialization