Re: Application name patch - v3

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Page <dpage@pgadmin.org>
Cc: Andres Freund <andres@anarazel.de>, pgsql-hackers@postgresql.org
Date: 2009-11-26T15:09:42Z
Lists: pgsql-hackers
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