Re: including pid's for `There are XX other sessions using the database`

2022-08-21 Thread Zhihong Yu
On Sun, Aug 21, 2022 at 6:39 AM Julien Rouhaud wrote: > Hi, > > On Sat, Aug 20, 2022 at 02:52:29AM -0700, Zhihong Yu wrote: > > On Fri, Aug 19, 2022 at 9:31 PM Euler Taveira wrote: > > > > > > > Thanks for responding. > > > > Since pg_stat_activity shows fewer number of connections compared to

Re: including pid's for `There are XX other sessions using the database`

2022-08-21 Thread Julien Rouhaud
Hi, On Sat, Aug 20, 2022 at 02:52:29AM -0700, Zhihong Yu wrote: > On Fri, Aug 19, 2022 at 9:31 PM Euler Taveira wrote: > > > > Thanks for responding. > > Since pg_stat_activity shows fewer number of connections compared to the > number revealed in the error message, > I am not sure the above

Re: including pid's for `There are XX other sessions using the database`

2022-08-20 Thread Zhihong Yu
On Fri, Aug 19, 2022 at 9:31 PM Euler Taveira wrote: > On Fri, Aug 19, 2022, at 2:10 PM, Zhihong Yu wrote: > > I want to poll the community on whether including proc->pid's in the error > message would be useful for troubleshooting. > > Such message is only useful for a parameter into a

Re: including pid's for `There are XX other sessions using the database`

2022-08-19 Thread Euler Taveira
On Fri, Aug 19, 2022, at 2:10 PM, Zhihong Yu wrote: > I want to poll the community on whether including proc->pid's in the error > message would be useful for troubleshooting. Such message is only useful for a parameter into a pg_stat_activity query. You don't need the PID list if you already

including pid's for `There are XX other sessions using the database`

2022-08-19 Thread Zhihong Yu
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