@@ -11,40 +11,40 @@ commit;
1111WARNING: there is no transaction in progress
1212-- SELECT
1313select * from hs1 FOR SHARE;
14- ERROR: transaction is read-only
14+ ERROR: cannot execute SELECT FOR SHARE in a read-only transaction
1515select * from hs1 FOR UPDATE;
16- ERROR: transaction is read-only
16+ ERROR: cannot execute SELECT FOR UPDATE in a read-only transaction
1717-- DML
1818BEGIN;
1919insert into hs1 values (37);
20- ERROR: transaction is read-only
20+ ERROR: cannot execute INSERT in a read-only transaction
2121ROLLBACK;
2222BEGIN;
2323delete from hs1 where col1 = 1;
24- ERROR: transaction is read-only
24+ ERROR: cannot execute DELETE in a read-only transaction
2525ROLLBACK;
2626BEGIN;
2727update hs1 set col1 = NULL where col1 > 0;
28- ERROR: transaction is read-only
28+ ERROR: cannot execute UPDATE in a read-only transaction
2929ROLLBACK;
3030BEGIN;
3131truncate hs3;
32- ERROR: transaction is read-only
32+ ERROR: cannot execute TRUNCATE TABLE in a read-only transaction
3333ROLLBACK;
3434-- DDL
3535create temporary table hstemp1 (col1 integer);
36- ERROR: transaction is read-only
36+ ERROR: cannot execute CREATE TABLE in a read-only transaction
3737BEGIN;
3838drop table hs2;
39- ERROR: transaction is read-only
39+ ERROR: cannot execute DROP TABLE in a read-only transaction
4040ROLLBACK;
4141BEGIN;
4242create table hs4 (col1 integer);
43- ERROR: transaction is read-only
43+ ERROR: cannot execute CREATE TABLE in a read-only transaction
4444ROLLBACK;
4545-- Sequences
4646SELECT 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
4949BEGIN;
5050SELECT count(*) FROM hs1;
@@ -54,7 +54,7 @@ SELECT count(*) FROM hs1;
5454(1 row)
5555
5656PREPARE TRANSACTION 'foobar';
57- ERROR: cannot be executed during recovery
57+ ERROR: cannot execute PREPARE TRANSACTION during recovery
5858ROLLBACK;
5959BEGIN;
6060SELECT count(*) FROM hs1;
@@ -64,7 +64,7 @@ SELECT count(*) FROM hs1;
6464(1 row)
6565
6666COMMIT PREPARED 'foobar';
67- ERROR: cannot be executed during recovery
67+ ERROR: COMMIT PREPARED cannot run inside a transaction block
6868ROLLBACK;
6969BEGIN;
7070SELECT count(*) FROM hs1;
@@ -74,7 +74,7 @@ SELECT count(*) FROM hs1;
7474(1 row)
7575
7676PREPARE TRANSACTION 'foobar';
77- ERROR: cannot be executed during recovery
77+ ERROR: cannot execute PREPARE TRANSACTION during recovery
7878ROLLBACK PREPARED 'foobar';
7979ERROR: current transaction is aborted, commands ignored until end of transaction block
8080ROLLBACK;
@@ -86,52 +86,52 @@ SELECT count(*) FROM hs1;
8686(1 row)
8787
8888ROLLBACK PREPARED 'foobar';
89- ERROR: cannot be executed during recovery
89+ ERROR: ROLLBACK PREPARED cannot run inside a transaction block
9090ROLLBACK;
9191-- Locks
9292BEGIN;
9393LOCK hs1;
94- ERROR: cannot be executed during recovery
94+ ERROR: cannot execute LOCK TABLE during recovery
9595COMMIT;
9696BEGIN;
9797LOCK hs1 IN SHARE UPDATE EXCLUSIVE MODE;
98- ERROR: cannot be executed during recovery
98+ ERROR: cannot execute LOCK TABLE during recovery
9999COMMIT;
100100BEGIN;
101101LOCK hs1 IN SHARE MODE;
102- ERROR: cannot be executed during recovery
102+ ERROR: cannot execute LOCK TABLE during recovery
103103COMMIT;
104104BEGIN;
105105LOCK hs1 IN SHARE ROW EXCLUSIVE MODE;
106- ERROR: cannot be executed during recovery
106+ ERROR: cannot execute LOCK TABLE during recovery
107107COMMIT;
108108BEGIN;
109109LOCK hs1 IN EXCLUSIVE MODE;
110- ERROR: cannot be executed during recovery
110+ ERROR: cannot execute LOCK TABLE during recovery
111111COMMIT;
112112BEGIN;
113113LOCK hs1 IN ACCESS EXCLUSIVE MODE;
114- ERROR: cannot be executed during recovery
114+ ERROR: cannot execute LOCK TABLE during recovery
115115COMMIT;
116116-- Listen
117117listen a;
118- ERROR: cannot be executed during recovery
118+ ERROR: cannot execute LISTEN during recovery
119119notify a;
120- ERROR: cannot be executed during recovery
120+ ERROR: cannot execute NOTIFY during recovery
121121unlisten a;
122- ERROR: cannot be executed during recovery
122+ ERROR: cannot execute UNLISTEN during recovery
123123unlisten *;
124- ERROR: cannot be executed during recovery
124+ ERROR: cannot execute UNLISTEN during recovery
125125-- disallowed commands
126126ANALYZE hs1;
127- ERROR: cannot be executed during recovery
127+ ERROR: cannot execute VACUUM during recovery
128128VACUUM hs2;
129- ERROR: cannot be executed during recovery
129+ ERROR: cannot execute VACUUM during recovery
130130CLUSTER hs2 using hs1_pkey;
131- ERROR: cannot be executed during recovery
131+ ERROR: cannot execute CLUSTER during recovery
132132REINDEX TABLE hs2;
133- ERROR: cannot be executed during recovery
133+ ERROR: cannot execute REINDEX during recovery
134134REVOKE SELECT ON hs1 FROM PUBLIC;
135- ERROR: transaction is read-only
135+ ERROR: cannot execute REVOKE in a read-only transaction
136136GRANT SELECT ON hs1 TO PUBLIC;
137- ERROR: transaction is read-only
137+ ERROR: cannot execute GRANT in a read-only transaction
0 commit comments