Re: Add wait event for log emission?

2023-06-13 Thread Kyotaro Horiguchi
At Tue, 13 Jun 2023 17:18:58 -0700, Andres Freund wrote in > Hi, > > On 2023-06-13 20:55:19 +0200, Magnus Hagander wrote: > > On Tue, Jun 13, 2023 at 6:59 PM Andres Freund wrote: > > > I think we should add a few wait events for log emission. I think it'd be > > > good > > > to have one wait e

Re: Add wait event for log emission?

2023-06-13 Thread Andres Freund
Hi, On 2023-06-13 20:55:19 +0200, Magnus Hagander wrote: > On Tue, Jun 13, 2023 at 6:59 PM Andres Freund wrote: > > > > Hi, > > > > I just helped somebody debug a postgres performance problem that turned out > > to > > be not actually be postgres' fault. It turned out to be because postgres' >

Re: Add wait event for log emission?

2023-06-13 Thread Magnus Hagander
On Tue, Jun 13, 2023 at 6:59 PM Andres Freund wrote: > > Hi, > > I just helped somebody debug a postgres performance problem that turned out to > be not actually be postgres' fault. It turned out to be because postgres' > stdout/stderr were piped to a program, and that program was slow. Whenever

Re: Add wait event for log emission?

2023-06-13 Thread Nathan Bossart
On Tue, Jun 13, 2023 at 09:58:54AM -0700, Andres Freund wrote: > I think we should add a few wait events for log emission. I think it'd be good > to have one wait event for each log destination. +1 -- Nathan Bossart Amazon Web Services: https://aws.amazon.com

Add wait event for log emission?

2023-06-13 Thread Andres Freund
Hi, I just helped somebody debug a postgres performance problem that turned out to be not actually be postgres' fault. It turned out to be because postgres' stdout/stderr were piped to a program, and that program was slow. Whenever the pipe buffer filled up, postgres stopped making progress. Tha