[PATCH]: Not to invaldiate CatalogSnapshot for local invalidation messages - Mailing list pgsql-hackers

From Xiaoran Wang
Subject [PATCH]: Not to invaldiate CatalogSnapshot for local invalidation messages
Date
Msg-id CAGjhLkP_Bqk1nHqFHbpbcM62wdNaiS-BV-AHi-Te-BvjXrrxow@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH]: Not to invaldiate CatalogSnapshot for local invalidation messages
List pgsql-hackers

Hi hackers,

For local invalidation messages, there is no need to call

`InvalidateCatalogSnapshot` to set the CatalogSnapshot to NULL and
 rebuild it later. Instead, just update the CatalogSnapshot's `curcid`
 in `SnapshotSetCommandId`, this way can make the CatalogSnapshot work
well too.
 This optimization can reduce the overhead of rebuilding CatalogSnapshot
 after each command.

 

Best regards, xiaoran
Attachment

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: pg_upgrade and logical replication
Next
From: Amit Kapila
Date:
Subject: Re: pg_upgrade and logical replication