RE: Mat Views and Conflicts

From: Zahir Lalani <ZahirLalani(at)oliver(dot)agency>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: Mat Views and Conflicts
Date: 2024-02-20 13:25:14
Message-ID: AS8P251MB01208F555627AE1C46CE0C66A7502@AS8P251MB0120.EURP251.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

-From: David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
-Sent: Tuesday, February 20, 2024 1:20 PM
-To: Zahir Lalani <ZahirLalani(at)oliver(dot)agency>
-Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>; pgsql-general(at)lists(dot)postgresql(dot)org
-Subject: Re: Mat Views and Conflicts
-
-
-On Tuesday, February 20, 2024, Zahir Lalani <mailto:ZahirLalani(at)oliver(dot)agency> wrote:
-
-This suggests that not all the MV data is cached and it still queries the source tables in some way?
-
-No.  That isn’t how MV work.  If you include an MV relation in your query from clause there is no reference or knowledge as to the underlying query that built the MV physical relation.
-
-David J.

Thx David

Cool so that is what my understanding was. But that comes back to my main question - the MV is cached data from the last time refresh was run. If I query the MV and the underlying realtime data changes (i.e. from the source tables not the MV) - should I be getting a replication conflict issue? I would have thought not as the MV data should not have been impacted

Z

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2024-02-20 14:50:02 Re: User pooler error: unsupported startup parameter: extra_float_digits
Previous Message David G. Johnston 2024-02-20 13:19:45 Re: Mat Views and Conflicts