Skip to content

Commit c9c943b

Browse files
committed
Relax version test.
1 parent b3ecb19 commit c9c943b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,12 +478,12 @@ check_server_version(void)
478478

479479
/* confirm server version */
480480
server_version = PQserverVersion(connection);
481-
if (server_version != PG_VERSION_NUM)
481+
if (server_version < 90500)
482482
elog(ERROR,
483483
"server version is %d.%d.%d, must be %s or higher.",
484484
server_version / 10000,
485485
(server_version / 100) % 100,
486-
server_version % 100, PG_MAJORVERSION);
486+
server_version % 100, "9.5");
487487

488488
/* confirm block_size (BLCKSZ) and wal_block_size (XLOG_BLCKSZ) */
489489
confirm_block_size("block_size", BLCKSZ);

0 commit comments

Comments
 (0)