mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03: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:
@@ -1826,16 +1826,6 @@ log_line_prefix(StringInfo buf, ErrorData *edata)
|
||||
appendStringInfoString(buf, username);
|
||||
}
|
||||
break;
|
||||
case 'U':
|
||||
if (MyProcPort)
|
||||
{
|
||||
const char *username = GetUserNameFromId(GetUserId());
|
||||
|
||||
if (username == NULL || *username == '\0')
|
||||
username = _("[unknown]");
|
||||
appendStringInfoString(buf, username);
|
||||
}
|
||||
break;
|
||||
case 'd':
|
||||
if (MyProcPort)
|
||||
{
|
||||
|
Reference in New Issue
Block a user