DEV Community

Talha Munir πŸ‡΅πŸ‡Έ
Talha Munir πŸ‡΅πŸ‡Έ

Posted on β€’ Edited on

What can a pg_ba_admin do and what they can't

Now we will discuss what a pg_ba_admin role can do, and what actions are out of the reach of the user with this role.

What can a pg_ba admin role do:
A user with a pg_ba_admin role can perform many operations typically reserved for the Postgres superuser. For example, they can:

  • Create roles
  • Create Databases
  • Create, modify, and delete any non-superuser role which also includes the setting of passwords.
  • SET Another role for any user except the superuser without the need for a password.
  • Read the data from all the Postgres system catalogs in pg_catalog.
  • Read and write to all user objects such as tables, views, etc.
  • Perform all monitoring functions on the Postgres instance.
  • Install supported extensions for EDB.
  • Grant pg_checkpoint role to itself and to other users.

What a pg_ba_admin can't do:
There are certain roles and actions that can't be performed by pg_ba_admin. Some of them are mentioned below:

  • Can't execute programs on the server.
  • Can't Create tablespaces, casts, operator classes, access methods, and text search templates.
  • Can't read or write files on the server. pg_ba_admin does not have permission to read or write server files.
  • Can't Define LeakProof functions.
  • Can't install unsupported extensions.
  • Can't execute set session authorization.
  • Can't execute reindex system catalogs.
  • Can't create a language with custom handlers.

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry πŸ•’

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more β†’

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs