Remote PostgreSQL User Privileges Checking Tool

Check out PostgreSQL User Privilege Requirements to learn more all detailed requirements while setting up remote PostgreSQL database server for MetaDefender Core.

This tool is to help your database system admin quickly determine whether or not your remote PostgreSQL database have sufficient user privileges as described at PostgreSQL User Privilege Requirements to work properly with MetaDefender Core application.

Download links:

The tool must run on the host where PostgreSQL server is running, and Visual C++ Redistribution 2015 or above is installed.

Usage:

Bash
Copy

Options and arguments:

  • -h (--help) instruction
  • -h (--hostname) database server host or socket directory
  • -p (--port) database server port
  • -u (--pguser) database user name
  • -m (--mainuser) PostgreSQL main user
  • -i (--internaluser) PostgreSQL internal user

If the PostgreSQL own psql executable file has not been assigned to the Windows environmental path yet, and PostgreSQL's registry value does not exist, user has to input their own psql executable path.

Examples:

A. Inspecting PostgreSQL main user

Example 1: PostgreSQL main user with SUPERUSER privilege

Bash
Copy

Example 2: PostgreSQL main user with CREATEDB and CREATEROLE privilege

Bash
Copy

Example 3: PostgreSQL main user without privilege

Bash
Copy

B. Inspecting PostgreSQL internal user

Example 1: PostgreSQL internal user with LOGIN privilege

Bash
Copy

Example 2: PostgreSQL internal user without LOGIN privilege

Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard