Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source-postgres: Don't use IDENTIFY_SYSTEM
Apparently Google's AlloyDB added a gratuitous fifth field to the IDENTIFY_SYSTEM command results, which currently breaks the helper function pglogrepl.IdentifySystem which expects there to be exactly the four fields one gets back from PostgreSQL. The only thing we use IdentifySystem for is to establish the WAL flush location on the server, and we already have our own function (`queryLatestServerLSN`) which does precisely that and doesn't rely on parsing the IDENTIFY_SYSTEM result, so let's just use that one instead.
- Loading branch information