Re: Autovacuum on partitioned table
От
Laurenz Albe
Тема
Re: Autovacuum on partitioned table
Дата
Msg-id
fdc0cd8f903066d42132faca60cd8dbf3f8fa09e.camel@cybertec.at
Ответ на
Autovacuum on partitioned table (yuzuko)
Список
Дерево обсуждения
Autovacuum on partitioned table yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table Laurenz Albe <laurenz.albe@cybertec.at>
Re: Autovacuum on partitioned table yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Re: Autovacuum on partitioned table Amit Langote <amitlangote09@gmail.com>
Re: Autovacuum on partitioned table Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Re: Autovacuum on partitioned table yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table Amit Langote <amitlangote09@gmail.com>
Re: Autovacuum on partitioned table Michael Paquier <michael@paquier.xyz>
Re: Autovacuum on partitioned table Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Re: Autovacuum on partitioned table Amit Langote <amitlangote09@gmail.com>
Re: Autovacuum on partitioned table yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table Amit Langote <amitlangote09@gmail.com>
Re: Autovacuum on partitioned table Amit Langote <amitlangote09@gmail.com>
Re: Autovacuum on partitioned table Amit Langote <amitlangote09@gmail.com>
Re: Autovacuum on partitioned table yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Re: Autovacuum on partitioned table Amit Langote <amitlangote09@gmail.com>
Re: Autovacuum on partitioned table yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Autovacuum on partitioned table Amit Langote <amitlangote09@gmail.com>
Re: Autovacuum on partitioned table yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table Alvaro Herrera <alvherre@2ndquadrant.com>
Re: Autovacuum on partitioned table yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table (autoanalyze) Justin Pryzby <pryzby@telsasoft.com>
Re: Autovacuum on partitioned table (autoanalyze) Justin Pryzby <pryzby@telsasoft.com>
Re: Autovacuum on partitioned table (autoanalyze) yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table (autoanalyze) Justin Pryzby <pryzby@telsasoft.com>
Re: Autovacuum on partitioned table (autoanalyze) Amit Langote <amitlangote09@gmail.com>
Re: Autovacuum on partitioned table (autoanalyze) Justin Pryzby <pryzby@telsasoft.com>
Re: Autovacuum on partitioned table (autoanalyze) yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table (autoanalyze) Daniel Gustafsson <daniel@yesql.se>
Re: Autovacuum on partitioned table (autoanalyze) yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table (autoanalyze) Daniel Gustafsson <daniel@yesql.se>
Re: Autovacuum on partitioned table (autoanalyze) yuzuko <yuzukohosoya@gmail.com>
Re: Autovacuum on partitioned table (autoanalyze) Daniel Gustafsson <daniel@yesql.se>
Re: Autovacuum on partitioned table (autoanalyze) Justin Pryzby <pryzby@telsasoft.com>
Re: Autovacuum on partitioned table (autoanalyze) Amit Langote <amitlangote09@gmail.com>
Re: Autovacuum on partitioned table Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Re: Autovacuum on partitioned table Amit Langote <amitlangote09@gmail.com>
On Mon, 2019-12-02 at 18:02 +0900, yuzuko wrote: > Greg reported in [1] before, autovacuum ignores partitioned tables. > That is, even if individual partitions’ statistics are updated, its parent's > statistics are not updated. This is TODO for declarative partitioning. > As Amit mentioned in [2], a way to make parent's statistics from > partitions' statistics without scanning the partitions would be nice, > but it will need a lot of modifications. So I tried to fix that using the > current analyze method. > > The summary of the attached patch is as follows: > * If the relation is a partitioned table, check its children if they need > vacuum or analyze. Children need to do that are added to > a table list for autovacuuum. At least one child is added to the list, > the partitioned table is also added to the list. Then, autovacuum > runs on all the tables in the list. That means that all partitions are vacuumed if only one of them needs it, right? This will result in way more vacuuming than necessary. Wouldn't it be an option to update the partitioned table's statistics whenever one of the partitions is vacuumed? Yours, Laurenz Albe
В списке pgsql-hackers по дате отправления