Crunchy Data
Read post

Postgres Internals Hiding in Plain Sight

Explores PostgreSQL's internal catalog system, which stores metadata about the database itself. Covers essential psql commands (like \d, \di, \dx), key system views (pg_stat_activity, pg_stat_statements, pg_locks), and underlying catalog tables (pg_class, pg_type, pg_proc). Demonstrates practical queries for troubleshooting performance issues, identifying unused indexes, checking locks, and understanding database configuration. Includes tips for using ECHO_HIDDEN to reveal the SQL behind psql commands.

    #performance#database#sql#postgresql
Nov 07, 2025•10m read time•From crunchydata.com
Post cover image
Table of contents
psql’s catalog informationImportant Postgres catalog viewsPostgres catalog tablesExploring system tables with ECHO_HIDDEN or -EGetting to Postgres internals
3.7K Impressions
Crunchy Data's image
Crunchy Data

CrunchyData's platform is a central hub for PostgreSQL professionals and database administrators, of...

107 Followers

•

900 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard