mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-23 06:47:14 +08:00
Commit f82ec32ac30ae7e3ec7c84067192535b2ff8ec0e renamed the pg_xlog directory to pg_wal. To make things consistent, and because "xlog" is terrible terminology for either "transaction log" or "write-ahead log" rename all SQL-callable functions that contain "xlog" in the name to instead contain "wal". (Note that this may pose an upgrade hazard for some users.) Similarly, rename the xlog_position argument of the functions that create slots to be called wal_position. Discussion: https://www.postgresql.org/message-id/CA+Tgmob=YmA=H3DbW1YuOXnFVgBheRmyDkWcD9M8f=5bGWYEoQ@mail.gmail.com
25 lines
497 B
SQL
25 lines
497 B
SQL
--
|
|
-- Hot Standby tests
|
|
--
|
|
-- hs_standby_functions.sql
|
|
--
|
|
|
|
-- should fail
|
|
select txid_current();
|
|
|
|
select length(txid_current_snapshot()::text) >= 4;
|
|
|
|
select pg_start_backup('should fail');
|
|
select pg_switch_wal();
|
|
select pg_stop_backup();
|
|
|
|
-- should return no rows
|
|
select * from pg_prepared_xacts;
|
|
|
|
-- just the startup process
|
|
select locktype, virtualxid, virtualtransaction, mode, granted
|
|
from pg_locks where virtualxid = '1/1';
|
|
|
|
-- suicide is painless
|
|
select pg_cancel_backend(pg_backend_pid());
|