Re: Re. Select with where condition times out

From: Michael Nolan <htfoot(at)gmail(dot)com>
To: "sivapostgres(at)yahoo(dot)com" <sivapostgres(at)yahoo(dot)com>
Cc: Postgresql General Group <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Re. Select with where condition times out
Date: 2024-07-20 19:21:56
Message-ID: CAOzAquL475WqGxcgPNbsU4WDD2NeZPbTQRBtv2Kt1Fw5hCzeXw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jul 18, 2024 at 4:38 AM sivapostgres(at)yahoo(dot)com
<sivapostgres(at)yahoo(dot)com> 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
>

If you do a full backup, does it complete in a normal manner and the usual time?

Have you tried doing a shutdown and restart of the database, or
possibly rebooting the server?

You may need to alter the database server settings to increase the
maximum query time.

Mike Nolan
htfoot(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message postgresql 2024-07-20 22:45:36 Bloated pg_catalog.pg_largeobjects
Previous Message Francisco Olarte 2024-07-20 17:24:52 Re: Re. Select with where condition times out