Skip to content

Binary detection logic fails when pg version reports OS details #9

@nickgsc

Description

@nickgsc

On our database instance, the details of the OS are included in the version string that is reported

postgres@linus-db:~/aiven-db-migrate$ psql --version
psql (PostgreSQL) 12.1 (Ubuntu 12.1-1.pgdg18.04+1)

This interferes with the binary detection logic in the migration code as it includes that in the paths it tries to search:

2020-10-30 15:18:14,652	PGMigrate	ERROR	Couldn't find pg version '12.1 (Ubuntu 12.1-1.pgdg18.04+1)' bin dir, tried: ['/usr/pgsql-12.1 (Ubuntu 12.1-1.pgdg18.04+1)/bin', '/usr/pgsql-12.1 (Ubuntu 12.1-1.pgdg18/bin', '/usr/lib/postgresql/12.1 (Ubuntu 12.1-1.pgdg18.04+1)/bin', '/usr/lib/postgresql/12.1 (Ubuntu 12.1-1.pgdg18/bin']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions