Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8733197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:36:09+00:00 2026-06-13T09:36:09+00:00

How to forbid non superusers to see other users in postgresql server? ex. If

  • 0

How to forbid non superusers to see other users in postgresql server?

ex. If currently logged in user is not a superuser then the result from

SELECT * from pg_roles;

or

\du

should be only rows with his role

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:36:10+00:00Added an answer on June 13, 2026 at 9:36 am

    You can revoke access to the authentication IDs table in the system catalogs:

    REVOKE SELECT ON pg_catalog.pg_authid FROM public;
    REVOKE SELECT ON pg_catalog.pg_auth_members FROM public;
    

    Note that revoking access to pg_roles is not sufficient, as pg_roles is just a view over pg_authid and it’s trivial to run the view query manually or define a new view with the same query. The information_schema views also use pg_authid directly and are unaffected by revoking access to pg_roles. It is not necessary to revoke access to pg_roles if you’ve revoked access to pg_authid.

    Be aware that revoking access to global tables is still a per-database operation.

    Revoking access to system catalogs may have side effects, including:

    • Some system functions not working as expected
    • Some metadata operations in tools like the JDBC driver failing
    • … etc

    and is not generally considered supported.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to forbid to uninstall an application (not a service!) by a user
How can I forbid users to type numbers in a NSTextField ? I'm currently
Is there is best practice to forbid access to other user's objects in django?
So I am currently writing a part of a program that takes user text
I want to forbid user’s on MySite to edit their details on MySite. When
How Can I forbid repeated characters using regular Expression? This regular Expression should not
I'm trying to forbid multiple logins by the same user at the same time
I have a tabcontroller app and I want to forbid the to user go
I want to take a picture from a non-activity Thread (a web server running
I thought that in principle Haskell's type system would forbid calls to impure functions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.