Postgresql Rdbms - Database Detail Pattern - Documentation for Bmc Discovery Content Reference

Postgresql Rdbms - Database Detail Pattern - Documentation for Bmc Discovery Content Reference

Starting from TKU September 2020 Database Schema node type and Database Table node type were updated to contain DB Server type. (DRDC1-14748)

e.g. SQL Database Schema type was changed to PostgreSQL Database Schema and SQL Database Table type was replaced with PostgreSQL Database Table.

The current pattern allows to discover and model all databases and tables for PostgreSQL Database Server or EnterpriseDB Postgres Advanced Server instances as Detail nodes.

Configuration Options

There are several configuration options available for this product:

OptionDefault valueCommentary
ignore_databases["postgres", "template0", "template1"]List of databases to ignore.
ignore_schemas["pg_catalog", "information_schema"]List of schemas to ignore.
model_schemas_and_tablestrueThe pattern only creates schema and table nodes if this is true. Setting this option to true lengthens the runtime but provides a deeper model.
adminuserEmpty stringIf the pattern cannot find the admin user from the pg_hba.conf file, it uses the value of this string.
active_methodtrueOnly runs commands such as pg_dumpall and psql if this is true.

Queries Run

The pattern runs the following database queries.  When setting up the PostgreSQL credential please ensure it has SELECT access to the relevant databases

QueryReasonPermission
select datname from pg_databaseGet database listselect permission on pg_database
select schemaname, tablename from pg_tablesGet list of tablesselect permission on pg_tables
select pg_database_size(db name)Get database sizesconnect permission on relevant database (see publisher's docs)

The pattern identifies databases and tables of PostgreSQL Database Server or EnterpriseDB Postgres Advanced Server running on Windows and UNIX platforms.

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.