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

From Adrian Klaver
Subject Re: Mat Views and Conflicts
Date
Msg-id c02bdeda-9ffb-42a5-8b6d-c13b9380f0fe@aklaver.com
Whole thread Raw
In response to Mat Views and Conflicts  (Zahir Lalani <ZahirLalani@oliver.agency>)
Responses RE: Mat Views and Conflicts
List pgsql-general
On 2/19/24 09:52, Zahir Lalani 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?

1) When you say '... ran the underlying query ...' are you referring to:

REFRESH MATERIALIZED VIEW
https://www.postgresql.org/docs/current/sql-refreshmaterializedview.html

2) What is the complete error message from the Postgres log?

> 
> Have I got it wrong??
> 
> Z
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com




pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Mat Views and Conflicts
Next
From: Adrian Klaver
Date:
Subject: Re: DETAIL: Could not open file "pg_xact/0EEA": No such file or directory