mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 18:01:19 +02:00
Revert patch adding support for logging the current role.
This reverts commit a8a8867912
, committed
by me earlier today (2011-01-12). This isn't safe inside an aborted
transaction.
Noted by Tom Lane.
This commit is contained in:
parent
a8a8867912
commit
7a32ff9732
@ -3504,12 +3504,7 @@ local0.* /var/log/postgresql
|
|||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<entry><literal>%u</literal></entry>
|
<entry><literal>%u</literal></entry>
|
||||||
<entry>Login user name</entry>
|
<entry>User name</entry>
|
||||||
<entry>yes</entry>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<entry><literal>%U</literal></entry>
|
|
||||||
<entry>Current user name</entry>
|
|
||||||
<entry>yes</entry>
|
<entry>yes</entry>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
@ -1826,16 +1826,6 @@ log_line_prefix(StringInfo buf, ErrorData *edata)
|
|||||||
appendStringInfoString(buf, username);
|
appendStringInfoString(buf, username);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'U':
|
|
||||||
if (MyProcPort)
|
|
||||||
{
|
|
||||||
const char *username = GetUserNameFromId(GetUserId());
|
|
||||||
|
|
||||||
if (username == NULL || *username == '\0')
|
|
||||||
username = _("[unknown]");
|
|
||||||
appendStringInfoString(buf, username);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'd':
|
case 'd':
|
||||||
if (MyProcPort)
|
if (MyProcPort)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user