diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_resetxlog/pg_resetxlog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pg_resetxlog/pg_resetxlog.c b/src/bin/pg_resetxlog/pg_resetxlog.c index 8671c0a4a3d..d11280e1d4d 100644 --- a/src/bin/pg_resetxlog/pg_resetxlog.c +++ b/src/bin/pg_resetxlog/pg_resetxlog.c @@ -492,7 +492,8 @@ GuessControlValues(void) */ gettimeofday(&tv, NULL); sysidentifier = ((uint64) tv.tv_sec) << 32; - sysidentifier |= (uint32) (tv.tv_sec | tv.tv_usec); + sysidentifier |= ((uint64) tv.tv_usec) << 12; + sysidentifier |= getpid() & 0xFFF; ControlFile.system_identifier = sysidentifier; |