Re: Refactor UnpinBuffer() - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: Refactor UnpinBuffer()
Date
Msg-id CAJ7c6TOi0PcjJJ=Thdy4MZ5esP18tPrFNP3RDUKf_wqwoCwQAQ@mail.gmail.com
Whole thread Raw
In response to Re: Refactor UnpinBuffer()  (Zhang Mingli <zmlpostgres@gmail.com>)
Responses Re: Refactor UnpinBuffer()
List pgsql-hackers
Nathan, Zhang,

Thanks for the review!

> Is it safe to move the call to ResourceOwnerForgetBuffer() to before the
> call to GetPrivateRefCountEntry()? From my quick skim of the code, it
> seems like it should be safe, but I thought I'd ask the question.
>
> Same question, have a look, it doesn’t seem to matter.

Yep, I had some doubts here as well but it seems to be safe.

--
Best regards,
Aleksander Alekseev



pgsql-hackers by date:

Previous
From: Polina Bungina
Date:
Subject: Re: pg_rewind WAL segments deletion pitfall
Next
From: Bharath Rupireddy
Date:
Subject: Re: Avoid memory leaks during base backups