• Joe Conway's avatar
    Arrange for the authentication request type to be preserved in · 51bc3dfe
    Joe Conway authored
    PGconn. Invent a new libpq connection-status function,
    PQconnectionUsedPassword() that returns true if the server
    demanded a password during authentication, false otherwise.
    This may be useful to clients in general, but is immediately
    useful to help plug a privilege escalation path in dblink.
    Per list discussion and design proposed by Tom Lane.
    51bc3dfe
fe-connect.c 88.3 KB