Skip to content

Commit

Permalink
Add missing condition for new pgss minor version check
Browse files Browse the repository at this point in the history
  • Loading branch information
lfittl committed Oct 11, 2023
1 parent 02122e4 commit c1b6632
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion input/postgres/statements.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ func GetStatements(ctx context.Context, server *state.Server, logger *util.Logge
var extMinorVersion int16
var foundExtMinorVersion int16

if postgresVersion.Numeric >= state.PostgresVersion13 {
if postgresVersion.Numeric >= state.PostgresVersion14 {
extMinorVersion = 9
} else if postgresVersion.Numeric >= state.PostgresVersion13 {
extMinorVersion = 8
} else {
extMinorVersion = 3
Expand Down

0 comments on commit c1b6632

Please sign in to comment.