A painted storage vault with tape library robots, disk arrays and one operator console under a desk lamp

PostgreSQL Manager: the DBA queue, checked first

PostgreSQL Manager is the 2501 specialty for PostgreSQL clusters on Unix machines. It handles roles, permissions, connections, maintenance and storage tickets, and it finishes a read-only investigation before it changes anything.

Updated

Specialty

PostgreSQL Manager

Works on
  • PostgreSQL
  • Unix and Linux
  • psql
  • pg_isready
  • vacuumdb
  • reindexdb
Default mode
May fix, within its brief

What PostgreSQL Manager covers

Most PostgreSQL tickets are small. Each one can still lock a table or hand out too much access. PostgreSQL Manager works through psql and standard Unix tools.

Roles and permissions
Creating, renaming and removing roles, password rotation, grants and default privileges.
Connections and locks
Saturation, long-running queries, blocking chains and sessions stuck idle in transaction.
Maintenance and storage
Bloated tables and indexes, autovacuum gaps and WAL growth.
Least invasive first
Cancel before terminate, analyze before vacuum, vacuum before reindex.
How it reaches your systems
PostgreSQL Manager works on the Unix and Linux hosts that run the cluster, which 2501 reaches over SSH.
Default mode: may fix, within its brief
May fix by default, inside the limits on this page. Set it investigate-only and it reports without changing anything, unless a ticket is tagged @2501:remediate.

Problems it handles

One block per kind of ticket: what the agent checks, what it may do, and what it leaves to your team.

Problem 01

What does 2501 do when PostgreSQL runs out of connections?#

It measures connection use against the limit, finds the long-running queries, blocking chains and sessions stuck idle in transaction, and frees them the gentle way first: cancel before terminate. A follow-up query proves the new state.

It checks

  • Connections in use against the configured maximum.
  • Long-running queries, blocking chains and idle-in-transaction sessions.
  • Whether the node is a primary or a replica.

It may

  • Cancel a stuck session, and terminate it only if the cancel did not free the lock.
  • Set a connection limit on service roles.

It leaves to people

  • Changes to postgresql.conf or pg_hba.conf, and any reload or restart.
  • Anything where the root cause is unclear.

Problem 02

How does 2501 handle a request for a new PostgreSQL user?#

It puts the privileges on a group role and the login on its own role, sets an expiry on human passwords and a connection limit on service roles, and never logs the password. Elevated attributes such as SUPERUSER wait for a person.

It checks

  • Existing roles, memberships, grants and default privileges.

It may

  • Create the roles and grants the ticket asks for.
  • Prove the new access with a follow-up query.

It leaves to people

  • Granting SUPERUSER, CREATEROLE, CREATEDB, REPLICATION or BYPASSRLS.

Questions about PostgreSQL Manager

Have a ticket of this kind that is not answered here?Book a demo

Will it restart PostgreSQL to clear a problem?

No. Restarting the cluster is left to a person, and so are reloads and changes to postgresql.conf or pg_hba.conf.

What if WAL has filled the disk?

That needs cleanup outside the database, so PostgreSQL Manager hands the ticket to a disk agent with its findings.

Will it run VACUUM FULL?

Not on a live table, and it never disables autovacuum.

Next step

Bring your PostgreSQL access requests

Pick a week of them. We will show the roles and grants PostgreSQL Manager would have set up.