Re: Query on pg_stat_activity table got stuck

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query on pg_stat_activity table got stuck
Дата
Msg-id 29660.1557352732@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query on pg_stat_activity table got stuck  (neeraj kumar <neeru.cse@gmail.com>)
Ответы Re: Query on pg_stat_activity table got stuck  (Jeremy Schneider <schnjere@amazon.com>)
Re: Query on pg_stat_activity table got stuck  (Jeremy Schneider <schnjere@amazon.com>)
Список pgsql-admin
neeraj kumar <neeru.cse@gmail.com> writes:
> Yes we use SSL to connect to DB.

Hm.  I'm suspicious that one of the functions that fetch data for
an SSL connection threw an error.  In particular, it doesn't look
to be hard at all to make X509_NAME_to_cstring fall over --- an
encoding conversion failure would do it, even without any stretchy
assumptions about OOM this early in backend start.  Have you got
any SSL certificates floating around with non-ASCII subject name
or issuer name?

> From comment seems like each backend should have its own copy
> of PgBackendStatus, it means st_changecount should be different for each
> process. If st_changecount was corrupted for 1/2 process, how can it impact
> newly created process. So could you please help to understand then how come
> if we run new query via new console (means new process) that also is
> getting stuck.

No, that field is in shared memory.  The easiest way to get it reset
would be to restart the postmaster.  It's possible you could do it
without that, by starting enough sessions so that one of them takes
up the broken pg_stat_activity slot.

            regards, tom lane



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

Предыдущее
От: neeraj kumar
Дата:
Сообщение: Re: Query on pg_stat_activity table got stuck
Следующее
От: Hoa Phan
Дата:
Сообщение: How to create a postgres user that auth by AUTH_REQ_MD5