pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Relax overly strict sanity check for upgraded ancient databases 6+ messages / 1 participants [nested] [flat]
* pgsql: Relax overly strict sanity check for upgraded ancient databases @ 2018-03-01 21:11 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2018-03-01 21:11 UTC (permalink / raw) To: pgsql-committers Relax overly strict sanity check for upgraded ancient databases Commit 4800f16a7ad0 added some sanity checks to ensure we don't accidentally corrupt data, but in one of them we failed to consider the effects of a database upgraded from 9.2 or earlier, where a tuple exclusively locked prior to the upgrade has a slightly different bit pattern. Fix that by using the macro that we fixed in commit 74ebba84aeb6 for similar situations. Reported-by: Alexandre Garcia Reviewed-by: Andres Freund Discussion: https://postgr.es/m/CAPYLKR6yxV4=pfW0Gwij7aPNiiPx+3ib4USVYnbuQdUtmkMaEA@mail.gmail.com Andres suspects that this bug may have wider ranging consequences, but I couldn't find anything. Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0ddaaa4cf4ff6e200767daf831e4cd955bafaa61 Modified Files -------------- src/backend/access/heap/heapam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Relax overly strict sanity check for upgraded ancient databases @ 2018-03-01 21:11 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2018-03-01 21:11 UTC (permalink / raw) To: pgsql-committers Relax overly strict sanity check for upgraded ancient databases Commit 4800f16a7ad0 added some sanity checks to ensure we don't accidentally corrupt data, but in one of them we failed to consider the effects of a database upgraded from 9.2 or earlier, where a tuple exclusively locked prior to the upgrade has a slightly different bit pattern. Fix that by using the macro that we fixed in commit 74ebba84aeb6 for similar situations. Reported-by: Alexandre Garcia Reviewed-by: Andres Freund Discussion: https://postgr.es/m/CAPYLKR6yxV4=pfW0Gwij7aPNiiPx+3ib4USVYnbuQdUtmkMaEA@mail.gmail.com Andres suspects that this bug may have wider ranging consequences, but I couldn't find anything. Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3ee23834ed48eaada0f4ae761ad7945b922a31ed Modified Files -------------- src/backend/access/heap/heapam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Relax overly strict sanity check for upgraded ancient databases @ 2018-03-01 21:11 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2018-03-01 21:11 UTC (permalink / raw) To: pgsql-committers Relax overly strict sanity check for upgraded ancient databases Commit 4800f16a7ad0 added some sanity checks to ensure we don't accidentally corrupt data, but in one of them we failed to consider the effects of a database upgraded from 9.2 or earlier, where a tuple exclusively locked prior to the upgrade has a slightly different bit pattern. Fix that by using the macro that we fixed in commit 74ebba84aeb6 for similar situations. Reported-by: Alexandre Garcia Reviewed-by: Andres Freund Discussion: https://postgr.es/m/CAPYLKR6yxV4=pfW0Gwij7aPNiiPx+3ib4USVYnbuQdUtmkMaEA@mail.gmail.com Andres suspects that this bug may have wider ranging consequences, but I couldn't find anything. Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/650f3863f45304934b3d98aa1b4175b5ddf1b092 Modified Files -------------- src/backend/access/heap/heapam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Relax overly strict sanity check for upgraded ancient databases @ 2018-03-01 21:11 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2018-03-01 21:11 UTC (permalink / raw) To: pgsql-committers Relax overly strict sanity check for upgraded ancient databases Commit 4800f16a7ad0 added some sanity checks to ensure we don't accidentally corrupt data, but in one of them we failed to consider the effects of a database upgraded from 9.2 or earlier, where a tuple exclusively locked prior to the upgrade has a slightly different bit pattern. Fix that by using the macro that we fixed in commit 74ebba84aeb6 for similar situations. Reported-by: Alexandre Garcia Reviewed-by: Andres Freund Discussion: https://postgr.es/m/CAPYLKR6yxV4=pfW0Gwij7aPNiiPx+3ib4USVYnbuQdUtmkMaEA@mail.gmail.com Andres suspects that this bug may have wider ranging consequences, but I couldn't find anything. Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/491bbc36ea8f206dd0e03687b4d6a773be43a5f9 Modified Files -------------- src/backend/access/heap/heapam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Relax overly strict sanity check for upgraded ancient databases @ 2018-03-01 21:11 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2018-03-01 21:11 UTC (permalink / raw) To: pgsql-committers Relax overly strict sanity check for upgraded ancient databases Commit 4800f16a7ad0 added some sanity checks to ensure we don't accidentally corrupt data, but in one of them we failed to consider the effects of a database upgraded from 9.2 or earlier, where a tuple exclusively locked prior to the upgrade has a slightly different bit pattern. Fix that by using the macro that we fixed in commit 74ebba84aeb6 for similar situations. Reported-by: Alexandre Garcia Reviewed-by: Andres Freund Discussion: https://postgr.es/m/CAPYLKR6yxV4=pfW0Gwij7aPNiiPx+3ib4USVYnbuQdUtmkMaEA@mail.gmail.com Andres suspects that this bug may have wider ranging consequences, but I couldn't find anything. Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/aad956adaf492245f64493a9d3fad949252a1d2b Modified Files -------------- src/backend/access/heap/heapam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Relax overly strict sanity check for upgraded ancient databases @ 2018-03-01 21:11 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 6+ messages in thread From: Alvaro Herrera @ 2018-03-01 21:11 UTC (permalink / raw) To: pgsql-committers Relax overly strict sanity check for upgraded ancient databases Commit 4800f16a7ad0 added some sanity checks to ensure we don't accidentally corrupt data, but in one of them we failed to consider the effects of a database upgraded from 9.2 or earlier, where a tuple exclusively locked prior to the upgrade has a slightly different bit pattern. Fix that by using the macro that we fixed in commit 74ebba84aeb6 for similar situations. Reported-by: Alexandre Garcia Reviewed-by: Andres Freund Discussion: https://postgr.es/m/CAPYLKR6yxV4=pfW0Gwij7aPNiiPx+3ib4USVYnbuQdUtmkMaEA@mail.gmail.com Andres suspects that this bug may have wider ranging consequences, but I couldn't find anything. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/477ad05e165c15dc9241376f0fce9664063cff46 Modified Files -------------- src/backend/access/heap/heapam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-03-01 21:11 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-03-01 21:11 pgsql: Relax overly strict sanity check for upgraded ancient databases Alvaro Herrera <alvherre@alvh.no-ip.org> 2018-03-01 21:11 pgsql: Relax overly strict sanity check for upgraded ancient databases Alvaro Herrera <alvherre@alvh.no-ip.org> 2018-03-01 21:11 pgsql: Relax overly strict sanity check for upgraded ancient databases Alvaro Herrera <alvherre@alvh.no-ip.org> 2018-03-01 21:11 pgsql: Relax overly strict sanity check for upgraded ancient databases Alvaro Herrera <alvherre@alvh.no-ip.org> 2018-03-01 21:11 pgsql: Relax overly strict sanity check for upgraded ancient databases Alvaro Herrera <alvherre@alvh.no-ip.org> 2018-03-01 21:11 pgsql: Relax overly strict sanity check for upgraded ancient databases Alvaro Herrera <alvherre@alvh.no-ip.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