diff options
| author | Amit Kapila <akapila@postgresql.org> | 2025-03-13 09:03:45 +0530 |
|---|---|---|
| committer | Amit Kapila <akapila@postgresql.org> | 2025-03-13 09:16:33 +0530 |
| commit | 3abe9dc18892b9f69bb48a2eb21fbe5cf348a489 (patch) | |
| tree | 94c13f6e439179127d0b8bd9d03d080726bedda1 /src/include/commands | |
| parent | 75da2bece670059f3c1a3628dfbc3d24cc9638b8 (diff) | |
Avoid invalidating all RelationSyncCache entries on publication rename.
On Publication rename, we need to only invalidate the RelationSyncCache
entries corresponding to relations that are part of the publication being
renamed.
As part of this patch, we introduce a new invalidation message to
invalidate the cache maintained by the logical decoding output plugin. We
can't use existing relcache invalidation for this purpose, as that would
unnecessarily cause relcache invalidations in other backends.
This will improve performance by building fewer relation cache entries
during logical replication.
Author: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Author: Shlok Kyal <shlok.kyal.oss@gmail.com>
Reviewed-by: Hou Zhijie <houzj.fnst@fujitsu.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/OSCPR01MB14966C09AA201EFFA706576A7F5C92@OSCPR01MB14966.jpnprd01.prod.outlook.com
Diffstat (limited to 'src/include/commands')
| -rw-r--r-- | src/include/commands/publicationcmds.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/commands/publicationcmds.h b/src/include/commands/publicationcmds.h index e11a942ea0f..e41df6db038 100644 --- a/src/include/commands/publicationcmds.h +++ b/src/include/commands/publicationcmds.h @@ -38,5 +38,6 @@ extern bool pub_contains_invalid_column(Oid pubid, Relation relation, char pubgencols_type, bool *invalid_column_list, bool *invalid_gen_col); +extern void InvalidatePubRelSyncCache(Oid pubid, bool puballtables); #endif /* PUBLICATIONCMDS_H */ |
