Proposing new logline_prefix escape... - Mailing list pgsql-hackers

From Jon Erdman
Subject Proposing new logline_prefix escape...
Date
Msg-id 4B170E38.3020006@progressivepractice.com
Whole thread Raw
List pgsql-hackers
So...

Came across a situation today where I would have liked to know the
effective role of a query because of a permission error. When I went to
add that to the logline_prefix, I realized that right now all we have is
%u which gives you the equivalent of session_user...I think it would be
useful to have one for current_user, for situations like mine where a
function was changing the effective role.

Thoughts? Disagreements? Flames?
--

Jon T Erdman

Chief Information Officer
Progressive Practice, Inc.
P.O. Box 17288
Rochester, NY 14617

www.progressivepractice.com




pgsql-hackers by date:

Previous
From: KaiGai Kohei
Date:
Subject: Re: SE-PgSQL patch review
Next
From: Tom Lane
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Rewrite GEQO's gimme_tree function so that it always finds a