Re: Blocking Alert

Поиск
Список
Период
Сортировка
От Shreeyansh Dba
Тема Re: Blocking Alert
Дата
Msg-id CAGDYbUPkgN1G94wvxw1TZ-jMvnTmEx39kWuLFJeXLTE-6yJoww@mail.gmail.com
обсуждение исходный текст
Ответ на Blocking Alert  ("Anjul Tyagi" <anjul@ibosstech-us.com>)
Ответы Re: Blocking Alert
Список pgsql-admin
Hi Anjul,

You can use log_statement = all in postgresql.conf if you want full parameter logging.

Another option is to set log_min_duration_statement = 0 to use with pgBadger to get the actual parameter value in place of $1 and $2.




On Mon, Oct 1, 2018 at 11:32 AM Anjul Tyagi <anjul@ibosstech-us.com> wrote:
Hi All,

we recently implement the blocking alert in our production server. However whenever we receive the blocking alert, we need th actual parameters value to figure out the issues. Can you please help up to get the actual parameter value in place of $1 and $2. 



blocked_pid | blocked_user | blocked_duration | blocking_pid | blocking_user | blocking_duration |                            blocked_statement                            |                           blocking_statement                           
-------------+--------------+------------------+--------------+---------------+-------------------+-------------------------------------------------------------------------+-------------------------------------------------------------------------
       21961 | ssusers    | 00:00:03.729771  |        15928 | ssusers      | 00:00:24.207317   | select * from get_updated_doc_list($1,XML($2)) as result | select * from get_updated_doc_list($1,XML($2)) as result
(1 row)

 
 
 

Regards,

Anjul TYAGI

 

ü Go Green


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

Предыдущее
От: "Anjul Tyagi"
Дата:
Сообщение: Blocking Alert
Следующее
От: "Anjul Tyagi"
Дата:
Сообщение: Re: Blocking Alert