Skip to content

Conversation

@scott-rc
Copy link
Contributor

Hey there 👋

I ran into the following error when using pglogrepl.IdentifySystem on Alloy DB:

2025/03/28 16:00:31 ERROR service process failed err="identify system: cannot identify system: expected 4 result columns, got 5"

It turns out Alloy DB returns an extra column named thtoken. I'm not sure if the value is sensitive so I've blurred it out, but here's what the result looks like using psql:

CleanShot 2025-03-28 at 12 29 47@2x

It looks like the columns are returned in the order pglogrepl.IdentifySystem is expecting, so this PR makes it check if there's at least 4 result columns rather than requiring there be 4 columns. I've been running this change in production for a few hours now and it looks to have fixed the issue.

@jackc jackc merged commit 0759e8c into jackc:master Mar 31, 2025
10 checks passed
@jackc
Copy link
Owner

jackc commented Mar 31, 2025

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants