Re: inconsistent page found on STANDBY server

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, tushar <tushar(dot)ahuja(at)enterprisedb(dot)com>
Subject: Re: inconsistent page found on STANDBY server
Date: 2017-03-30 08:53:57
Message-ID: CAA4eK1+zRGZtysB4J6eLir+fYYqT+C=m_YMyJ6kQzBj2ffuw-w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 30, 2017 at 1:55 PM, Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2017-03-30 09:02:51 Re: Partitioning vs ON CONFLICT
Previous Message Masahiko Sawada 2017-03-30 08:39:17 Re: ANALYZE command progress checker