Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit253de7e

Browse files
committed
Fixmake installcheck for serializable transactions.
Commite5550d5 added some newtests for ALTER TABLE which involved table scans. Whendefault_transaction_isolation = 'serializable' these acquirerelation-level SIReadLocks. The test results didn't cope withthat. Add SIReadLock as the minimum lock level for purposes ofthese tests.This could also be fixed by excluding this type of lock from themy_locks view, but it would be a bug for SIReadLock to show up fora relation which was not otherwise locked, so do it this way toallow that sort of condition to cause a regression test failure.There is some question whether we could avoid taking SIReadLocksduring these operations, but confirming the safety of that andfiguring out how to avoid the locks is not trivial, and would bea separate patch.Backpatch to 9.4 where the new tests were added.
1 parent3a14575 commit253de7e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎src/test/regress/expected/alter_table.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,8 @@ DROP TABLE check_fk_presence_1, check_fk_presence_2;
18421842
drop type lockmodes;
18431843
ERROR: type "lockmodes" does not exist
18441844
create type lockmodes as enum (
1845-
'AccessShareLock'
1845+
'SIReadLock'
1846+
,'AccessShareLock'
18461847
,'RowShareLock'
18471848
,'RowExclusiveLock'
18481849
,'ShareUpdateExclusiveLock'

‎src/test/regress/sql/alter_table.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,8 @@ DROP TABLE check_fk_presence_1, check_fk_presence_2;
12711271
--
12721272
droptype lockmodes;
12731273
createtypelockmodesas enum (
1274-
'AccessShareLock'
1274+
'SIReadLock'
1275+
,'AccessShareLock'
12751276
,'RowShareLock'
12761277
,'RowExclusiveLock'
12771278
,'ShareUpdateExclusiveLock'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp