pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: During the split, set checksum on an empty hash index page.
3+ messages / 1 participants
[nested] [flat]

* pgsql: During the split, set checksum on an empty hash index page.
@ 2018-09-04 03:25  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Amit Kapila @ 2018-09-04 03:25 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

During the split, set checksum on an empty hash index page.

On a split, we allocate a new splitpoint's worth of bucket pages wherein
we initialize the last page with zeros which is fine, but we forgot to set
the checksum for that last page.

We decided to back-patch this fix till 10 because we don't have an easy
way to test it in prior versions.  Another reason is that the hash-index
code is changed heavily in 10, so it is not advisable to push the fix
without testing it in prior versions.

Author: Amit Kapila
Reviewed-by: Yugo Nagata
Backpatch-through: 10
Discussion: https://postgr.es/m/5d03686d-727c-dbf8-0064-bf8b97ffe850@2ndquadrant.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/16e7bcfac57fc21dd2124b39132c58971e41448a

Modified Files
--------------
src/backend/access/hash/hashpage.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: During the split, set checksum on an empty hash index page.
@ 2018-09-04 03:25  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Amit Kapila @ 2018-09-04 03:25 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

During the split, set checksum on an empty hash index page.

On a split, we allocate a new splitpoint's worth of bucket pages wherein
we initialize the last page with zeros which is fine, but we forgot to set
the checksum for that last page.

We decided to back-patch this fix till 10 because we don't have an easy
way to test it in prior versions.  Another reason is that the hash-index
code is changed heavily in 10, so it is not advisable to push the fix
without testing it in prior versions.

Author: Amit Kapila
Reviewed-by: Yugo Nagata
Backpatch-through: 10
Discussion: https://postgr.es/m/5d03686d-727c-dbf8-0064-bf8b97ffe850@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7c9e19ca9a4de6eb98582548ec6dd0d83fc5ac2d

Modified Files
--------------
src/backend/access/hash/hashpage.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: During the split, set checksum on an empty hash index page.
@ 2018-09-04 03:25  Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Amit Kapila @ 2018-09-04 03:25 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

During the split, set checksum on an empty hash index page.

On a split, we allocate a new splitpoint's worth of bucket pages wherein
we initialize the last page with zeros which is fine, but we forgot to set
the checksum for that last page.

We decided to back-patch this fix till 10 because we don't have an easy
way to test it in prior versions.  Another reason is that the hash-index
code is changed heavily in 10, so it is not advisable to push the fix
without testing it in prior versions.

Author: Amit Kapila
Reviewed-by: Yugo Nagata
Backpatch-through: 10
Discussion: https://postgr.es/m/5d03686d-727c-dbf8-0064-bf8b97ffe850@2ndquadrant.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3b7a96a619f78f80b4a470a0dcde4c92b5b7141f

Modified Files
--------------
src/backend/access/hash/hashpage.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-09-04 03:25 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-04 03:25 pgsql: During the split, set checksum on an empty hash index page. Amit Kapila <akapila@postgresql.org>
2018-09-04 03:25 pgsql: During the split, set checksum on an empty hash index page. Amit Kapila <akapila@postgresql.org>
2018-09-04 03:25 pgsql: During the split, set checksum on an empty hash index page. Amit Kapila <akapila@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox