Security
How to List PostgreSQL Roles and Privileges PostgreSQL uses roles for both users and groups. A role with the LOGIN attribute is a user account. A role without LOGIN is typically a group role used to collect privileges that are then granted to login roles. Understanding which roles exist, what privileges they have, and …
Read MoreGrant SELECT on All Tables in PostgreSQL
Mar 27, 2026 / · 4 min read · postgresql database administration sql queries security access control permissions etl postgres dba pg_default_acl ·Grant SELECT on All Tables in PostgreSQL This PostgreSQL script creates a read-only user and grants SELECT privileges on all existing tables in a schema, plus ensures the same access is automatically applied to any future tables created in that schema. Purpose and Overview Third-party ETL tools, reporting tools, and …
Read MorePostgreSQL SSL Settings Query Guide
Mar 17, 2026 / · 4 min read · postgresql database administration sql queries security ssl configuration pg_settings postgres dba pg_stat_ssl ·PostgreSQL SSL Settings Query Guide This PostgreSQL query retrieves all SSL and TLS configuration settings from the pg_settings system view. It surfaces whether SSL is enabled, which certificates and keys are in use, what cipher suites are allowed, and all other SSL-related parameters. Purpose and Overview Encrypting …
Read MorePostgreSQL Authentication Settings Query for Admins
Aug 27, 2025 / · 3 min read · postgresql database authentication security sql scripts database management postgres configuration pg_settings ·PostgreSQL Authentication Settings Query for Admins Managing PostgreSQL at scale requires both fine-grained control and visibility into configuration parameters. One valuable system catalog, pg_settings, provides administrators direct insight into runtime parameters, defaults, and constraints that govern PostgreSQL’s …
Read More