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

Commit42449fe

Browse files
committed
Use remote_host for pghost if last one was not specified
1 parent7c2260c commit42449fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/pg_probackup.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,10 @@ main(int argc, char *argv[])
448448
elog(ERROR,"Invalid backup-id \"%s\"",backup_id_string);
449449
}
450450

451-
/* Setup stream options. They are used in streamutil.c. */
451+
if (!instance_config.pghost&&instance_config.remote.host)
452+
instance_config.pghost=instance_config.remote.host;
453+
454+
/* Setup stream options. They are used in streamutil.c. */
452455
if (instance_config.pghost!=NULL)
453456
dbhost=pstrdup(instance_config.pghost);
454457
if (instance_config.pgport!=NULL)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp