From: | Nikhil Shetty <nikhil(dot)dba04(at)gmail(dot)com> |
---|---|
To: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
Cc: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: statement_timeout has no effect if sync standby is unavailable |
Date: | 2023-11-02 15:55:02 |
Message-ID: | CAFpL5VwFGojDpgaN18c1v-y2XLRRJMrDRU7ZgtXovz-zV0P3Tw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi Laurenz
I need to check the process state but statement_timeout should timeout such
queries, no?
Thanks,
Nikhil
On Wed, 1 Nov 2023 at 22:09, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
> On Wed, 2023-11-01 at 15:44 +0530, Nikhil Shetty wrote:
> > We have also seen this scenario when we froze the data mount point and
> run a DML
> >
> > Freeze mountpoint
> > date;fsfreeze --freeze /postgres
> > The statement is just stuck even thought statement_timeout is set
> >
> > datid | 14175
> > datname | postgres
> > pid | 5789
> > leader_pid |
> > usesysid | 10
> > usename | postgres
> > application_name | hang_monitor
> > client_addr | 127.0.0.1
> > client_hostname |
> > client_port | 37440
> > backend_start| 2023-11-01 10:05:51.090023+00
> > xact_start | 2023-11-01 10:05:51.167816+00
> > query_start | 2023-11-01 10:05:51.167816+00
> > state_change | 2023-11-01 10:05:51.167817+00
> > wait_event_type | IO
> > wait_event | WALWrite
> > state | active
> > backend_xid | 43242183
> > backend_xmin |
> > query | update HEARTBEAT set last_updated_time = timezone('UTC',
> now()) where ID = 1;
> > backend_type | client backend
>
> Check with "ps": perhaps the backend process is in uninterruptible sleep,
> waiting
> for I/O.
>
> Yours,
> Laurenz Albe
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2023-11-02 16:08:53 | Re: statement_timeout has no effect if sync standby is unavailable |
Previous Message | Rajesh Kumar | 2023-11-02 08:21:00 | Re: Error in log |