Re: Vacuum process waiting on BufferPin

Поиск
Список
Период
Сортировка
От Don Seiler
Тема Re: Vacuum process waiting on BufferPin
Дата
Msg-id CAHJZqBAON7a9LGxf3gAtptoEG6AngHCwCibZGRBYn6dqsSreJQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Vacuum process waiting on BufferPin  (Vick Khera <vivek@khera.org>)
Ответы Re: Vacuum process waiting on BufferPin  (Vick Khera <vivek@khera.org>)
Список pgsql-general
On Mon, Aug 13, 2018 at 5:55 PM, Vick Khera <vivek@khera.org> wrote:
On Mon, Aug 13, 2018 at 5:19 PM, Don Seiler <don@seiler.us> wrote:

I don't quite follow this. What circumstances would lead to this situation?

BEGIN WORK;
DECLARE CURSOR ... ;
FETCH ...;  -- for some number of fetches, which does not reach the end of the cursor.

then just sit there idle, without having closed the cursor or fetching anything more.

So the fix in that case would be to ensure that they CLOSE the cursors when done with them?

Don.

--
Don Seiler
www.seiler.us

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Copying data from a CSV file into a table dynamically
Следующее
От: Vick Khera
Дата:
Сообщение: Re: Vacuum process waiting on BufferPin