Re: confused about material view locks please explain - Mailing list pgsql-general

From Krishnakant Mane
Subject Re: confused about material view locks please explain
Date
Msg-id 4ba1d48f-c946-404b-9919-231bcbee0130@gmail.com
Whole thread Raw
In response to Re: confused about material view locks please explain  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
Responses Re: confused about material view locks please explain
List pgsql-general
On 7/5/24 21:10, Peter J. Holzer wrote:
> If I understand https://github.com/sraoss/pg_ivm correctly, the
> materialized view will be updated within the same transaction. So it's
> just the same as any other change in the database:
>
> Neither client will wait for the other. The first client will see either
> the old or the new state depending on whether the second client manages
> to commit soon enough.

Thank you Peter.

So does that mean both the processes work concurrently?

  I had understood that while an update is happening to an IVM (material 
view ) the view is locked till the update is complete.

If so then how would both the clients have simultaneous access?


Regards.


>          

>



pgsql-general by date:

Previous
From: Dennis White
Date:
Subject: Re: Can a long running procedure detect when smart shutdown is pending?
Next
From: Pavel Stehule
Date:
Subject: Re: Can a long running procedure detect when smart shutdown is pending?