SELECT
name,
setting,
source
FROM pg_settings
WHERE name = 'TimeZone';
SELECT pid FROM pg_stat_activity
SELECT pg_terminate_backend(<pid>);
To retrieve all table information from a TimescaleDB database, which is built on top of PostgreSQL, you can query the system catalog tables. Specifically, TimescaleDB adds metadata for hypertables and continuous aggregates, which you may also want to include.