mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-24 23:37:03 +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
26 lines
526 B
SQL
26 lines
526 B
SQL
--
|
|
-- Hot Standby tests
|
|
--
|
|
-- hs_primary_setup.sql
|
|
--
|
|
|
|
drop table if exists hs1;
|
|
create table hs1 (col1 integer primary key);
|
|
insert into hs1 values (1);
|
|
|
|
drop table if exists hs2;
|
|
create table hs2 (col1 integer primary key);
|
|
insert into hs2 values (12);
|
|
insert into hs2 values (13);
|
|
|
|
drop table if exists hs3;
|
|
create table hs3 (col1 integer primary key);
|
|
insert into hs3 values (113);
|
|
insert into hs3 values (114);
|
|
insert into hs3 values (115);
|
|
|
|
DROP sequence if exists hsseq;
|
|
create sequence hsseq;
|
|
|
|
SELECT pg_switch_wal();
|