How to create user if i want to force user to change password for the first time login to the database?
When i using code like
CREATE USER myUser WITH PASSWORD 'mypass' VALID UNTIL current_date
ERROR: syntax error at or near "current_date"
LINE 1: ...REATE USER myUser WITH PASSWORD 'mypass' VALID UNTIL current_da...
VALID UNTILcan't be an expression, it must be a constant (e.g.valid until '2021-10-26'. But that won't "force the user to change the password" - it will simply reject any login attempt by the user if the account is expired