Stephen Frost, with some editorialization by me.
</row>
<row>
<entry><literal>%u</literal></entry>
- <entry>User name</entry>
+ <entry>Login user name</entry>
+ <entry>yes</entry>
+ </row>
+ <row>
+ <entry><literal>%U</literal></entry>
+ <entry>Current user name</entry>
<entry>yes</entry>
</row>
<row>
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)
{