Re: pgsql: autovacuum: handle analyze for partitioned tables
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Robert Haas <robertmhaas@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Zhihong Yu <zyu@yugabyte.com>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-05-11T08:08:43Z
Lists: pgsql-hackers
On Wed, Apr 21, 2021 at 07:06:49PM -0400, Alvaro Herrera wrote: > On 2021-Apr-09, Robert Haas wrote: >> Does this need to worry about new partitions getting attached to a >> partitioned table, or old ones getting detached? (Maybe it does >> already, not sure.) > > I was pinged because this is listed as an open item. I don't think it > is one. Handling ATTACH/DETACH/DROP is important for overall > consistency, of course, so we should do it eventually, but the fact that > autovacuum runs analyze *at all* for partitioned tables is an enormous > step forward from it not doing so. I think we should treat ATTACH/ > DETACH/DROP handling as a further feature to be added in a future > release, not an open item to be fixed in the current one. Yeah, I'd agree that this could be done as some future work so it looks fine to move it to the section for "won't fix" items, but that sounds rather tricky to me as there are dependencies across the partitions. Now, I don't think that we are completely done either, as one documentation patch has been sent here: https://www.postgresql.org/message-id/20210423180152.GA17270@telsasoft.com Alvaro, could you look at that? -- Michael
Commits
-
Describe (auto-)analyze behavior for partitioned tables
- 1b5617eb844c 14.0 landed
-
Add comment about extract_autovac_opts not holding lock
- 7c298c6573a0 14.0 landed
-
Set pg_class.reltuples for partitioned tables
- 0e69f705cc1a 14.0 landed
-
autovacuum: handle analyze for partitioned tables
- 0827e8af70f4 14.0 cited