Hi all, In brin_doupdate(line 290), REGBUF_STANDARD is used to register revmap buffer reference in WAL record. But, revmap buffer page doesn't have a standard page layout and it doesn't update pd_upper and pd_lower as well.
Either we should register revmapbuf as following: XLogRegisterBuffer(1, revmapbuf, 0); Or, we can update the pd_upper and pd_lower in brin_page_init() as follows: if (BRIN_IS_REVMAP_PAGE(page)) p->pd_lower = p->upper. To fix this, I've attached a small patch which follows the first approach. -- Thanks & Regards, Kuntal Ghosh EnterpriseDB: http://www.enterprisedb.com
-- Sent via pgsql-hackers mailing list (firstname.lastname@example.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers