Can you please tell me how to lock a user in Postgres for temporarily. I have tried different commands but nothing seems to work.
- REVOKE connect from john.
- alter user john ACCOUNT lock;
please help me. my ph_hba conf file
# IPv4 local & remote connections:
host all all 127.0.0.1/32 trust
host all all 0.0.0.0/0 md5
host all john 0.0.0.0/0 reject
# IPv6 local connections:
host all all ::1/128 trust
host all john 0.0.0.0/0 reject