Consistently use "superuser" instead of "super user"
[pgsql.git] / src / test / regress / expected / hs_standby_functions.out
blobce846b758bf8c8519732316989b12353cbd89fe6
1 --
2 -- Hot Standby tests
3 --
4 -- hs_standby_functions.sql
5 --
6 -- should fail
7 select pg_current_xact_id();
8 ERROR:  cannot execute pg_current_xact_id() during recovery
9 select length(pg_current_snapshot()::text) >= 4;
10  ?column? 
11 ----------
12  t
13 (1 row)
15 select pg_start_backup('should fail');
16 ERROR:  recovery is in progress
17 HINT:  WAL control functions cannot be executed during recovery.
18 select pg_switch_wal();
19 ERROR:  recovery is in progress
20 HINT:  WAL control functions cannot be executed during recovery.
21 select pg_stop_backup();
22 ERROR:  recovery is in progress
23 HINT:  WAL control functions cannot be executed during recovery.
24 -- should return no rows
25 select * from pg_prepared_xacts;
26  transaction | gid | prepared | owner | database 
27 -------------+-----+----------+-------+----------
28 (0 rows)
30 -- just the startup process
31 select locktype, virtualxid, virtualtransaction, mode, granted
32 from pg_locks where virtualxid = '1/1';
33   locktype  | virtualxid | virtualtransaction |     mode      | granted 
34 ------------+------------+--------------------+---------------+---------
35  virtualxid | 1/1        | 1/0                | ExclusiveLock | t
36 (1 row)
38 -- suicide is painless
39 select pg_cancel_backend(pg_backend_pid());
40 ERROR:  canceling statement due to user request