Ed Loehr <eloehr(at)austin(dot)rr(dot)com> writes:
> Can anyone tell me how to log the db user name and db name to the server
> log? Is this possible at present?
Offhand I don't think that happens at the moment, but it does seem like
it'd be a good idea to have a backend do an elog(DEBUG) at startup that
mentions its database name and user name. Assuming you have logging of
timestamps/PIDs turned on, that would be enough to correlate later log
messages with a user name.
Comments anyone?
regards, tom lane