Re: relkind='p' has no pg_stat_user_tables - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: relkind='p' has no pg_stat_user_tables
Date
Msg-id 20180503162047.37k7km4dx62i6l4d@alvherre.pgsql
Whole thread Raw
In response to Re: relkind='p' has no pg_stat_user_tables  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: relkind='p' has no pg_stat_user_tables  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
Adrian Klaver wrote:

> and from here:
> 
> https://www.postgresql.org/docs/10/static/sql-createtable.html
> 
> "A partitioned table is divided into sub-tables (called partitions), which
> are created using separate CREATE TABLE commands. The partitioned table is
> itself empty. A data row inserted into the table is routed to a partition
> based on the value of columns or expressions in the partition key. ... "

Yeah, but I think Justin has a valid question from the POV of the user:
how can we figure out if we need to re-run analyze on a partitioned
table, if the time of last analyze is not stored anywhere?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: relkind='p' has no pg_stat_user_tables
Next
From: Adrian Klaver
Date:
Subject: Re: relkind='p' has no pg_stat_user_tables