Skip to content

PgPass host still not correctly matched #365

@paour

Description

@paour

What happened?

This is a follow-up from #356.

Steps to reproduce

  1. in Edit Connection dialog, enable Use ~/.pgpass
  2. notice the green message ~/.pgpass found – matching entry exists
  3. click Save
  4. open the same connection
  5. Use ~/.pgpass is disabled -> this setting isn't persisted
  6. click Test connection
  7. error message
connection to server at "MYHOST.postgres.database.azure.com" (4.251.RED.ACT), port 5432 failed: FATAL:  no pg_hba.conf entry for host "185.10.RED.ACT", user "PostgresAdmins", database "ed", no encryption

Expected behavior

  1. the Use ~/.pgpass setting should be saved
  2. connecting to the DB should use the same logic as the green check when the setting is activated

Database type

PostgreSQL

TablePro version

0.20.2

macOS version & chip

No response

Screenshots / Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions