Re: dbmirror bug - Mailing list pgsql-bugs

From Tom Lane
Subject Re: dbmirror bug
Date
Msg-id 24887.1037982415@sss.pgh.pa.us
Whole thread Raw
In response to dbmirror bug  (Hai-Chen Tu <hctu@yahoo.com>)
List pgsql-bugs
Hai-Chen Tu <hctu@yahoo.com> writes:
> The cause of the problem is that pending.c in dbmirror
> uses
>     elog(NOTICE, cpKeyData)
> and
>     elog(NOTICE, cpFieldData)
> to print column data where elog
> interprets the second argument as sprintf
> format string, which fails if
> cpKeyData/cpFieldData contains '%'.

Good catch!  Trawling the sources identified a dozen other places with
the same error --- all fixed now.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: dbmirror bug
Next
From: Philip Warner
Date:
Subject: Re: Is this planner choice easily explained?