postgresql/src/backend/access/common
Alvaro Herrera 6f8127b739
Revert analyze support for partitioned tables
This reverts the following commits:
1b5617eb84 Describe (auto-)analyze behavior for partitioned tables
0e69f705cc Set pg_class.reltuples for partitioned tables
41badeaba8 Document ANALYZE storage parameters for partitioned tables
0827e8af70 autovacuum: handle analyze for partitioned tables

There are efficiency issues in this code when handling databases with
large numbers of partitions, and it doesn't look like there isn't any
trivial way to handle those.  There are some other issues as well.  It's
now too late in the cycle for nontrivial fixes, so we'll have to let
Postgres 14 users continue to manually deal with ANALYZE their
partitioned tables, and hopefully we can fix the issues for Postgres 15.

I kept [most of] be280cdad2 ("Don't reset relhasindex for partitioned
tables on ANALYZE") because while we added it due to 0827e8af70, it is
a good bugfix in its own right, since it affects manual analyze as well
as autovacuum-induced analyze, and there's no reason to revert it.

I retained the addition of relkind 'p' to tables included by
pg_stat_user_tables, because reverting that would require a catversion
bump.
Also, in pg14 only, I keep a struct member that was added to
PgStat_TabStatEntry to avoid breaking compatibility with existing stat
files.

Backpatch to 14.

Discussion: https://postgr.es/m/20210722205458.f2bug3z6qzxzpx2s@alap3.anarazel.de
2021-08-16 17:27:52 -04:00
..
Makefile Allow configurable LZ4 TOAST compression. 2021-03-19 15:10:38 -04:00
attmap.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
bufmask.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
detoast.c Short-circuit slice requests that are for more than the object's size. 2021-03-22 14:01:20 -04:00
heaptuple.c Fix some typos, grammar and style in docs and comments 2021-02-24 16:13:17 +09:00
indextuple.c Rethink definition of pg_attribute.attcompression. 2021-05-27 13:24:27 -04:00
printsimple.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
printtup.c Remove server and libpq support for old FE/BE protocol version 2. 2021-03-04 10:45:55 +02:00
relation.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
reloptions.c Revert analyze support for partitioned tables 2021-08-16 17:27:52 -04:00
scankey.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
session.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
syncscan.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
toast_compression.c Message style improvements 2021-06-28 08:36:44 +02:00
toast_internals.c Rethink definition of pg_attribute.attcompression. 2021-05-27 13:24:27 -04:00
tupconvert.c Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00
tupdesc.c Rethink definition of pg_attribute.attcompression. 2021-05-27 13:24:27 -04:00