Re: SELECT Query taking time WITH Sequence - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: SELECT Query taking time WITH Sequence
Date
Msg-id 2511f19763391f4a0080dcf744b9caf49917b519.camel@cybertec.at
Whole thread Raw
In response to SELECT Query taking time WITH Sequence  (Daulat <daulat.dba@gmail.com>)
List pgsql-admin
On Wed, 2025-03-12 at 22:35 +0530, Daulat wrote:
> The SELECT query takes around 4 minutes to complete when fetching data from the tables
> using a sequence, but without the sequence, the same query takes only a few seconds."
> Anyone please help me with what I need to take care of.

Start with a useful problem report.

You cannot access a table using a sequence.  Perhaps you are talking about a sequential scan.
What is the table definition, the query and its EXPLAIN (ANALYZE, BUFFERS) output?

Yours,
Laurenz Albe



pgsql-admin by date:

Previous
From: Daulat
Date:
Subject: SELECT Query taking time WITH Sequence
Next
From: "David G. Johnston"
Date:
Subject: Re: SELECT Query taking time WITH Sequence