Add ps display while waiting for wal in read_local_xlog_page_guts

Поиск
Список
Период
Сортировка
От sirisha chamarthi
Тема Add ps display while waiting for wal in read_local_xlog_page_guts
Дата
Msg-id CAKrAKeXF_fqzArG9uSupK7XqkCXLbs6ynjr91PVRr911ohsb9A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Add ps display while waiting for wal in read_local_xlog_page_guts  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Add ps display while waiting for wal in read_local_xlog_page_guts  ("Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>)
Список pgsql-hackers
Hi,

pg_create_logical_replication_slot can take longer than usual on a standby when there is no activity on the primary. We don't have enough information in the pg_stat_activity or process title to debug why this is taking so long. Attached a small patch to update the process title while waiting for the wal in read_local_xlog_page_guts. Any thoughts on introducing a new wait event too?

For example, in my setup, slot creation took 8 minutes 13 seconds. It only succeeded after I ran select txid_current() on primary.

postgres=# select pg_create_logical_replication_slot('s1','test_decoding');

 pg_create_logical_replication_slot
------------------------------------
 (s1,0/C096D10)
(1 row)

Time: 493365.995 ms (08:13.366)

Thanks,
Sirisha
Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [PATCH] Use role name "system_user" instead of "user" for unsafe_tests
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Wrong results from Parallel Hash Full Join