Skip to content

Problem when using the current connection mechanism #9

@vicenteferrari

Description

@vicenteferrari

When using this library's way of connecting to a server, i.e. with PQconnectStart, instead of PQconnectdb, I get a CONNECTION_BAD result. When I switched to PQconnectdb, it worked fine. Maybe because of this line:

Use PQsocket(conn) to obtain the descriptor of the socket underlying the database connection. (Caution: do not assume that the socket remains the same across PQconnectPoll calls.)

from https://www.postgresql.org/docs/current/libpq-connect.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions