Cursor with hold for select

From: Bindra Bambharoliya <bindra(dot)bambharoliya(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Cursor with hold for select
Date: 2024-03-22 16:24:01
Message-ID: CAPLVUMAwOBS1aB6h78bTBP+2EBB=Yq1ape2JsViRSV4tJGPSnQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,
I am facing issue with postgresql 11.17 version.
When I use normal select it executes within 15 seconds.
When use same query with begin; cursor "sql1" hold for select....
Fetch 100 to "sql1" it takes 3 minutes and sometime not executing even in
10 minutes. And I need to kill it.
What could be the root cause. And how can we over one form this.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message James Pang 2024-03-23 13:29:55 create index concurrently blocked by other query
Previous Message Vijaykumar Jain 2024-03-22 12:12:53 Re: To redirect PgBadger logs