PostgreSQL User Permissions

Source: Internet
Author: User

After a new user is added, if the user is allowed to access the database?

1. Add the configuration in HBA. config. If there is a general configuration, it does not need to be processed. For example, if the user item is "all"

2. The new user is not the database owner. Therefore, all objects must be granted permissions. Each table and view may cause trouble when there are more objects. You can consider writing a process. Note that public represents all users when configuring permissions.

3. after ownership of the database is moved to a new user, it is still inaccessible because although the database owner is a new user, the objects (such as tables) in the database do not change the owner at the same time, you also need to change the owner of all objects.

Related Article

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.