1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-09-16 09:26:30 +02:00

Merge branch 'REL_2_5'

This commit is contained in:
Alexey Savchkov
2023-11-24 18:12:32 +07:00
4 changed files with 19 additions and 5 deletions

View File

@@ -3,3 +3,6 @@
xmllint --noout --valid probackup.xml
xsltproc stylesheet.xsl probackup.xml >pg-probackup.html
```
> [!NOTE]
>Install ```docbook-xsl``` if you got
>``` "xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"```

View File

@@ -1970,6 +1970,14 @@ pg_probackup restore -B <replaceable>backup_dir</replaceable> --instance <replac
for communication between the hosts.
</para>
</note>
<note>
<para>
In addition to SSH connection, <application>pg_probackup</application> uses
a regular connection to the database to manage the remote operation.
See <xref linkend="pbk-configuring-the-database-cluster"/> for details of how to set up
a database connection.
</para>
</note>
<para>
The typical workflow is as follows:
</para>

View File

@@ -110,6 +110,8 @@ extern const char *PROGRAM_EMAIL;
/* 64-bit xid support for PGPRO_EE */
#ifndef PGPRO_EE
#define XID_FMT "%u"
#elif !defined(XID_FMT)
#define XID_FMT UINT64_FORMAT
#endif
#ifndef STDIN_FILENO

View File

@@ -6,6 +6,7 @@ from datetime import datetime, timedelta
import subprocess
import gzip
import shutil
import time
class PageTest(ProbackupTest, unittest.TestCase):
@@ -893,7 +894,7 @@ class PageTest(ProbackupTest, unittest.TestCase):
"create table t_heap as select i as id, "
"md5(i::text) as text, "
"md5(repeat(i::text,10))::tsvector as tsvector "
"from generate_series(0,1000) i;")
"from generate_series(0,10000) i;")
alien_node.safe_psql(
"postgres",
@@ -905,7 +906,7 @@ class PageTest(ProbackupTest, unittest.TestCase):
"create table t_heap_alien as select i as id, "
"md5(i::text) as text, "
"md5(repeat(i::text,10))::tsvector as tsvector "
"from generate_series(0,100000) i;")
"from generate_series(0,10000) i;")
# copy latest wal segment
wals_dir = os.path.join(backup_dir, 'wal', 'alien_node')
@@ -916,9 +917,9 @@ class PageTest(ProbackupTest, unittest.TestCase):
file = os.path.join(wals_dir, filename)
file_destination = os.path.join(
os.path.join(backup_dir, 'wal', 'node'), filename)
# file = os.path.join(wals_dir, '000000010000000000000004')
print(file)
print(file_destination)
start = time.time()
while not os.path.exists(file_destination) and time.time() - start < 20:
time.sleep(0.1)
os.remove(file_destination)
os.rename(file, file_destination)