Re: Get memory contexts of an arbitrary backend process

Поиск
Список
Период
Сортировка
От torikoshia
Тема Re: Get memory contexts of an arbitrary backend process
Дата
Msg-id 40c1a4b19ad03beacee2642a3cd61c14@oss.nttdata.com
обсуждение исходный текст
Ответ на Re: Get memory contexts of an arbitrary backend process  (torikoshia <torikoshia@oss.nttdata.com>)
Список pgsql-hackers
Since pg_get_target_backend_memory_contexts() waits to dump memory and
it could lead dead lock as below.

   - session1
   BEGIN; TRUNCATE t;

   - session2
   BEGIN; TRUNCATE t; -- wait

   - session1
   SELECT * FROM pg_get_target_backend_memory_contexts(<pid of session 
2>); --wait


Thanks for notifying me, Fujii-san.


Attached v8 patch that prohibited calling the function inside 
transactions.


Regards,

--
Atsushi Torikoshi
Вложения

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

Предыдущее
От: Andrey Borodin
Дата:
Сообщение: Re: Yet another fast GiST build
Следующее
От: Павел Еремин
Дата:
Сообщение: profiling