pgsql: Reduce relcache access in WAL sender streaming logical changes

2022-01-04 Thread Michael Paquier
Reduce relcache access in WAL sender streaming logical changes get_rel_sync_entry(), which is called each time a change needs to be logically replicated, is a rather hot code path in the WAL sender sending logical changes. This code path was doing a relcache access on relkind and relpartition for

pgsql: Reduce relcache access in WAL sender streaming logical changes

2022-01-04 Thread Michael Paquier
Reduce relcache access in WAL sender streaming logical changes get_rel_sync_entry(), which is called each time a change needs to be logically replicated, is a rather hot code path in the WAL sender sending logical changes. This code path was doing a relcache access on relkind and relpartition for

pgsql: Reduce relcache access in WAL sender streaming logical changes

2022-01-04 Thread Michael Paquier
Reduce relcache access in WAL sender streaming logical changes get_rel_sync_entry(), which is called each time a change needs to be logically replicated, is a rather hot code path in the WAL sender sending logical changes. This code path was doing a relcache access on relkind and relpartition for