mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Initial pgindent and pgperltidy run for v14.
Also "make reformat-dat-files". The only change worthy of note is that pgindent messed up the formatting of launcher.c's struct LogicalRepWorkerId, which led me to notice that that struct wasn't used at all anymore, so I just took it out.
This commit is contained in:
@ -617,11 +617,10 @@ do_analyze_rel(Relation onerel, VacuumParams *params,
|
||||
*
|
||||
* We assume that VACUUM hasn't set pg_class.reltuples already, even
|
||||
* during a VACUUM ANALYZE. Although VACUUM often updates pg_class,
|
||||
* exceptions exist. A "VACUUM (ANALYZE, INDEX_CLEANUP OFF)" command
|
||||
* will never update pg_class entries for index relations. It's also
|
||||
* possible that an individual index's pg_class entry won't be updated
|
||||
* during VACUUM if the index AM returns NULL from its amvacuumcleanup()
|
||||
* routine.
|
||||
* exceptions exist. A "VACUUM (ANALYZE, INDEX_CLEANUP OFF)" command will
|
||||
* never update pg_class entries for index relations. It's also possible
|
||||
* that an individual index's pg_class entry won't be updated during
|
||||
* VACUUM if the index AM returns NULL from its amvacuumcleanup() routine.
|
||||
*/
|
||||
if (!inh)
|
||||
{
|
||||
@ -659,9 +658,9 @@ do_analyze_rel(Relation onerel, VacuumParams *params,
|
||||
else if (onerel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
|
||||
{
|
||||
/*
|
||||
* Partitioned tables don't have storage, so we don't set any fields in
|
||||
* their pg_class entries except for reltuples, which is necessary for
|
||||
* auto-analyze to work properly.
|
||||
* Partitioned tables don't have storage, so we don't set any fields
|
||||
* in their pg_class entries except for reltuples, which is necessary
|
||||
* for auto-analyze to work properly.
|
||||
*/
|
||||
vac_update_relstats(onerel, -1, totalrows,
|
||||
0, false, InvalidTransactionId,
|
||||
|
Reference in New Issue
Block a user