Skip to content

Commit b5ce80c

Browse files
committed
Merge branch 'release_2_4' into issue_201
2 parents b949231 + 0f58b2d commit b5ce80c

33 files changed

+1020
-842
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![Build Status](https://travis-ci.com/postgrespro/pg_probackup.svg?branch=master)](https://travis-ci.com/postgrespro/pg_probackup)
2+
[![GitHub release](https://img.shields.io/github/v/release/postgrespro/pg_probackup?include_prereleases)](https://github.com/postgrespro/pg_probackup/releases/latest)
23

34
# pg_probackup
45

@@ -49,18 +50,19 @@ Regardless of the chosen backup type, all backups taken with `pg_probackup` supp
4950
`pg_probackup` currently has the following limitations:
5051
* The server from which the backup was taken and the restored server must be compatible by the [block_size](https://postgrespro.com/docs/postgresql/current/runtime-config-preset#GUC-BLOCK-SIZE) and [wal_block_size](https://postgrespro.com/docs/postgresql/current/runtime-config-preset#GUC-WAL-BLOCK-SIZE) parameters and have the same major release number.
5152
* Remote backup via ssh on Windows currently is not supported.
53+
* When running remote operations via ssh, remote and local pg_probackup versions must be the same.
5254

5355
## Current release
5456

55-
[2.3.1](https://github.com/postgrespro/pg_probackup/releases/tag/2.3.1)
57+
[2.3.3](https://github.com/postgrespro/pg_probackup/releases/tag/2.3.3)
5658

5759
## Documentation
5860

5961
Documentation can be found at [github](https://postgrespro.github.io/pg_probackup) and [Postgres Professional documentation](https://postgrespro.com/docs/postgrespro/current/app-pgprobackup)
6062

6163
## Installation and Setup
6264
### Windows Installation
63-
Installers are available in release **assets**. [Latests](https://github.com/postgrespro/pg_probackup/releases/latest).
65+
Installers are available in release **assets**. [Latests](https://github.com/postgrespro/pg_probackup/releases/2.3.3).
6466

6567
### Linux Installation
6668
#### pg_probackup for vanilla PostgreSQL

doc/pgprobackup.xml

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,16 @@ ALTER ROLE backup WITH REPLICATION;
740740
DELTA, and PTRACK backups in the
741741
<link linkend="pbk-stream-mode">STREAM</link> WAL mode.
742742
</para>
743+
<note>
744+
<para>
745+
If you are planning to rely on
746+
<ulink url="https://postgrespro.com/docs/postgresql/current/libpq-pgpass.html">.pgpass</ulink>
747+
for authentication when running backup in STREAM mode,
748+
then .pgpass must contain credentials for <literal>replication</literal> database,
749+
used to establish connection via replication protocol. Example:
750+
pghost:5432:replication:backup_user:my_strong_password
751+
</para>
752+
</note>
743753
</refsect2>
744754
<refsect2 id="pbk-setting-up-continuous-wal-archiving">
745755
<title>Setting up Continuous WAL Archiving</title>
@@ -1158,20 +1168,20 @@ CREATE EXTENSION ptrack;
11581168
</listitem>
11591169
<listitem>
11601170
<para>
1161-
To enable tracking page updates, set <varname>ptrack_map_size</varname>
1171+
To enable tracking page updates, set <varname>ptrack.map_size</varname>
11621172
parameter to a positive integer and restart the server.
11631173
</para>
11641174
<para>
11651175
For optimal performance, it is recommended to set
1166-
<varname>ptrack_map_size</varname> to
1176+
<varname>ptrack.map_size</varname> to
11671177
<literal><replaceable>N</replaceable> / 1024</literal>, where
11681178
<replaceable>N</replaceable> is the size of the
11691179
<productname>PostgreSQL</productname> cluster, in MB. If you set this
11701180
parameter to a lower value, PTRACK is more likely to map several blocks
11711181
together, which leads to false-positive results when tracking changed
11721182
blocks and increases the incremental backup size as unchanged blocks
11731183
can also be copied into the incremental backup.
1174-
Setting <varname>ptrack_map_size</varname> to a higher value
1184+
Setting <varname>ptrack.map_size</varname> to a higher value
11751185
does not affect PTRACK operation. The maximum allowed value is 1024.
11761186
</para>
11771187
</listitem>
@@ -1191,11 +1201,11 @@ GRANT EXECUTE ON FUNCTION pg_ptrack_get_block(oid, oid, oid, bigint) TO backup;
11911201

11921202
<note>
11931203
<para>
1194-
If you change the <varname>ptrack_map_size</varname> parameter value,
1204+
If you change the <varname>ptrack.map_size</varname> parameter value,
11951205
the previously created PTRACK map file is cleared,
11961206
and tracking newly changed blocks starts from scratch. Thus, you have
11971207
to retake a full backup before taking incremental PTRACK backups after
1198-
changing <varname>ptrack_map_size</varname>.
1208+
changing <varname>ptrack.map_size</varname>.
11991209
</para>
12001210
</note>
12011211

@@ -2407,6 +2417,12 @@ primary_conninfo = 'user=backup passfile=/var/lib/pgsql/.pgpass port=5432 sslmod
24072417
<literal>note</literal> — text note attached to backup.
24082418
</para>
24092419
</listitem>
2420+
<listitem>
2421+
<para>
2422+
<literal>content-crc</literal> — CRC32 checksum of <literal>backup_content.control</literal> file.
2423+
It is used to detect corruption of backup metainformation.
2424+
</para>
2425+
</listitem>
24102426
</itemizedlist>
24112427
</para>
24122428
<para>
@@ -4039,10 +4055,10 @@ pg_probackup archive-push -B <replaceable>backup_dir</replaceable> --instance <r
40394055
corruption.
40404056
</para>
40414057
<para>
4042-
To speed up archiving, you can specify the <option>-j</option> option
4043-
to run <command>archive-push</command> on multiple threads.
4044-
If you provide the <option>--batch-size</option> option, WAL files
4045-
will be copied in batches of the specified size.
4058+
To speed up archiving, you can specify the <option>--batch-size</option> option
4059+
to copy WAL segments in batches of the specified size.
4060+
If <option>--batch-size</option> option is used, then you can also specify
4061+
the <option>-j</option> option to copy the batch of WAL segments on multiple threads.
40464062
</para>
40474063
<para>
40484064
WAL segments copied to the archive are synced to disk unless
@@ -4080,10 +4096,10 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
40804096
</para>
40814097

40824098
<para>
4083-
To speed up recovery, you can specify the <option>-j</option> option
4084-
to run <command>archive-get</command> on multiple threads.
4085-
If you provide the <option>--batch-size</option> option, WAL segments
4086-
will be copied in batches of the specified size.
4099+
To speed up recovery, you can specify the <option>--batch-size</option> option
4100+
to copy WAL segments in batches of the specified size.
4101+
If <option>--batch-size</option> option is used, then you can also specify
4102+
the <option>-j</option> option to copy the batch of WAL segments on multiple threads.
40874103
</para>
40884104

40894105
<para>
@@ -4708,7 +4724,7 @@ pg_probackup archive-get -B <replaceable>backup_dir</replaceable> --instance <re
47084724
<term><option>--password</option></term>
47094725
<listitem>
47104726
<para>
4711-
Forces a password prompt.
4727+
Forces a password prompt. (Deprecated)
47124728
</para>
47134729
</listitem>
47144730
</varlistentry>

src/archive.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ setup_push_filelist(const char *archive_status_dir, const char *first_file,
945945
/* get list of files from archive_status */
946946
status_files = parray_new();
947947
dir_list_file(status_files, archive_status_dir, false, false, false, 0, FIO_DB_HOST);
948-
parray_qsort(status_files, pgFileComparePath);
948+
parray_qsort(status_files, pgFileCompareName);
949949

950950
for (i = 0; i < parray_num(status_files); i++)
951951
{
@@ -1109,7 +1109,7 @@ do_archive_get(InstanceConfig *instance, const char *prefetch_dir_arg,
11091109
{
11101110
/* discard prefetch */
11111111
// n_fetched = 0;
1112-
rmtree(prefetch_dir, false);
1112+
pgut_rmtree(prefetch_dir, false, false);
11131113
}
11141114
}
11151115
else

0 commit comments

Comments
 (0)