Re: Vacuum process waiting on BufferPin - Mailing list pgsql-general

From Don Seiler
Subject Re: Vacuum process waiting on BufferPin
Date
Msg-id CAHJZqBAON7a9LGxf3gAtptoEG6AngHCwCibZGRBYn6dqsSreJQ@mail.gmail.com
Whole thread Raw
In response to Re: Vacuum process waiting on BufferPin  (Vick Khera <vivek@khera.org>)
Responses Re: Vacuum process waiting on BufferPin
List 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 by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Copying data from a CSV file into a table dynamically
Next
From: Vick Khera
Date:
Subject: Re: Vacuum process waiting on BufferPin