pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix `make installcheck` for serializable transactions. 3+ messages / 1 participants [nested] [flat]
* pgsql: Fix `make installcheck` for serializable transactions. @ 2015-08-06 15:51 Kevin Grittner <kgrittn@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Kevin Grittner @ 2015-08-06 15:51 UTC (permalink / raw) To: pgsql-committers Fix `make installcheck` for serializable transactions. Commit e5550d5fec66aa74caad1f79b79826ec64898688 added some new tests for ALTER TABLE which involved table scans. When default_transaction_isolation = 'serializable' these acquire relation-level SIReadLocks. The test results didn't cope with that. Add SIReadLock as the minimum lock level for purposes of these tests. This could also be fixed by excluding this type of lock from the my_locks view, but it would be a bug for SIReadLock to show up for a relation which was not otherwise locked, so do it this way to allow that sort of condition to cause a regression test failure. There is some question whether we could avoid taking SIReadLocks during these operations, but confirming the safety of that and figuring out how to avoid the locks is not trivial, and would be a separate patch. Backpatch to 9.4 where the new tests were added. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/253de7e1eb9abbcf57e6c229a8a38abd6455c7de Modified Files -------------- src/test/regress/expected/alter_table.out | 3 ++- src/test/regress/sql/alter_table.sql | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix `make installcheck` for serializable transactions. @ 2015-08-06 15:51 Kevin Grittner <kgrittn@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Kevin Grittner @ 2015-08-06 15:51 UTC (permalink / raw) To: pgsql-committers Fix `make installcheck` for serializable transactions. Commit e5550d5fec66aa74caad1f79b79826ec64898688 added some new tests for ALTER TABLE which involved table scans. When default_transaction_isolation = 'serializable' these acquire relation-level SIReadLocks. The test results didn't cope with that. Add SIReadLock as the minimum lock level for purposes of these tests. This could also be fixed by excluding this type of lock from the my_locks view, but it would be a bug for SIReadLock to show up for a relation which was not otherwise locked, so do it this way to allow that sort of condition to cause a regression test failure. There is some question whether we could avoid taking SIReadLocks during these operations, but confirming the safety of that and figuring out how to avoid the locks is not trivial, and would be a separate patch. Backpatch to 9.4 where the new tests were added. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/680b82eea87291e7e14c03a647de654a65617f04 Modified Files -------------- src/test/regress/expected/alter_table.out | 3 ++- src/test/regress/sql/alter_table.sql | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Fix `make installcheck` for serializable transactions. @ 2015-08-06 15:51 Kevin Grittner <kgrittn@postgresql.org> 0 siblings, 0 replies; 3+ messages in thread From: Kevin Grittner @ 2015-08-06 15:51 UTC (permalink / raw) To: pgsql-committers Fix `make installcheck` for serializable transactions. Commit e5550d5fec66aa74caad1f79b79826ec64898688 added some new tests for ALTER TABLE which involved table scans. When default_transaction_isolation = 'serializable' these acquire relation-level SIReadLocks. The test results didn't cope with that. Add SIReadLock as the minimum lock level for purposes of these tests. This could also be fixed by excluding this type of lock from the my_locks view, but it would be a bug for SIReadLock to show up for a relation which was not otherwise locked, so do it this way to allow that sort of condition to cause a regression test failure. There is some question whether we could avoid taking SIReadLocks during these operations, but confirming the safety of that and figuring out how to avoid the locks is not trivial, and would be a separate patch. Backpatch to 9.4 where the new tests were added. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/543e2057fb0e89d64d7250f1afa57ac8305b85a4 Modified Files -------------- src/test/regress/expected/alter_table.out | 3 ++- src/test/regress/sql/alter_table.sql | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2015-08-06 15:51 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-08-06 15:51 pgsql: Fix `make installcheck` for serializable transactions. Kevin Grittner <kgrittn@postgresql.org> 2015-08-06 15:51 pgsql: Fix `make installcheck` for serializable transactions. Kevin Grittner <kgrittn@postgresql.org> 2015-08-06 15:51 pgsql: Fix `make installcheck` for serializable transactions. Kevin Grittner <kgrittn@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