[PATCH] Report userid to PgBackendStatus for standalone backends
Hi,
Standalone backends always use the BOOTSTRAP_SUPERUSER, it might be
good to report it to PgBackendStatus so that we can query it even in single
user mode.
Thoughts?
--
Regards,
ChangAo Chen
On Tue, Sep 08, 2026 at 06:02:52PM +0800, cca5507 wrote:
Standalone backends always use the BOOTSTRAP_SUPERUSER, it might be
good to report it to PgBackendStatus so that we can query it even in single
user mode.
Why should we care for a process kicked by postgres --single? No
other processes can look at the information provided. :)
--
Michael
Why should we care for a process kicked by postgres --single? No
other processes can look at the information provided. :)
Yeah, I find it by querying pg_stat_activity in single user mode and the result
doesn't show the username, which looks a bit strange though harmless.
--
Regards,
ChangAo Chen