Re: inconsistent page found on STANDBY server - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: inconsistent page found on STANDBY server
Date
Msg-id CAA4eK1+zRGZtysB4J6eLir+fYYqT+C=m_YMyJ6kQzBj2ffuw-w@mail.gmail.com
Whole thread Raw
List pgsql-hackers
On Thu, Mar 30, 2017 at 1:55 PM, Ashutosh Sharma <ashu.coek88@gmail.com> wrote:
>
> RCA:
> ====
> After debugging the hash index code for deletion, I could find that
> while registering data for xlog record 'XLOG_HASH_UPDATE_META_PAGE' we
> are not passing the correct length of data being registered and
> therefore, data (xl_hash_update_meta_page) is not completely recorded
> into the wal record.
>
> Fix:
> ===
> Attached patch fixes this issue.
>

The fix looks good to me.  I have scanned the hash index code to see
if there is any other similar problem, but couldn't find any.

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: ANALYZE command progress checker
Next
From: Ashutosh Bapat
Date:
Subject: Re: Partitioning vs ON CONFLICT