Greenplum 7 (refert to GP7 here) has aligned the internal implementation of partitioned tables with the upstream PostgreSQL. Along with that, it has introduced new DDL syntax (also known as the modern syntax) and catalogs. The old GP6 style DDL syntax are still supported (also known as the classic syntax). But internally they are supported via entirely new implementation and have totally different catalogs. As a result, many GP6 system views that are dependent on outdated catalogs or assumptions are not supported anymore. We are planning to provide new alternatives to help partition maintainance but we are not looking to bring the exact same GP6 views back. Therefore, help is needed in migration of user scripts built on the GP6 catalog structure. This blog is going to address that.
pg_partitions
We start from the most commonly used ones. The view to show information of all leaf partitions in the current database, pg_partitions has columns as listed in the table below. With this table, we also show a one-line description about where you can find the same information in Greenplum 7, or simply N/A if the information is gone.
Column
What's it for in GP6
Where in GP7
schemaname