[GENERAL] SELECT and RowExclusiveLock

Поиск
Список
Период
Сортировка
От Tim Nelson
Тема [GENERAL] SELECT and RowExclusiveLock
Дата
Msg-id CAK09zor4KAGRQaA0E5etdRc+qVoGZk20E5+sJrcQZPLU3RB8Ww@mail.gmail.com
обсуждение исходный текст
Ответы Re: [GENERAL] SELECT and RowExclusiveLock  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: [GENERAL] SELECT and RowExclusiveLock  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: [GENERAL] SELECT and RowExclusiveLock  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
New to Postgres and I have never seen this condition.  We are getting test applications hanging on SELECT statements with a RowExclusiveLock.  How can a SELECT cause a RowExclusiveLock?

 relname          |  pid  |       mode       | granted
--------------------------+-------+------------------+---------
 sales_transaction_detail |   392 | RowExclusiveLock | t
 sales_transaction_detail | 19077 | RowExclusiveLock | t
 sales_transaction_header | 32661 | RowExclusiveLock | t
 sales_transaction_header |   392 | RowExclusiveLock | t
 sales_transaction_header | 19077 | RowExclusiveLock | t

  pid  |       age        | usename  |                                    query
-------+------------------+----------+----------------------------------------------------------------------------------
 32661 | -07:42:39.289945 | postgres | UPDATE "sales_transaction_header" SET "create_datetime" = '2017-04-07T02:20:39.4
 19077 | -07:42:15.976288 | postgres | SELECT "price_benefit"."id", "price_benefit"."create_datetime", "price_benefit".
   392 | -07:01:44.121346 | postgres | SELECT "price_benefit"."id", "price_benefit"."create_datetime", "price_benefit".

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

Предыдущее
От: Thorsten Glaser
Дата:
Сообщение: Re: [GENERAL] pg_dump: creates dumps that cannot be restored
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: [GENERAL] SELECT and RowExclusiveLock