public inbox for [email protected]
help / color / mirror / Atom feedFrom: Kashif Zeeshan <[email protected]>
To: [email protected] <[email protected]>
Cc: Postgresql General Group <[email protected]>
Subject: Re: Re. Select with where condition times out
Date: Thu, 18 Jul 2024 14:42:41 +0500
Message-ID: <CAAPsdhd0Ln==fwX04d+ePoxLheA2LBz7GXgAjcycZQKBPOD6rg@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
Hi
It can be caused due to Table Bloat, table bloat can slow down queries. Use
the pg_repack extension or VACUUM FULL to try ti fix this table bloat issue.
You can refer to following link
https://supabase.com/blog/postgres-bloat
Regards
Kashif Zeeshan
On Thu, Jul 18, 2024 at 2:38 PM [email protected] <
[email protected]> wrote:
> Hello,
> PG V11
>
> Select count(*) from table1
> Returns 10456432
>
> Select field1, field2 from table1 where field3> '2024-07-18 12:00:00'
> Times out
>
> The above query was working fine for the past 2 years.
>
> Backup was taken a day back. Need to recover complete data as far as
> possible.
>
> Any possible way(s) to do this?
>
> BKR Sivaprakash
>
>
> Yahoo Mail: Search, organise, conquer
> <https://mail.onelink.me/107872968?pid=NativePlacement&c=Global_Acquisition_YMktg_315_EmailSignat...;
>
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Re. Select with where condition times out
In-Reply-To: <CAAPsdhd0Ln==fwX04d+ePoxLheA2LBz7GXgAjcycZQKBPOD6rg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox