Schema access denied of PostgreSQL

Source: Internet
Author: User

Sometimes, users may encounter access to schema... Denied and other error messages.

In Postgresql, data access permissions are divided into at least two levels.

One is schema and the other is table.

Therefore, for a common user test, if a Super User gives him the following permissions:

Grant all on schema01. Table01 to public;

At this time, log on to the test as a common user,

Test => select count (*) from schema01.Tabl01;

The error message is that the schema permission is insufficient.

The following operations can be accessed by the superuser:

S # Grant all on schema01 to public;

For example, schema is a door, and the access to table is a box key.

There is only an out-of-the-box key, and no door key. You cannot see what is in the box. You must open the door before entering the room to open the box.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.