<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pg_statio_all_tables on Postgres Scripts</title><link>https://www.postgresscripts.com/tags/pg_statio_all_tables/</link><description>Recent content in Pg_statio_all_tables on Postgres Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>PostgresScripts.com</copyright><lastBuildDate>Sat, 04 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.postgresscripts.com/tags/pg_statio_all_tables/index.xml" rel="self" type="application/rss+xml"/><item><title>List PostgreSQL Object Comments with SQL</title><link>https://www.postgresscripts.com/post/list-postgresql-object-comments/</link><pubDate>Sat, 04 Apr 2026 00:00:00 +0000</pubDate><guid>https://www.postgresscripts.com/post/list-postgresql-object-comments/</guid><description>
&lt;h2 id="list-postgresql-object-comments-with-sql"&gt;List PostgreSQL Object Comments with SQL&lt;/h2&gt;
&lt;p&gt;PostgreSQL allows you to attach plain-text comments to tables, columns, indexes, functions, and other database objects using the &lt;code&gt;COMMENT ON&lt;/code&gt; command. These comments are stored in the system catalog and are visible in psql, pgAdmin, and any tool that reads &lt;code&gt;pg_description&lt;/code&gt;. They are one of the most underused features for keeping a schema self-documenting.&lt;/p&gt;
&lt;p&gt;This SQL query lists comments on every column across all tables in your database, showing the schema, table name, column name, and the comment text. It is useful for auditing schema documentation, onboarding new team members, and verifying that comments are in place before a schema handover.&lt;/p&gt;</description></item></channel></rss>