Re: Autovacuum of independent tables - Mailing list pgsql-general

From Michael Holzman
Subject Re: Autovacuum of independent tables
Date
Msg-id CAPNViJo0eRP10-e0VRVgzh2xPobay5FpY2z5OOSLS_-jtasVRg@mail.gmail.com
Whole thread Raw
In response to Re: Autovacuum of independent tables  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Autovacuum of independent tables
List pgsql-general


On Tue, Sep 8, 2020 at 11:28 AM Michael Paquier wrote:

This is called MVCC, which applies to a session as a whole.  The point
here is that even if your application knows that only tableA is used
by a given transaction, Postgres cannot know that, as it could be
possible that data from tableB is needed in this same transaction, so
old versions of the rows from tableB matching with the snapshot hold
by this long-running transaction still have to be around.

 Yes, I thought so. I just hoped there may be a workaround decoupling the tables.
Thanks.

--
Regards,
    Michael Holzman

pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Autovacuum of independent tables
Next
From: Pavel Stehule
Date:
Subject: Re: Autovacuum of independent tables