Hi,
Currently errdetail_busy_db() only shows the number of other sessions using
the database but doesn't give any detail about them.
For one of the customers,pg_stat_activity is showing lower number of
connections compared to the number revealed in the error message.
Looking at CountOtherDBBackends(), it seems proc->pid is available
when nbackends is incremented.
I want to poll the community on whether including proc->pid's in the error
message would be useful for troubleshooting.
Thanks