Skip to content

Implement Connection Service File #538

@feikesteenbergen

Description

@feikesteenbergen

Currently the driver does not support specifying a connection using a service description.
Details: https://www.postgresql.org/docs/current/static/libpq-pgservice.html

I'm currently not a go programmer myself, however looking at the code I might be able to create a proof-of-concept implementation.

Basically, what needs to happen that iff a service is specified, we need to read the libpq parameters from the Connection Service File. For a start, we could use the same logic (and limitations) as the pgpass reading: https://github.com/lib/pq/blob/master/conn.go#L159-L168

Questions:

  • Does anyone - other than me - think this is useful?
  • The Connection Service File is in an ini format, should we use an external ini (or toml) library to implement this?

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