diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index ed88ac0..4c71ea4 100644 *** a/doc/src/sgml/libpq.sgml --- b/doc/src/sgml/libpq.sgml *************** char *PQencryptPasswordConn(PGconn *conn *** 7116,7121 **** --- 7116,7154 ---- + + PQchangePasswordPQchangePassword + + + + Changes a PostgreSQL password. + + PGresult *PQchangePassword(PGconn *conn, const char *user, const char *passwd); + + This function uses PQencryptPasswordConn + to build and execute the command ALTER USER ... PASSWORD + '...', thereby changing the user's password. It exists for + the same reason as PQencryptPasswordConn, but + is more convenient as it both builds and runs the command for you. + + + + The user and passwd arguments + are the SQL name of the target user, and the new cleartext password. + + + + Returns a PGresult pointer or possibly a null + pointer. The function + should be called to check the return value for any errors (including + the value of a null pointer, in which case it will return + PGRES_FATAL_ERROR). Use + to get more information about such + errors. + + + + PQencryptPasswordPQencryptPassword