42501: INSUFFICIENT PRIVILEGE ERROR while querying in Postgresql

后端 未结 4 1359
旧巷少年郎
旧巷少年郎 2021-01-17 09:41

I am trying to query a database table in postgresql, but every time I run the below query it gives me the INSUFFICIENT PRIVILEGE error. What possibly could be the reason for

4条回答
  •  别那么骄傲
    2021-01-17 10:17

    It simply means that you have no permission to access app table. Request your root or database administrator to grant you the permission to access app table. if your are the root or have granting privilege you can use grant command to grant your self permission to use all sql statements on table or database
    For Example:

                   grant all privileges on database money to cashier;
    


    before that you have to login as root or user that have granting privileges
    for more details on this command refer to http://www.postgresql.org/docs/8.1/static/sql-grant.html

提交回复
热议问题