1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Pick pg_switch_wal()/pg_switch_xlog() based on PostgreSQL version.

One step in making the documentation build for all versions that we support.
This commit is contained in:
David Steele 2018-12-07 12:19:28 -05:00
parent e6abdfb5b8
commit 495391c743
2 changed files with 7 additions and 1 deletions

View File

@ -193,6 +193,10 @@
<p>Add Centos/RHEL 7 option to documentation build.</p>
</release-item>
<release-item>
<p>Pick <code>pg_switch_wal()</code>/<code>pg_switch_xlog()</code> based on <postgres/> version.</p>
</release-item>
<release-item>
<p>Create common <id>if</id> expressions for testing <id>os-type</id>.</p>
</release-item>

View File

@ -109,7 +109,9 @@
<variable key="postgres-recovery-demo">{[pg-path]}/recovery.conf</variable>
<variable key="pg-switch-wal">pg_switch_xlog</variable>
<!-- Select correct WAL switch function based on the version of PostgreSQL -->
<variable key="pg-switch-wal" if="{[pg-version]} &lt; 10">pg_switch_xlog</variable>
<variable key="pg-switch-wal" if="{[pg-version]} &gt;= 10">pg_switch_wal</variable>
<!-- Hosts -->
<variable key="host-image">pgbackrest/doc:{[os-type]}</variable>