Re: Materialized view refreshing problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hellen Jiang <hjiang(at)federatedwireless(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Materialized view refreshing problem
Date: 2023-08-24 19:57:38
Message-ID: 3970229.1692907058@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hellen Jiang <hjiang(at)federatedwireless(dot)com> writes:
> When the materialized view was refreshing concurrently, I saw the pg_lock like this: there was no response within 30 seconds when the api calls this query, and we got api time out.

Well, that seems to confirm my idea that the REFRESH is blocked behind
somebody else's lock. But you need to look to see which session is
holding a lock on mvw_cbsd_status_grants_lessinfo_active_softmarker
and what it's doing.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jitesh Srivastava 2023-08-24 22:28:06 Support for Deferred Constraints in PG15 Logical Replication
Previous Message Hellen Jiang 2023-08-24 19:36:41 Re: Materialized view refreshing problem