Re: Invalid result from hash_page_items function

Masahiko Sawada <sawada.mshk@gmail.com>

From: Masahiko Sawada <sawada.mshk@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2018-01-29T02:25:50Z
Lists: pgsql-hackers
On Sat, Jan 27, 2018 at 12:04 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> On Thu, Jan 25, 2018 at 4:50 PM, Masahiko Sawada <sawada.mshk@gmail.com> wrote:
>> This appears at PostgreSQL 10 and current HEAD. The cause of this
>> seems that hash_page_items allocates the memory space for the page
>> before switching memory context. AFAICS there is no similar problem in
>> pageinspect contrib module. Attached patch fixes it.
>
> Committed and back-patched.
>

Thank you!

Regards,

--
Masahiko Sawada
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


Commits

  1. pageinspect: Fix use of wrong memory context by hash_page_items.