<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pg_inherits on Postgres Scripts</title><link>https://www.postgresscripts.com/tags/pg_inherits/</link><description>Recent content in Pg_inherits on Postgres Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>PostgresScripts.com</copyright><lastBuildDate>Thu, 09 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.postgresscripts.com/tags/pg_inherits/index.xml" rel="self" type="application/rss+xml"/><item><title>List PostgreSQL Partitioned Tables with SQL</title><link>https://www.postgresscripts.com/post/list-postgresql-partitioned-tables/</link><pubDate>Thu, 09 Apr 2026 00:00:00 +0000</pubDate><guid>https://www.postgresscripts.com/post/list-postgresql-partitioned-tables/</guid><description>
&lt;h2 id="how-to-list-postgresql-partitioned-tables"&gt;How to List PostgreSQL Partitioned Tables&lt;/h2&gt;
&lt;p&gt;PostgreSQL table partitioning splits a large table into smaller physical pieces called child partitions. This improves query performance and simplifies data lifecycle management. But as a DBA, you need a quick way to see which tables in your database use partitioning — and which do not.&lt;/p&gt;
&lt;p&gt;This SQL query reads directly from the PostgreSQL system catalogs to list every table in your database, labeling each as a partitioned table or an ordinary table, while excluding system schemas and child partition tables.&lt;/p&gt;</description></item></channel></rss>