Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7feb748

Browse files
committed
Prerelease test stabilization
ptrack.PtrackTest.test_ptrack_threadsbackup.BackupTest.test_backup_with_least_privileges_roleptrack.PtrackTest.test_ptrack_without_fulloption.OptionTest.test_help_1
1 parent986e9ab commit7feb748

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

‎tests/backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,7 @@ def test_backup_with_least_privileges_role(self):
19591959
node.safe_psql(
19601960
"backupdb",
19611961
"GRANT EXECUTE ON FUNCTION ptrack.ptrack_get_pagemapset(pg_lsn) TO backup; "
1962-
"GRANT EXECUTE ON FUNCTION'ptrack.ptrack_init_lsn()' TO backup;")
1962+
"GRANT EXECUTE ON FUNCTION ptrack.ptrack_init_lsn() TO backup;")
19631963

19641964
ifProbackupTest.enterprise:
19651965
node.safe_psql(

‎tests/expected/option_help.out

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pg_probackup - utility to manage backup/recovery of PostgreSQL database.
4242

4343
pg_probackup backup -B backup-path -b backup-mode --instance=instance_name
4444
[-D pgdata-path] [-C]
45-
[--stream [-S slot-name]] [--temp-slot]
45+
[--stream [-S slot-name] [--temp-slot]]
4646
[--backup-pg-log] [-j num-threads] [--progress]
4747
[--no-validate] [--skip-block-validation]
4848
[--external-dirs=external-directories-paths]
@@ -53,7 +53,7 @@ pg_probackup - utility to manage backup/recovery of PostgreSQL database.
5353
[--error-log-filename=error-log-filename]
5454
[--log-directory=log-directory]
5555
[--log-rotation-size=log-rotation-size]
56-
[--log-rotation-age=log-rotation-age]
56+
[--log-rotation-age=log-rotation-age] [--no-color]
5757
[--delete-expired] [--delete-wal] [--merge-expired]
5858
[--retention-redundancy=retention-redundancy]
5959
[--retention-window=retention-window]
@@ -113,7 +113,7 @@ pg_probackup - utility to manage backup/recovery of PostgreSQL database.
113113
pg_probackup show -B backup-path
114114
[--instance=instance_name [-i backup-id]]
115115
[--format=format] [--archive]
116-
[--help]
116+
[--no-color] [--help]
117117

118118
pg_probackup delete -B backup-path --instance=instance_name
119119
[-j num-threads] [--progress]
@@ -165,5 +165,19 @@ pg_probackup - utility to manage backup/recovery of PostgreSQL database.
165165
[--ssh-options]
166166
[--help]
167167

168+
pg_probackup catchup -b catchup-mode
169+
--source-pgdata=path_to_pgdata_on_remote_server
170+
--destination-pgdata=path_to_local_dir
171+
[--stream [-S slot-name] [--temp-slot | --perm-slot]]
172+
[-j num-threads]
173+
[-T OLDDIR=NEWDIR]
174+
[--exclude-path=path_prefix]
175+
[-d dbname] [-h host] [-p port] [-U username]
176+
[-w --no-password] [-W --password]
177+
[--remote-proto] [--remote-host]
178+
[--remote-port] [--remote-path] [--remote-user]
179+
[--ssh-options]
180+
[--help]
181+
168182
Read the website for details. <https://github.com/postgrespro/pg_probackup>
169183
Report bugs to <https://github.com/postgrespro/pg_probackup/issues>.

‎tests/ptrack.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ def test_ptrack_without_full(self):
100100
self.set_archiving(backup_dir,'node',node)
101101
node.slow_start()
102102

103+
node.safe_psql(
104+
"postgres",
105+
"CREATE EXTENSION ptrack")
106+
103107
try:
104108
self.backup_node(backup_dir,'node',node,backup_type="ptrack")
105109
# we should die here because exception is what we expect to happen
@@ -136,6 +140,10 @@ def test_ptrack_threads(self):
136140
self.set_archiving(backup_dir,'node',node)
137141
node.slow_start()
138142

143+
node.safe_psql(
144+
"postgres",
145+
"CREATE EXTENSION ptrack")
146+
139147
self.backup_node(
140148
backup_dir,'node',node,
141149
backup_type="full",options=["-j","4"])

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp