Re: [Suspect SPAM] Better error messages when lacking connection slots for autovacuum workers and bgworkers

2019-02-14 Thread Michael Paquier
On Thu, Feb 14, 2019 at 09:04:37PM +0900, Kyotaro HORIGUCHI wrote: > I agree to the distinctive messages, but the autovaccum and > bgworker cases are in a kind of internal error, and they are not > "connection"s. I feel that elog is more suitable for them. I used ereport() for consistency with the

Re: [Suspect SPAM] Better error messages when lacking connection slots for autovacuum workers and bgworkers

2019-02-14 Thread Kyotaro HORIGUCHI
Hello. At Wed, 13 Feb 2019 14:13:09 +0900, Michael Paquier wrote in <20190213051309.gf5...@paquier.xyz> > Hi all, > > When lacking connection slots, the backend returns a simple "sorry, > too many clients", which is something that has been tweaked by recent > commit ea92368 for WAL senders. Ho

Better error messages when lacking connection slots for autovacuum workers and bgworkers

2019-02-12 Thread Michael Paquier
Hi all, When lacking connection slots, the backend returns a simple "sorry, too many clients", which is something that has been tweaked by recent commit ea92368 for WAL senders. However, the same message would show up for autovacuum workers and bgworkers. Based on the way autovacuum workers are