Skip to content

Use the recommended c-ares DNS backend instead of evdns? #188

@edmorley

Description

@edmorley

The upstream PgBouncer project supports multiple DNS backends, described in the table here:
https://www.pgbouncer.org/install.html

That page then goes on to say:

c-ares is the most fully-featured implementation and is recommended for most uses and binary packaging (if a sufficiently new version is available). Libevent’s built-in evdns is also suitable for many uses, with the listed restrictions. The other backends are mostly legacy options at this point and don’t receive much testing anymore.

By default, c-ares is used if it can be found. ...

However, the pgbouncer binaries used by this buildpack currently use evdns instead of c-ares since the library for the latter isn't in the Heroku base image.

The library is small, so we (the languages team) would be open to adding it to the base image to allow this buildpack to switch to the c-ares backend - if that would be of interest to the Data team?

https://packages.ubuntu.com/noble/libc-ares-dev
https://packages.ubuntu.com/noble/libcares2

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