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

Commit3a0939e

Browse files
Update standbycheck test output with new ERROR message changes. No changes
to tests and no changes in accepted server behaviour.
1 parentabeb17c commit3a0939e

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,40 +11,40 @@ commit;
1111
WARNING: there is no transaction in progress
1212
-- SELECT
1313
select * from hs1 FOR SHARE;
14-
ERROR:transaction isread-only
14+
ERROR:cannot execute SELECT FOR SHARE in aread-only transaction
1515
select * from hs1 FOR UPDATE;
16-
ERROR:transaction isread-only
16+
ERROR:cannot execute SELECT FOR UPDATE in aread-only transaction
1717
-- DML
1818
BEGIN;
1919
insert into hs1 values (37);
20-
ERROR:transaction isread-only
20+
ERROR:cannot execute INSERT in aread-only transaction
2121
ROLLBACK;
2222
BEGIN;
2323
delete from hs1 where col1 = 1;
24-
ERROR:transaction isread-only
24+
ERROR:cannot execute DELETE in aread-only transaction
2525
ROLLBACK;
2626
BEGIN;
2727
update hs1 set col1 = NULL where col1 > 0;
28-
ERROR:transaction isread-only
28+
ERROR:cannot execute UPDATE in aread-only transaction
2929
ROLLBACK;
3030
BEGIN;
3131
truncate hs3;
32-
ERROR:transaction isread-only
32+
ERROR:cannot execute TRUNCATE TABLE in aread-only transaction
3333
ROLLBACK;
3434
-- DDL
3535
create temporary table hstemp1 (col1 integer);
36-
ERROR:transaction isread-only
36+
ERROR:cannot execute CREATE TABLE in aread-only transaction
3737
BEGIN;
3838
drop table hs2;
39-
ERROR:transaction isread-only
39+
ERROR:cannot execute DROP TABLE in aread-only transaction
4040
ROLLBACK;
4141
BEGIN;
4242
create table hs4 (col1 integer);
43-
ERROR:transaction isread-only
43+
ERROR:cannot execute CREATE TABLE in aread-only transaction
4444
ROLLBACK;
4545
-- Sequences
4646
SELECT nextval('hsseq');
47-
ERROR: cannotbe executed during recovery
47+
ERROR: cannotexecute nextval() in a read-only transaction
4848
-- Two-phase commit transaction stuff
4949
BEGIN;
5050
SELECT count(*) FROM hs1;
@@ -54,7 +54,7 @@ SELECT count(*) FROM hs1;
5454
(1 row)
5555

5656
PREPARE TRANSACTION 'foobar';
57-
ERROR: cannotbe executed during recovery
57+
ERROR: cannotexecute PREPARE TRANSACTION during recovery
5858
ROLLBACK;
5959
BEGIN;
6060
SELECT count(*) FROM hs1;
@@ -64,7 +64,7 @@ SELECT count(*) FROM hs1;
6464
(1 row)
6565

6666
COMMIT PREPARED 'foobar';
67-
ERROR: cannotbe executed during recovery
67+
ERROR:COMMIT PREPAREDcannotrun inside a transaction block
6868
ROLLBACK;
6969
BEGIN;
7070
SELECT count(*) FROM hs1;
@@ -74,7 +74,7 @@ SELECT count(*) FROM hs1;
7474
(1 row)
7575

7676
PREPARE TRANSACTION 'foobar';
77-
ERROR: cannotbe executed during recovery
77+
ERROR: cannotexecute PREPARE TRANSACTION during recovery
7878
ROLLBACK PREPARED 'foobar';
7979
ERROR: current transaction is aborted, commands ignored until end of transaction block
8080
ROLLBACK;
@@ -86,52 +86,52 @@ SELECT count(*) FROM hs1;
8686
(1 row)
8787

8888
ROLLBACK PREPARED 'foobar';
89-
ERROR: cannotbe executed during recovery
89+
ERROR:ROLLBACK PREPAREDcannotrun inside a transaction block
9090
ROLLBACK;
9191
-- Locks
9292
BEGIN;
9393
LOCK hs1;
94-
ERROR: cannotbe executed during recovery
94+
ERROR: cannotexecute LOCK TABLE during recovery
9595
COMMIT;
9696
BEGIN;
9797
LOCK hs1 IN SHARE UPDATE EXCLUSIVE MODE;
98-
ERROR: cannotbe executed during recovery
98+
ERROR: cannotexecute LOCK TABLE during recovery
9999
COMMIT;
100100
BEGIN;
101101
LOCK hs1 IN SHARE MODE;
102-
ERROR: cannotbe executed during recovery
102+
ERROR: cannotexecute LOCK TABLE during recovery
103103
COMMIT;
104104
BEGIN;
105105
LOCK hs1 IN SHARE ROW EXCLUSIVE MODE;
106-
ERROR: cannotbe executed during recovery
106+
ERROR: cannotexecute LOCK TABLE during recovery
107107
COMMIT;
108108
BEGIN;
109109
LOCK hs1 IN EXCLUSIVE MODE;
110-
ERROR: cannotbe executed during recovery
110+
ERROR: cannotexecute LOCK TABLE during recovery
111111
COMMIT;
112112
BEGIN;
113113
LOCK hs1 IN ACCESS EXCLUSIVE MODE;
114-
ERROR: cannotbe executed during recovery
114+
ERROR: cannotexecute LOCK TABLE during recovery
115115
COMMIT;
116116
-- Listen
117117
listen a;
118-
ERROR: cannotbe executed during recovery
118+
ERROR: cannotexecute LISTEN during recovery
119119
notify a;
120-
ERROR: cannotbe executed during recovery
120+
ERROR: cannotexecute NOTIFY during recovery
121121
unlisten a;
122-
ERROR: cannotbe executed during recovery
122+
ERROR: cannotexecute UNLISTEN during recovery
123123
unlisten *;
124-
ERROR: cannotbe executed during recovery
124+
ERROR: cannotexecute UNLISTEN during recovery
125125
-- disallowed commands
126126
ANALYZE hs1;
127-
ERROR: cannotbe executed during recovery
127+
ERROR: cannotexecute VACUUM during recovery
128128
VACUUM hs2;
129-
ERROR: cannotbe executed during recovery
129+
ERROR: cannotexecute VACUUM during recovery
130130
CLUSTER hs2 using hs1_pkey;
131-
ERROR: cannotbe executed during recovery
131+
ERROR: cannotexecute CLUSTER during recovery
132132
REINDEX TABLE hs2;
133-
ERROR: cannotbe executed during recovery
133+
ERROR: cannotexecute REINDEX during recovery
134134
REVOKE SELECT ON hs1 FROM PUBLIC;
135-
ERROR:transaction isread-only
135+
ERROR:cannot execute REVOKE in aread-only transaction
136136
GRANT SELECT ON hs1 TO PUBLIC;
137-
ERROR:transaction isread-only
137+
ERROR:cannot execute GRANT in aread-only transaction

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--
66
-- should fail
77
select txid_current();
8-
ERROR: cannotbe executed during recovery
8+
ERROR: cannotexecute txid_current() during recovery
99
select length(txid_current_snapshot()::text) >= 4;
1010
?column?
1111
----------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp