Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit?

Поиск
Список
Период
Сортировка
Искать
От
Bharath Rupireddy
Тема
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit?
Дата
Msg-id
CALj2ACWH_SPfJqforhXBU6LxVSBKaasxdEDBNA2bTuFLMK93oQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Mahendra Singh Thalor <mahi6run@gmail.com>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Michael Paquier <michael@paquier.xyz>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Mahendra Singh Thalor <mahi6run@gmail.com>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Michael Paquier <michael@paquier.xyz>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Michael Paquier <michael@paquier.xyz>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Pavel Borisov <pashkin.elfe@gmail.com>
Re: Can we remove extra memset in BloomInitPage, GinInitPage and SpGistInitPage when we have it in PageInit? Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
On Tue, Apr 6, 2021 at 6:09 PM Michael Paquier  wrote:
>
> On Mon, Mar 22, 2021 at 10:58:17AM +0530, Mahendra Singh Thalor wrote:
> > Your changes look to fine me and I am also not getting any failure. I
> > think we should back-patch all the branches.
> >
> > Patch is applying to all the branches(till v95) and there is no failure.
>
> Er, no.  This is just some duplicated code with no extra effect.  I
> have no objection to simplify a bit the whole on readability and
> consistency grounds (will do so tomorrow), including the removal of
> the commented-out memset call in gistinitpage, but this is not
> something that should be backpatched.

+1 to not backport this patch because it's not a bug or not even a
critical issue. Having said that removal of these unnecessary memsets
would not only be better for readability and consistency but also can
reduce few extra function call costs(although minimal) while adding
new index pages.

Please find the v3 patch that removed the commented-out memset call in
gistinitpage.

With Regards,
Bharath Rupireddy.
EnterpriseDB: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления
От: Michael Banck
Дата:
От: Bharath Rupireddy
Дата:
FAQ