Dave Page <dpage@pgadmin.org> writes:
> OK - something like this? Should keep non-printable/control characters
> out of logs too...
Personally I'd use guc_strdup and then modify the string in-place,
but that's just a matter of taste I guess. Otherwise it seems
reasonable.
regards, tom lane