On Saturday, June 15, 2024, Koen De Groote <
kdg.dev@gmail.com> wrote:
Nothing is said about indexes. Maybe for good reason, maybe they are fully functionality immediately after replication?
So the main question: Once a table is fully replicated, do I need to vacuum(analyze) that table, or are the indexes on that table already functional?
The whole point of “logical” replication is that the inserts/updates/deletes are reapplied on the secondary against the table and the whatever triggers, indexes, or whatnot exist on that table in the secondary behave just as if you connected to the server directly and issued the corresponding SQL against it. As far as the replication system is concerned none of those things on the primary matter nor does it have to care about them on the secondary.
David J.