Skip to main content

info

SQL 0.1.1 · Source cbff27b8a34e1384384018680e46c20d5c610cc9.

Signature​

postgremq.info()
RETURNS jsonb

The signature, defaults, and result above were extracted from the installed PostgreSQL catalog.

Report installed schema compatibility​

Returns JSON containing schema_version and legacy protocol_major. The schema version is read from migration tracking; absent tracking yields a null schema version. SQL 0.1.1 reports protocol major as schema major plus one for older clients. This is discovery, not an assertion that migration state is clean or that runtime grants are sufficient.

Transactions and errors​

The function is security-definer and needs no caller SELECT on migration tracking. Malformed or unsupported discovery is rejected by SDK startup. It does not modify state.

All calls require the applicable caller privileges. See SQL errors for driver failures and uncertain outcomes.

Example​

SELECT postgremq.info();

The returned schema version for this release is 10001. Use CLI status to inspect dirty state.

Related: Compatibility, SQL conventions.