Create only read only with limited access to PostgreSQL Database. This user can only SELECT table data and also restricted by schema access.
1.
Script to Create Read-Only user:
|
2.
Assign permission to this read only user:
|
3. In the above script, you can find that we have restricted user by Database, Schema and SELECT permission to tables.
If you require to give any additional permission like EXECUTE permission for functions, use below script.
|
Leave a Reply