pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Attach FPI to the first record after full_page_writes is turned
5+ messages / 1 participants
[nested] [flat]

* pgsql: Attach FPI to the first record after full_page_writes is turned
@ 2018-09-13 10:58 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Amit Kapila @ 2018-09-13 10:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Attach FPI to the first record after full_page_writes is turned on.

XLogInsert fails to attach a required FPI to the first record after
full_page_writes is turned on by the last checkpoint.  This bug got
introduced in 9.5 due to code rearrangement in commits 2c03216d83 and
2076db2aea.  Fix it by ensuring that XLogInsertRecord performs a
recomputation when the given record is generated with FPW as off but
found that the flag has been turned on while actually inserting the
record.

Reported-by: Kyotaro Horiguchi
Author: Kyotaro Horiguchi
Reviewed-by: Amit Kapila
Backpatch-through: 9.5 where this problem was introduced
Discussion: https://postgr.es/m/20180420.151043.74298611.horiguchi.kyotaro@lab.ntt.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bc153c941d2ec4e605b1e79be9478abc3d166a18

Modified Files
--------------
src/backend/access/transam/xlog.c | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



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

* pgsql: Attach FPI to the first record after full_page_writes is turned
@ 2018-09-13 10:58 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Amit Kapila @ 2018-09-13 10:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Attach FPI to the first record after full_page_writes is turned on.

XLogInsert fails to attach a required FPI to the first record after
full_page_writes is turned on by the last checkpoint.  This bug got
introduced in 9.5 due to code rearrangement in commits 2c03216d83 and
2076db2aea.  Fix it by ensuring that XLogInsertRecord performs a
recomputation when the given record is generated with FPW as off but
found that the flag has been turned on while actually inserting the
record.

Reported-by: Kyotaro Horiguchi
Author: Kyotaro Horiguchi
Reviewed-by: Amit Kapila
Backpatch-through: 9.5 where this problem was introduced
Discussion: https://postgr.es/m/20180420.151043.74298611.horiguchi.kyotaro@lab.ntt.co.jp

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ff4220ead2c833fb36e9709ab2568c6ac43e9d3b

Modified Files
--------------
src/backend/access/transam/xlog.c | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



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

* pgsql: Attach FPI to the first record after full_page_writes is turned
@ 2018-09-13 10:58 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Amit Kapila @ 2018-09-13 10:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Attach FPI to the first record after full_page_writes is turned on.

XLogInsert fails to attach a required FPI to the first record after
full_page_writes is turned on by the last checkpoint.  This bug got
introduced in 9.5 due to code rearrangement in commits 2c03216d83 and
2076db2aea.  Fix it by ensuring that XLogInsertRecord performs a
recomputation when the given record is generated with FPW as off but
found that the flag has been turned on while actually inserting the
record.

Reported-by: Kyotaro Horiguchi
Author: Kyotaro Horiguchi
Reviewed-by: Amit Kapila
Backpatch-through: 9.5 where this problem was introduced
Discussion: https://postgr.es/m/20180420.151043.74298611.horiguchi.kyotaro@lab.ntt.co.jp

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ede7d8192ca3d1f731d34fb82fdcfc3308b4355f

Modified Files
--------------
src/backend/access/transam/xlog.c | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



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

* pgsql: Attach FPI to the first record after full_page_writes is turned
@ 2018-09-13 10:58 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Amit Kapila @ 2018-09-13 10:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Attach FPI to the first record after full_page_writes is turned on.

XLogInsert fails to attach a required FPI to the first record after
full_page_writes is turned on by the last checkpoint.  This bug got
introduced in 9.5 due to code rearrangement in commits 2c03216d83 and
2076db2aea.  Fix it by ensuring that XLogInsertRecord performs a
recomputation when the given record is generated with FPW as off but
found that the flag has been turned on while actually inserting the
record.

Reported-by: Kyotaro Horiguchi
Author: Kyotaro Horiguchi
Reviewed-by: Amit Kapila
Backpatch-through: 9.5 where this problem was introduced
Discussion: https://postgr.es/m/20180420.151043.74298611.horiguchi.kyotaro@lab.ntt.co.jp

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fd4f2af774db6a978130da88e94e7425c07651d5

Modified Files
--------------
src/backend/access/transam/xlog.c | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



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

* pgsql: Attach FPI to the first record after full_page_writes is turned
@ 2018-09-13 10:58 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Amit Kapila @ 2018-09-13 10:58 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Attach FPI to the first record after full_page_writes is turned on.

XLogInsert fails to attach a required FPI to the first record after
full_page_writes is turned on by the last checkpoint.  This bug got
introduced in 9.5 due to code rearrangement in commits 2c03216d83 and
2076db2aea.  Fix it by ensuring that XLogInsertRecord performs a
recomputation when the given record is generated with FPW as off but
found that the flag has been turned on while actually inserting the
record.

Reported-by: Kyotaro Horiguchi
Author: Kyotaro Horiguchi
Reviewed-by: Amit Kapila
Backpatch-through: 9.5 where this problem was introduced
Discussion: https://postgr.es/m/20180420.151043.74298611.horiguchi.kyotaro@lab.ntt.co.jp

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/47a589c1fe35176b38ffcdb2a95b4fa2ef45add2

Modified Files
--------------
src/backend/access/transam/xlog.c | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



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


end of thread, other threads:[~2018-09-13 10:58 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13 10:58 pgsql: Attach FPI to the first record after full_page_writes is turned Amit Kapila <akapila@postgresql.org>
2018-09-13 10:58 pgsql: Attach FPI to the first record after full_page_writes is turned Amit Kapila <akapila@postgresql.org>
2018-09-13 10:58 pgsql: Attach FPI to the first record after full_page_writes is turned Amit Kapila <akapila@postgresql.org>
2018-09-13 10:58 pgsql: Attach FPI to the first record after full_page_writes is turned Amit Kapila <akapila@postgresql.org>
2018-09-13 10:58 pgsql: Attach FPI to the first record after full_page_writes is turned 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