Alex Georgiev (@alexgeorgiev17) follows an identity column through a logical replication cutover in “PostgreSQL 19's sequence replication only catches up when you tell it to” (https://dev.to/alexgeorgiev17/postgresql-19s-sequence-replication-only-catches-up-when-you-tell-it-to-2410). His PostgreSQL 19 RC1 experiment illustrates why the last replicated row and the next locally generated ID are separate things to verify.
A current table can have an old sequence
In Georgiev's test, the subscriber received the initial 1,000 orders and the corresponding sequence state. Another 500 rows reached the subscriber while its sequence value stayed at 1,000. An explicit sequence refresh brought the value up to 1,500. After another 200 rows arrived, he removed the subscription without refreshing again and reported a duplicate-key error on the first local insert. The subscriber had already stored the row with ID 1,501, and its sequence tried to issue that ID again.
The PostgreSQL sequence replication documentation describes separate operations for the initial copy, discovering newly added sequences, and resynchronizing sequences the subscription already knows about. The initial copy depends on having data copying enabled. Refreshing the publication is useful when a migration adds a sequence. The subscriber needs a matching sequence definition, so applying the table and identity-column schema belongs on the cutover checklist too.
What to check before routing writes
Consider a planned move where an application usually inserts orders in the background. A cutover rehearsal can stop those writes on the old server, wait for the final transactions to reach the subscriber, refresh its sequences while it can still reach the publisher, and verify that the sequence worker has finished. The documentation describes a worker handling synchronization, so the refresh command returning by itself provides limited evidence about readiness.
For a simple increment-by-one identity column, verifying the sequence against the keys already present on the destination is a separate check from verifying replicated row counts. Other sequence definitions can require different checks. Georgiev's numbers come from his release candidate setup. A runbook can turn that observation into two explicit checkpoints before changing the application's connection target.