Re: Vacuum process waiting on BufferPin

From: Vick Khera <vivek(at)khera(dot)org>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Vacuum process waiting on BufferPin
Date: 2018-08-13 22:55:09
Message-ID: CALd+dccyrP=8OQBEck8xdbFLBBCVALNSZ5M5eJx8V14pPU=xFg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Aug 13, 2018 at 5:19 PM, Don Seiler <don(at)seiler(dot)us> wrote:

> On Mon, Aug 13, 2018 at 4:15 PM, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
> wrote:
>
>>
>> Maybe you had a cursor that was not fully scanned before the session was
>> left idle -- as I recall, those can leave buffers pinned.
>>
>
> 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Favro 2018-08-14 02:19:30 'Identifier' columns
Previous Message Don Seiler 2018-08-13 21:26:50 Re: Vacuum process waiting on BufferPin