-
Task
-
Resolution: Won't Do
-
Minor
-
None
-
None
-
1
-
False
-
None
-
False
-
-
We have some very old partitions in our prod db, tho they don't seem to contain any records. Seen these for a few schemas across AWS and Azure.
Here's the query to check for partitions on a table and example results:
select inhrelid::regclass as child from pg_catalog.pg_inherits where inhparent = 'acct6193296.reporting_awscostentrylineitem_daily_summary'::regclass; ["acct6193296.reporting_awscostentrylineitem_daily_summary_2020_09"], ["acct6193296.reporting_awscostentrylineitem_daily_summary_2020_08"], ["acct6193296.reporting_awscostentrylineitem_daily_summary_2020_07"], ["acct6193296.reporting_azurecostentrylineitem_daily_summary_2020_09"], ["acct6193296.reporting_azurecostentrylineitem_daily_summary_2020_08"], ["acct6193296.reporting_azurecostentrylineitem_daily_summary_2020_07"],