diff options
author | Magnus Hagander <magnus@hagander.net> | 2012-06-10 12:12:36 +0200 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2012-06-10 12:12:36 +0200 |
commit | a0b4c5a20a5e5076225ba440a921f4b46f1159ee (patch) | |
tree | dc8fbe6215e8710c599b75ca755db946574188b2 /src/bin/pg_basebackup/pg_receivexlog.c | |
parent | 7c1abc00fa1f469a2805e88abac0fa8b094b4427 (diff) |
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
Diffstat (limited to 'src/bin/pg_basebackup/pg_receivexlog.c')
-rw-r--r-- | src/bin/pg_basebackup/pg_receivexlog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/pg_receivexlog.c b/src/bin/pg_basebackup/pg_receivexlog.c index 084ddc4a8cb..67a70bcf713 100644 --- a/src/bin/pg_basebackup/pg_receivexlog.c +++ b/src/bin/pg_basebackup/pg_receivexlog.c @@ -40,7 +40,7 @@ char *basedir = NULL; int verbose = 0; int noloop = 0; -int standby_message_timeout = 10; /* 10 sec = default */ +int standby_message_timeout = 10 * 1000; /* 10 sec = default */ volatile bool time_to_abort = false; @@ -356,7 +356,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"), |