pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hellen Jiang <hjiang@federatedwireless.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Materialized view refreshing problem
Date: Thu, 24 Aug 2023 15:57:38 -0400
Message-ID: <3970229.1692907058@sss.pgh.pa.us> (raw)
In-Reply-To: <BLAPR17MB41931DAC530D73B87BA52BB7D21DA@BLAPR17MB4193.namprd17.prod.outlook.com>
References: <BLAPR17MB4193164502E8A94C0A2A7080D21DA@BLAPR17MB4193.namprd17.prod.outlook.com>
	<3961855.1692903749@sss.pgh.pa.us>
	<BLAPR17MB41931DAC530D73B87BA52BB7D21DA@BLAPR17MB4193.namprd17.prod.outlook.com>

Hellen Jiang <hjiang@federatedwireless.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





view thread (4+ messages)

Message-ID: <3970229.1692907058@sss.pgh.pa.us>
Permalink:  ../3970229.1692907058@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3970229.1692907058@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hjiang@federatedwireless.com
  Subject: Re: Materialized view refreshing problem
  In-Reply-To: <3970229.1692907058@sss.pgh.pa.us>
  References: <BLAPR17MB4193164502E8A94C0A2A7080D21DA@BLAPR17MB4193.namprd17.prod.outlook.com> <3961855.1692903749@sss.pgh.pa.us> <BLAPR17MB41931DAC530D73B87BA52BB7D21DA@BLAPR17MB4193.namprd17.prod.outlook.com> <3970229.1692907058@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox