mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Fix pg_basebackup/pg_receivexlog for floating point timestamps
Since the replication protocol deals with TimestampTz, we need to care for the floating point case as well in the frontend tools. Fujii Masao, with changes from Magnus Hagander
This commit is contained in:
@@ -46,7 +46,7 @@ int compresslevel = 0;
|
||||
bool includewal = false;
|
||||
bool streamwal = false;
|
||||
bool fastcheckpoint = false;
|
||||
int standby_message_timeout = 10; /* 10 sec = default */
|
||||
int standby_message_timeout = 10 * 1000; /* 10 sec = default */
|
||||
|
||||
/* Progress counters */
|
||||
static uint64 totalsize;
|
||||
@@ -1311,7 +1311,7 @@ main(int argc, char **argv)
|
||||
dbgetpassword = 1;
|
||||
break;
|
||||
case 's':
|
||||
standby_message_timeout = atoi(optarg);
|
||||
standby_message_timeout = atoi(optarg) * 1000;
|
||||
if (standby_message_timeout < 0)
|
||||
{
|
||||
fprintf(stderr, _("%s: invalid status interval \"%s\"\n"),
|
||||
|
||||
Reference in New Issue
Block a user