Re: waiting for client write

Поиск
Список
Период
Сортировка
От Vijaykumar Jain
Тема Re: waiting for client write
Дата
Msg-id CAM+6J96TH69C04=rX1Aj7E08bgaWS4HxZEhoOedkWX=vKi8VLQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: waiting for client write  (Ayub Khan <ayub.hp@gmail.com>)
Список pgsql-performance

On Tue, 15 Jun 2021 at 21:13, Ayub Khan <ayub.hp@gmail.com> wrote:
>
>
> Would it be a cursor issue on postgres, as there seems to be a difference in how cursors are handled in postgres and Oracle database. It seems cursors are returned as buffers to the client side. Below are the steps we take from jdbc side

i did this as well to understand what caused clientwrite wait event.
open a cursor, fetch some rows but not all, and not close them. run this for multiple connections.
All i got was some client read, but no client write.
I think i might have to intentionally mangle some response packets from server to client to see if that helps,
but I was thinking i am diverting from the main problem.
unless we have a reproducible dataset to work on, i was not sure it was helping.

If you can have some sample table(s), and can create a proc on the same lines as above to query data, and still get the same issues.
that would be helpful to debug further.

else,
you may have to give a stacktrace using pstack or gdb / perf etc to help figure out what is going on at code level.

This may / may not help, but it'll help learn to eliminate noise :) 





В списке pgsql-performance по дате отправления:

Предыдущее
От: Atul Kumar
Дата:
Сообщение: Re: Master - Slave Replication Window Server
Следующее
От: Haseeb Khan
Дата:
Сообщение: PostgreSQL V13 Replication Issue