Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> Looking at the code, the obvious thing that glares out is that the
> locale setup in CheckMyDatabase is calling setlocale rather than
> pg_perm_setlocale... am I missing something, or is this an obvious
> bug?
Sigh, it's an obvious bug. Whoever copied xlog.c's "pg_perm_setlocale"
calls as "setlocale" needs to get out the sackcloth and ashes.
regards, tom lane