Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a0939e

Browse files
Update standbycheck test output with new ERROR message changes. No changes
to tests and no changes in accepted server behaviour.
1 parent abeb17c commit 3a0939e

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 is read-only
14+
ERROR: cannot execute SELECT FOR SHARE in a read-only transaction
1515
select * from hs1 FOR UPDATE;
16-
ERROR: transaction is read-only
16+
ERROR: cannot execute SELECT FOR UPDATE in a read-only transaction
1717
-- DML
1818
BEGIN;
1919
insert into hs1 values (37);
20-
ERROR: transaction is read-only
20+
ERROR: cannot execute INSERT in a read-only transaction
2121
ROLLBACK;
2222
BEGIN;
2323
delete from hs1 where col1 = 1;
24-
ERROR: transaction is read-only
24+
ERROR: cannot execute DELETE in a read-only transaction
2525
ROLLBACK;
2626
BEGIN;
2727
update hs1 set col1 = NULL where col1 > 0;
28-
ERROR: transaction is read-only
28+
ERROR: cannot execute UPDATE in a read-only transaction
2929
ROLLBACK;
3030
BEGIN;
3131
truncate hs3;
32-
ERROR: transaction is read-only
32+
ERROR: cannot execute TRUNCATE TABLE in a read-only transaction
3333
ROLLBACK;
3434
-- DDL
3535
create temporary table hstemp1 (col1 integer);
36-
ERROR: transaction is read-only
36+
ERROR: cannot execute CREATE TABLE in a read-only transaction
3737
BEGIN;
3838
drop table hs2;
39-
ERROR: transaction is read-only
39+
ERROR: cannot execute DROP TABLE in a read-only transaction
4040
ROLLBACK;
4141
BEGIN;
4242
create table hs4 (col1 integer);
43-
ERROR: transaction is read-only
43+
ERROR: cannot execute CREATE TABLE in a read-only transaction
4444
ROLLBACK;
4545
-- Sequences
4646
SELECT nextval('hsseq');
47-
ERROR: cannot be executed during recovery
47+
ERROR: cannot execute 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: cannot be executed during recovery
57+
ERROR: cannot execute 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: cannot be executed during recovery
67+
ERROR: COMMIT PREPARED cannot run 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: cannot be executed during recovery
77+
ERROR: cannot execute 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: cannot be executed during recovery
89+
ERROR: ROLLBACK PREPARED cannot run inside a transaction block
9090
ROLLBACK;
9191
-- Locks
9292
BEGIN;
9393
LOCK hs1;
94-
ERROR: cannot be executed during recovery
94+
ERROR: cannot execute LOCK TABLE during recovery
9595
COMMIT;
9696
BEGIN;
9797
LOCK hs1 IN SHARE UPDATE EXCLUSIVE MODE;
98-
ERROR: cannot be executed during recovery
98+
ERROR: cannot execute LOCK TABLE during recovery
9999
COMMIT;
100100
BEGIN;
101101
LOCK hs1 IN SHARE MODE;
102-
ERROR: cannot be executed during recovery
102+
ERROR: cannot execute LOCK TABLE during recovery
103103
COMMIT;
104104
BEGIN;
105105
LOCK hs1 IN SHARE ROW EXCLUSIVE MODE;
106-
ERROR: cannot be executed during recovery
106+
ERROR: cannot execute LOCK TABLE during recovery
107107
COMMIT;
108108
BEGIN;
109109
LOCK hs1 IN EXCLUSIVE MODE;
110-
ERROR: cannot be executed during recovery
110+
ERROR: cannot execute LOCK TABLE during recovery
111111
COMMIT;
112112
BEGIN;
113113
LOCK hs1 IN ACCESS EXCLUSIVE MODE;
114-
ERROR: cannot be executed during recovery
114+
ERROR: cannot execute LOCK TABLE during recovery
115115
COMMIT;
116116
-- Listen
117117
listen a;
118-
ERROR: cannot be executed during recovery
118+
ERROR: cannot execute LISTEN during recovery
119119
notify a;
120-
ERROR: cannot be executed during recovery
120+
ERROR: cannot execute NOTIFY during recovery
121121
unlisten a;
122-
ERROR: cannot be executed during recovery
122+
ERROR: cannot execute UNLISTEN during recovery
123123
unlisten *;
124-
ERROR: cannot be executed during recovery
124+
ERROR: cannot execute UNLISTEN during recovery
125125
-- disallowed commands
126126
ANALYZE hs1;
127-
ERROR: cannot be executed during recovery
127+
ERROR: cannot execute VACUUM during recovery
128128
VACUUM hs2;
129-
ERROR: cannot be executed during recovery
129+
ERROR: cannot execute VACUUM during recovery
130130
CLUSTER hs2 using hs1_pkey;
131-
ERROR: cannot be executed during recovery
131+
ERROR: cannot execute CLUSTER during recovery
132132
REINDEX TABLE hs2;
133-
ERROR: cannot be executed during recovery
133+
ERROR: cannot execute REINDEX during recovery
134134
REVOKE SELECT ON hs1 FROM PUBLIC;
135-
ERROR: transaction is read-only
135+
ERROR: cannot execute REVOKE in a read-only transaction
136136
GRANT SELECT ON hs1 TO PUBLIC;
137-
ERROR: transaction is read-only
137+
ERROR: cannot execute GRANT in a read-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: cannot be executed during recovery
8+
ERROR: cannot execute txid_current() during recovery
99
select length(txid_current_snapshot()::text) >= 4;
1010
?column?
1111
----------

0 commit comments

Comments
 (0)