Skip to content

Commit 51ad596

Browse files
scott-rcjackc
authored andcommitted
Handle more than 4 result columns from IDENTIFY_SYSTEM
1 parent fdf4065 commit 51ad596

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pglogrepl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ func ParseIdentifySystem(mrr *pgconn.MultiResultReader) (IdentifySystemResult, e
139139
}
140140

141141
row := result.Rows[0]
142-
if len(row) != 4 {
143-
return isr, fmt.Errorf("expected 4 result columns, got %d", len(row))
142+
if len(row) < 4 {
143+
return isr, fmt.Errorf("expected at least 4 result columns, got %d", len(row))
144144
}
145145

146146
isr.SystemID = string(row[0])

0 commit comments

Comments
 (0)