mirror of
https://github.com/postgres/postgres.git
synced 2025-05-08 07:21:33 +03:00
Update standbycheck test output with new ERROR message changes. No changes
to tests and no changes in accepted server behaviour.
This commit is contained in:
parent
abeb17cdae
commit
3a0939eda2
@ -11,40 +11,40 @@ commit;
|
|||||||
WARNING: there is no transaction in progress
|
WARNING: there is no transaction in progress
|
||||||
-- SELECT
|
-- SELECT
|
||||||
select * from hs1 FOR SHARE;
|
select * from hs1 FOR SHARE;
|
||||||
ERROR: transaction is read-only
|
ERROR: cannot execute SELECT FOR SHARE in a read-only transaction
|
||||||
select * from hs1 FOR UPDATE;
|
select * from hs1 FOR UPDATE;
|
||||||
ERROR: transaction is read-only
|
ERROR: cannot execute SELECT FOR UPDATE in a read-only transaction
|
||||||
-- DML
|
-- DML
|
||||||
BEGIN;
|
BEGIN;
|
||||||
insert into hs1 values (37);
|
insert into hs1 values (37);
|
||||||
ERROR: transaction is read-only
|
ERROR: cannot execute INSERT in a read-only transaction
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
delete from hs1 where col1 = 1;
|
delete from hs1 where col1 = 1;
|
||||||
ERROR: transaction is read-only
|
ERROR: cannot execute DELETE in a read-only transaction
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
update hs1 set col1 = NULL where col1 > 0;
|
update hs1 set col1 = NULL where col1 > 0;
|
||||||
ERROR: transaction is read-only
|
ERROR: cannot execute UPDATE in a read-only transaction
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
truncate hs3;
|
truncate hs3;
|
||||||
ERROR: transaction is read-only
|
ERROR: cannot execute TRUNCATE TABLE in a read-only transaction
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
-- DDL
|
-- DDL
|
||||||
create temporary table hstemp1 (col1 integer);
|
create temporary table hstemp1 (col1 integer);
|
||||||
ERROR: transaction is read-only
|
ERROR: cannot execute CREATE TABLE in a read-only transaction
|
||||||
BEGIN;
|
BEGIN;
|
||||||
drop table hs2;
|
drop table hs2;
|
||||||
ERROR: transaction is read-only
|
ERROR: cannot execute DROP TABLE in a read-only transaction
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
create table hs4 (col1 integer);
|
create table hs4 (col1 integer);
|
||||||
ERROR: transaction is read-only
|
ERROR: cannot execute CREATE TABLE in a read-only transaction
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
-- Sequences
|
-- Sequences
|
||||||
SELECT nextval('hsseq');
|
SELECT nextval('hsseq');
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute nextval() in a read-only transaction
|
||||||
-- Two-phase commit transaction stuff
|
-- Two-phase commit transaction stuff
|
||||||
BEGIN;
|
BEGIN;
|
||||||
SELECT count(*) FROM hs1;
|
SELECT count(*) FROM hs1;
|
||||||
@ -54,7 +54,7 @@ SELECT count(*) FROM hs1;
|
|||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
PREPARE TRANSACTION 'foobar';
|
PREPARE TRANSACTION 'foobar';
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute PREPARE TRANSACTION during recovery
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
SELECT count(*) FROM hs1;
|
SELECT count(*) FROM hs1;
|
||||||
@ -64,7 +64,7 @@ SELECT count(*) FROM hs1;
|
|||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
COMMIT PREPARED 'foobar';
|
COMMIT PREPARED 'foobar';
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: COMMIT PREPARED cannot run inside a transaction block
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
SELECT count(*) FROM hs1;
|
SELECT count(*) FROM hs1;
|
||||||
@ -74,7 +74,7 @@ SELECT count(*) FROM hs1;
|
|||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
PREPARE TRANSACTION 'foobar';
|
PREPARE TRANSACTION 'foobar';
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute PREPARE TRANSACTION during recovery
|
||||||
ROLLBACK PREPARED 'foobar';
|
ROLLBACK PREPARED 'foobar';
|
||||||
ERROR: current transaction is aborted, commands ignored until end of transaction block
|
ERROR: current transaction is aborted, commands ignored until end of transaction block
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
@ -86,52 +86,52 @@ SELECT count(*) FROM hs1;
|
|||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
ROLLBACK PREPARED 'foobar';
|
ROLLBACK PREPARED 'foobar';
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: ROLLBACK PREPARED cannot run inside a transaction block
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
-- Locks
|
-- Locks
|
||||||
BEGIN;
|
BEGIN;
|
||||||
LOCK hs1;
|
LOCK hs1;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute LOCK TABLE during recovery
|
||||||
COMMIT;
|
COMMIT;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
LOCK hs1 IN SHARE UPDATE EXCLUSIVE MODE;
|
LOCK hs1 IN SHARE UPDATE EXCLUSIVE MODE;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute LOCK TABLE during recovery
|
||||||
COMMIT;
|
COMMIT;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
LOCK hs1 IN SHARE MODE;
|
LOCK hs1 IN SHARE MODE;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute LOCK TABLE during recovery
|
||||||
COMMIT;
|
COMMIT;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
LOCK hs1 IN SHARE ROW EXCLUSIVE MODE;
|
LOCK hs1 IN SHARE ROW EXCLUSIVE MODE;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute LOCK TABLE during recovery
|
||||||
COMMIT;
|
COMMIT;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
LOCK hs1 IN EXCLUSIVE MODE;
|
LOCK hs1 IN EXCLUSIVE MODE;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute LOCK TABLE during recovery
|
||||||
COMMIT;
|
COMMIT;
|
||||||
BEGIN;
|
BEGIN;
|
||||||
LOCK hs1 IN ACCESS EXCLUSIVE MODE;
|
LOCK hs1 IN ACCESS EXCLUSIVE MODE;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute LOCK TABLE during recovery
|
||||||
COMMIT;
|
COMMIT;
|
||||||
-- Listen
|
-- Listen
|
||||||
listen a;
|
listen a;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute LISTEN during recovery
|
||||||
notify a;
|
notify a;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute NOTIFY during recovery
|
||||||
unlisten a;
|
unlisten a;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute UNLISTEN during recovery
|
||||||
unlisten *;
|
unlisten *;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute UNLISTEN during recovery
|
||||||
-- disallowed commands
|
-- disallowed commands
|
||||||
ANALYZE hs1;
|
ANALYZE hs1;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute VACUUM during recovery
|
||||||
VACUUM hs2;
|
VACUUM hs2;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute VACUUM during recovery
|
||||||
CLUSTER hs2 using hs1_pkey;
|
CLUSTER hs2 using hs1_pkey;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute CLUSTER during recovery
|
||||||
REINDEX TABLE hs2;
|
REINDEX TABLE hs2;
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute REINDEX during recovery
|
||||||
REVOKE SELECT ON hs1 FROM PUBLIC;
|
REVOKE SELECT ON hs1 FROM PUBLIC;
|
||||||
ERROR: transaction is read-only
|
ERROR: cannot execute REVOKE in a read-only transaction
|
||||||
GRANT SELECT ON hs1 TO PUBLIC;
|
GRANT SELECT ON hs1 TO PUBLIC;
|
||||||
ERROR: transaction is read-only
|
ERROR: cannot execute GRANT in a read-only transaction
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
--
|
--
|
||||||
-- should fail
|
-- should fail
|
||||||
select txid_current();
|
select txid_current();
|
||||||
ERROR: cannot be executed during recovery
|
ERROR: cannot execute txid_current() during recovery
|
||||||
select length(txid_current_snapshot()::text) >= 4;
|
select length(txid_current_snapshot()::text) >= 4;
|
||||||
?column?
|
?column?
|
||||||
----------
|
----------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user