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

Commitde3e8e1

Browse files
committed
closer look at serializable lock
1 parent39f73f5 commitde3e8e1

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

‎runtest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ sleep 3
2424

2525
cd src/test/regress
2626

27-
./pg_regress --inputdir=. --bindir='../../../tmp_install/bin' --dlpath=. --schedule=./parallel_schedule --use-existing
27+
#./pg_regress --inputdir=. --bindir='../../../tmp_install/bin' --dlpath=. --schedule=./parallel_schedule --use-existing
2828

29-
#./pg_regress --inputdir=. --bindir='../../../tmp_install/bin' --dlpath=. --schedule=./serial_schedule --use-existing
29+
./pg_regress --inputdir=. --bindir='../../../tmp_install/bin' --dlpath=. --schedule=./serial_schedule --use-existing
3030

3131
cd ../../..
3232

‎src/test/regress/sql/boolean.sql

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
CREATETABLEserializable_update_tab (
2+
idint,
3+
fillertext,
4+
descriptiontext
5+
);
6+
CREATETABLEwritetest (aint);
7+
8+
9+
BEGIN;
10+
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
11+
UPDATE serializable_update_tabSET description='no no', id=1WHERE id=1;
12+
COMMIT;
13+
14+
15+
BEGIN;
16+
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE, READ ONLY, DEFERRABLE;-- ok
17+
SELECT*FROM writetest;-- ok
18+
SET TRANSACTION READ WRITE;--fail
19+
COMMIT;
20+
21+
122
--
223
-- BOOLEAN
324
--

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp