On 26/06/14 19:57, Sawada Masahiko wrote:
> $ pg_resetxlog -s0 data
> Transaction log reset
> $ pg_controldata data | grep "Database system identifier"
> Database system identifier: 6029284919152642525
>
> this patch dose not works fine with -s0.
>
Yes, this is a bug, 0 input should throw error, which it does now.
Also based on Alvaro's comment, I replaced the scanf parsing code with
strtoul(l) function.
--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services