diff --git a/doc/xml/user-guide.xml b/doc/xml/user-guide.xml index aec16f389..a37ccb08b 100644 --- a/doc/xml/user-guide.xml +++ b/doc/xml/user-guide.xml @@ -69,10 +69,6 @@ my $version = '{[pg-version]}'; $version =~ s/\.//g; return $version; - - hot_standby - replica - 16 13 my $version = '{[pg-version-upgrade]}'; $version =~ s/\.//g; return $version; @@ -128,19 +124,13 @@ {[pg-home-path]}/.pgpass /var/log/postgresql/postgresql-{[pg-version]}-{[postgres-cluster-demo]}.log - {[pg-path]}/pg_log/postgresql.log - {[pg-path]}/log/postgresql.log + {[pg-path]}/log/postgresql.log /var/lib/pgsql/{[pg-version]}/pgstartup.log - recovery.conf - postgresql.auto.conf + postgresql.auto.conf {[pg-path]}/{[pg-recovery-file-demo]} - - pg_switch_xlog - pg_switch_wal - mcr.microsoft.com/azure-storage/azurite n @@ -1280,11 +1270,11 @@ '{[project-exe]} {[dash]}-stanza={[postgres-cluster-demo]} archive-push %p' on - {[wal-level]} + replica 3 -

%p is how specifies the location of the WAL segment to be archived. Setting wal_level to at least {[wal-level]} and increasing max_wal_senders is a good idea even if there are currently no replicas as this will allow them to be added later without restarting the primary cluster.

+

%p is how specifies the location of the WAL segment to be archived. Setting wal_level to at least replica and increasing max_wal_senders is a good idea even if there are currently no replicas as this will allow them to be added later without restarting the primary cluster.

The cluster must be restarted after making these changes and before performing a backup.

@@ -1879,8 +1869,8 @@ psql -c " - select pg_create_restore_point('generate WAL'); select {[pg-switch-wal]}(); - select pg_create_restore_point('generate WAL'); select {[pg-switch-wal]}();" + select pg_create_restore_point('generate WAL'); select pg_switch_wal(); + select pg_create_restore_point('generate WAL'); select pg_switch_wal();" @@ -3146,7 +3136,7 @@ on '{[project-exe]} {[dash]}-stanza={[postgres-cluster-demo]} archive-push %p' on - {[wal-level]} + replica 3 'postgresql.log' @@ -3209,14 +3199,14 @@

So, what went wrong? Since is pulling WAL segments from the archive to perform replication, changes won't be seen on the standby until the WAL segment that contains those changes is pushed from {[host-pg1]}.

-

This can be done manually by calling {[pg-switch-wal]}() which pushes the current WAL segment to the archive (a new WAL segment is created to contain further changes).

+

This can be done manually by calling pg_switch_wal() which pushes the current WAL segment to the archive (a new WAL segment is created to contain further changes).

- Call <code>{[pg-switch-wal]}()</code> + Call <code>pg_switch_wal()</code> - psql -c "select *, current_timestamp from {[pg-switch-wal]}()"; + psql -c "select *, current_timestamp from pg_switch_wal()"; @@ -3363,7 +3353,7 @@
-

Now when a table is created on {[host-pg1]} it will appear on {[host-pg2]} quickly and without the need to call {[pg-switch-wal]}().

+

Now when a table is created on {[host-pg1]} it will appear on {[host-pg2]} quickly and without the need to call pg_switch_wal().

Create a new table on the primary @@ -3507,7 +3497,7 @@ '{[project-exe]} {[dash]}-stanza=demo-alt archive-push %p' on - {[wal-level]} + replica 3 'postgresql.log' @@ -3652,11 +3642,11 @@ psql -c " - select pg_create_restore_point('test async push'); select {[pg-switch-wal]}(); - select pg_create_restore_point('test async push'); select {[pg-switch-wal]}(); - select pg_create_restore_point('test async push'); select {[pg-switch-wal]}(); - select pg_create_restore_point('test async push'); select {[pg-switch-wal]}(); - select pg_create_restore_point('test async push'); select {[pg-switch-wal]}();" + select pg_create_restore_point('test async push'); select pg_switch_wal(); + select pg_create_restore_point('test async push'); select pg_switch_wal(); + select pg_create_restore_point('test async push'); select pg_switch_wal(); + select pg_create_restore_point('test async push'); select pg_switch_wal(); + select pg_create_restore_point('test async push'); select pg_switch_wal();" @@ -4146,7 +4136,7 @@ '{[project-exe]} {[dash]}-stanza={[postgres-cluster-demo]} archive-push %p' on - {[wal-level]} + replica 3 'postgresql.log'