Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
3a0939ed
Commit
3a0939ed
authored
May 02, 2010
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update standbycheck test output with new ERROR message changes. No changes
to tests and no changes in accepted server behaviour.
parent
abeb17cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
31 deletions
+31
-31
src/test/regress/expected/hs_standby_disallowed.out
src/test/regress/expected/hs_standby_disallowed.out
+30
-30
src/test/regress/expected/hs_standby_functions.out
src/test/regress/expected/hs_standby_functions.out
+1
-1
No files found.
src/test/regress/expected/hs_standby_disallowed.out
View file @
3a0939ed
...
...
@@ -11,40 +11,40 @@ commit;
WARNING: there is no transaction in progress
-- SELECT
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;
ERROR:
transaction is read-only
ERROR:
cannot execute SELECT FOR UPDATE in a read-only transaction
-- DML
BEGIN;
insert into hs1 values (37);
ERROR:
transaction is read-only
ERROR:
cannot execute INSERT in a read-only transaction
ROLLBACK;
BEGIN;
delete from hs1 where col1 = 1;
ERROR:
transaction is read-only
ERROR:
cannot execute DELETE in a read-only transaction
ROLLBACK;
BEGIN;
update hs1 set col1 = NULL where col1 > 0;
ERROR:
transaction is read-only
ERROR:
cannot execute UPDATE in a read-only transaction
ROLLBACK;
BEGIN;
truncate hs3;
ERROR:
transaction is read-only
ERROR:
cannot execute TRUNCATE TABLE in a read-only transaction
ROLLBACK;
-- DDL
create temporary table hstemp1 (col1 integer);
ERROR:
transaction is read-only
ERROR:
cannot execute CREATE TABLE in a read-only transaction
BEGIN;
drop table hs2;
ERROR:
transaction is read-only
ERROR:
cannot execute DROP TABLE in a read-only transaction
ROLLBACK;
BEGIN;
create table hs4 (col1 integer);
ERROR:
transaction is read-only
ERROR:
cannot execute CREATE TABLE in a read-only transaction
ROLLBACK;
-- Sequences
SELECT nextval('hsseq');
ERROR: cannot
be executed during recovery
ERROR: cannot
execute nextval() in a read-only transaction
-- Two-phase commit transaction stuff
BEGIN;
SELECT count(*) FROM hs1;
...
...
@@ -54,7 +54,7 @@ SELECT count(*) FROM hs1;
(1 row)
PREPARE TRANSACTION 'foobar';
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute PREPARE TRANSACTION
during recovery
ROLLBACK;
BEGIN;
SELECT count(*) FROM hs1;
...
...
@@ -64,7 +64,7 @@ SELECT count(*) FROM hs1;
(1 row)
COMMIT PREPARED 'foobar';
ERROR:
cannot be executed during recovery
ERROR:
COMMIT PREPARED cannot run inside a transaction block
ROLLBACK;
BEGIN;
SELECT count(*) FROM hs1;
...
...
@@ -74,7 +74,7 @@ SELECT count(*) FROM hs1;
(1 row)
PREPARE TRANSACTION 'foobar';
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute PREPARE TRANSACTION
during recovery
ROLLBACK PREPARED 'foobar';
ERROR: current transaction is aborted, commands ignored until end of transaction block
ROLLBACK;
...
...
@@ -86,52 +86,52 @@ SELECT count(*) FROM hs1;
(1 row)
ROLLBACK PREPARED 'foobar';
ERROR:
cannot be executed during recovery
ERROR:
ROLLBACK PREPARED cannot run inside a transaction block
ROLLBACK;
-- Locks
BEGIN;
LOCK hs1;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute LOCK TABLE
during recovery
COMMIT;
BEGIN;
LOCK hs1 IN SHARE UPDATE EXCLUSIVE MODE;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute LOCK TABLE
during recovery
COMMIT;
BEGIN;
LOCK hs1 IN SHARE MODE;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute LOCK TABLE
during recovery
COMMIT;
BEGIN;
LOCK hs1 IN SHARE ROW EXCLUSIVE MODE;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute LOCK TABLE
during recovery
COMMIT;
BEGIN;
LOCK hs1 IN EXCLUSIVE MODE;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute LOCK TABLE
during recovery
COMMIT;
BEGIN;
LOCK hs1 IN ACCESS EXCLUSIVE MODE;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute LOCK TABLE
during recovery
COMMIT;
-- Listen
listen a;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute LISTEN
during recovery
notify a;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute NOTIFY
during recovery
unlisten a;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute UNLISTEN
during recovery
unlisten *;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute UNLISTEN
during recovery
-- disallowed commands
ANALYZE hs1;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute VACUUM
during recovery
VACUUM hs2;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute VACUUM
during recovery
CLUSTER hs2 using hs1_pkey;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute CLUSTER
during recovery
REINDEX TABLE hs2;
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute REINDEX
during recovery
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;
ERROR:
transaction is read-only
ERROR:
cannot execute GRANT in a read-only transaction
src/test/regress/expected/hs_standby_functions.out
View file @
3a0939ed
...
...
@@ -5,7 +5,7 @@
--
-- should fail
select txid_current();
ERROR: cannot
be executed
during recovery
ERROR: cannot
execute txid_current()
during recovery
select length(txid_current_snapshot()::text) >= 4;
?column?
----------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment