Re: Invalid result from hash_page_items function

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Invalid result from hash_page_items function
Date: 2018-01-26 15:04:14
Message-ID: CA+TgmobvdEyPhLz6oo-GiZ6tO=NJPyBAkMBHwQ4ozXx7j_UJyQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jan 25, 2018 at 4:50 PM, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)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.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-01-26 15:21:33 Re: Updating timezone data to 2018c
Previous Message Andreas Karlsson 2018-01-26 14:54:49 Re: \describe*