Re: Mat Views and Conflicts - Mailing list pgsql-general

From David G. Johnston
Subject Re: Mat Views and Conflicts
Date
Msg-id CAKFQuwaQ+1sCCVfy82b9TPzvh64Z30xa2mxc9yfYcjYFaqyUUA@mail.gmail.com
Whole thread Raw
In response to Mat Views and Conflicts  (Zahir Lalani <ZahirLalani@oliver.agency>)
List pgsql-general
On Mon, Feb 19, 2024, 10:53 Zahir Lalani <ZahirLalani@oliver.agency> wrote:

Hi All

 

My understanding and hope was that Mat Views cache their data and that is how they are so fast. But we are experience “cancelling statement due to conflict with recovery” errors on MV’s with large data sets and I thought that this could only happen if we ran the underlying query, not the Mat View?

 

 

Have I got it wrong??


A materialized view is, physically, just like any other table.  It is a cache but only in the sense that tables cache real life data.

David J.

pgsql-general by date:

Previous
From: Zahir Lalani
Date:
Subject: Mat Views and Conflicts
Next
From: Adrian Klaver
Date:
Subject: Re: Mat Views and Conflicts