How to parameterize an ALTER ROLE statement in Postgresql?
问题 I'm trying to make a PHP interface to my PSQL database, and I would like a few local users registered on PSQL to log into my DB. I would first create each username for each user, with a generic password like 'Password123', and then the user could latter change his/her password. To do that, I thought of using a simple PHP form: <form action="" method="post"> <table> <tr> <td> User: </td> <td> <input type="text" name="user" /> </td> </tr> <tr> <td> Old password: </td> <td> <input type="password