public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Wells Oliver <[email protected]>
Cc: Laurenz Albe <[email protected]>
Cc: pgsql-admin <[email protected]>
Subject: Re: Locks under the hood on re-mat and dropping triggers
Date: Fri, 20 May 2022 16:41:14 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAOC+FBUP248PG-n_w3i4z6FcLuf=X-KDkZ-F1F2OPnDgFbZDwQ@mail.gmail.com>
References: <CAOC+FBXr9mbGAS=D2wNUM7Qky9u_vQA=DXy=A4puhGrbjUFU+g@mail.gmail.com>
	<[email protected]>
	<CAOC+FBUP248PG-n_w3i4z6FcLuf=X-KDkZ-F1F2OPnDgFbZDwQ@mail.gmail.com>

Wells Oliver <[email protected]> writes:
> but what I am seeing is this lock even when the trigger and table are not
> at all used by an entirely separate mat-view being re-materialized.

You'd need to show a test case.  Personally I'm wondering if there's a
foreign key constraint connecting the troublesome table to some table
used by the matview.

			regards, tom lane






view thread (4+ messages)

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: Locks under the hood on re-mat and dropping triggers
  In-Reply-To: <[email protected]>

* 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