Re: query against pg_locks leads to large memory alloc

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: query against pg_locks leads to large memory alloc
Дата
Msg-id 1408466441.59082.YahooMailNeo@web122304.mail.ne1.yahoo.com
обсуждение исходный текст
Ответ на Re: query against pg_locks leads to large memory alloc  (Dave Owens <dave@teamunify.com>)
Ответы Re: query against pg_locks leads to large memory alloc  (Dave Owens <dave@teamunify.com>)
Список pgsql-performance
Dave Owens <dave@teamunify.com> wrote:

> 1358 tables
> 1808 indexes

Hmm, that's not outrageous.  How about long-running transactions?
Please check pg_stat_activity and pg_prepared_xacts for xact_start
or prepared (respectively) values older than a few minutes.  Since
predicate locks may need to be kept until an overlapping
transaction completes, a single long-running transaction can bloat
the lock count.

Also, could you show use the output from?:

  SELECT version();

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Dave Owens
Дата:
Сообщение: Re: query against pg_locks leads to large memory alloc
Следующее
От: Dave Owens
Дата:
Сообщение: Re: query against pg_locks leads to large memory alloc