pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Change overly strict Assert in TransactionGroupUpdateXidStatus. 3+ messages / 1 participants [nested] [flat]
* pgsql: Change overly strict Assert in TransactionGroupUpdateXidStatus. @ 2019-12-17 04:24 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Amit Kapila @ 2019-12-17 04:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Change overly strict Assert in TransactionGroupUpdateXidStatus. This Assert thought that an overflowed transaction can never get registered for the group update. But that is not true, because even when the number of children for a transaction got reduced, the overflow flag is not changed. And, for group update, we only care about the current number of children for a transaction that is being committed. Based on comments by Andres Freund, remove a redundant Assert in TransactionIdSetPageStatus as we already had a static Assert for the same condition a few lines earlier. Reported-by: Vignesh C Author: Dilip Kumar Reviewed-by: Amit Kapila Backpatch-through: 11 Discussion: https://postgr.es/m/CAFiTN-s5=uJw-Z6JC9gcqtBSjXsrHnU63PXBrA=pnBjqnkm5UA@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/af3290f5e790dcd1be3ac209be1805626f4ebac8 Modified Files -------------- src/backend/access/transam/clog.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Change overly strict Assert in TransactionGroupUpdateXidStatus. @ 2019-12-17 04:24 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Amit Kapila @ 2019-12-17 04:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Change overly strict Assert in TransactionGroupUpdateXidStatus. This Assert thought that an overflowed transaction can never get registered for the group update. But that is not true, because even when the number of children for a transaction got reduced, the overflow flag is not changed. And, for group update, we only care about the current number of children for a transaction that is being committed. Based on comments by Andres Freund, remove a redundant Assert in TransactionIdSetPageStatus as we already had a static Assert for the same condition a few lines earlier. Reported-by: Vignesh C Author: Dilip Kumar Reviewed-by: Amit Kapila Backpatch-through: 11 Discussion: https://postgr.es/m/CAFiTN-s5=uJw-Z6JC9gcqtBSjXsrHnU63PXBrA=pnBjqnkm5UA@mail.gmail.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0eac283bfc8b893d91a1ecf184d2c8373a1ed906 Modified Files -------------- src/backend/access/transam/clog.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Change overly strict Assert in TransactionGroupUpdateXidStatus. @ 2019-12-17 04:24 Amit Kapila <akapila@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Amit Kapila @ 2019-12-17 04:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Change overly strict Assert in TransactionGroupUpdateXidStatus. This Assert thought that an overflowed transaction can never get registered for the group update. But that is not true, because even when the number of children for a transaction got reduced, the overflow flag is not changed. And, for group update, we only care about the current number of children for a transaction that is being committed. Based on comments by Andres Freund, remove a redundant Assert in TransactionIdSetPageStatus as we already had a static Assert for the same condition a few lines earlier. Reported-by: Vignesh C Author: Dilip Kumar Reviewed-by: Amit Kapila Backpatch-through: 11 Discussion: https://postgr.es/m/CAFiTN-s5=uJw-Z6JC9gcqtBSjXsrHnU63PXBrA=pnBjqnkm5UA@mail.gmail.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/fc68a10b573faababd3a7d2b3f1f703a8ae76a44 Modified Files -------------- src/backend/access/transam/clog.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-12-17 04:24 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-12-17 04:24 pgsql: Change overly strict Assert in TransactionGroupUpdateXidStatus. Amit Kapila <akapila@postgresql.org> 2019-12-17 04:24 pgsql: Change overly strict Assert in TransactionGroupUpdateXidStatus. Amit Kapila <akapila@postgresql.org> 2019-12-17 04:24 pgsql: Change overly strict Assert in TransactionGroupUpdateXidStatus. 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