Skip to content

rdb_catalog

RAODB SQL catalog, session, index and vacuum diagnostic views

rdb_catalog · RAODB SQL catalog, session, index and vacuum diagnostic views

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102224rdb_catalogrdb_catalog1.7STATSQL
Relationships
Requirespg_qualstats pg_stat_statements

Usage

Sources:

rdb_catalog 1.7 is a SQL extension from the RAODB development tree. It installs catalog wrappers and diagnostic views in public; it does not provide a monitoring collector or automatic tuning.

Core Workflow

CREATE EXTENSION pg_stat_statements;
CREATE EXTENSION pg_qualstats;
CREATE EXTENSION rdb_catalog;
SELECT * FROM public.v$databases;
SELECT * FROM public.ses$blocked;
SELECT * FROM public.vac$needed;

Operational Boundaries

Install as an administrator. Although the control file has an empty dependency list, the 1.4→1.6 SQL scripts directly query pg_qualstats and pg_stat_statements. Prepare those extensions in the same database and configure their collection/preload requirements before loading the complete 1.7 chain. This extension has no shared library of its own. PostgreSQL-major compatibility and a redistribution license are not stated in the inspected sources.

The v$ views cover objects, privileges, partitions and statistics; ses$ views expose sessions, blocking and locks; stx$ views identify statistics conditions; ind$ views summarize index and predicate observations; vac$ views cover vacuum activity and freeze risk. Some catalog sources are restricted to privileged users. Grant access selectively: view results can expose database structure, session queries and user-mapping options.

Treat diagnostic names as heuristics. For example, ind$safe_to_drop uses current usage counters and excludes primary-key names, but does not prove that an index is safe to remove. Counter resets, unobserved workloads and constraints must be reviewed separately. The scripts perform no automatic index removal.

The default version is assembled from the 1.0 install file plus all seven consecutive upgrade scripts; install the complete SQL set. Inspect it against the target server and dependency versions before use. Preserve any changes to the bundled wait-event lookup tables in backups; this is source-only catalog intake, not a tested Pigsty package.

Table reader