mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Remove PROC_IN_ANALYZE and derived flags
These flags are unused and always have been. Discussion: https://postgr.es/m/20200805235549.GA8118@alvherre.pgsql
This commit is contained in:
@ -247,11 +247,8 @@ analyze_rel(Oid relid, RangeVar *relation,
|
||||
}
|
||||
|
||||
/*
|
||||
* OK, let's do it. First let other backends know I'm in ANALYZE.
|
||||
* OK, let's do it. First, initialize progress reporting.
|
||||
*/
|
||||
LWLockAcquire(ProcArrayLock, LW_EXCLUSIVE);
|
||||
MyPgXact->vacuumFlags |= PROC_IN_ANALYZE;
|
||||
LWLockRelease(ProcArrayLock);
|
||||
pgstat_progress_start_command(PROGRESS_COMMAND_ANALYZE,
|
||||
RelationGetRelid(onerel));
|
||||
|
||||
@ -279,14 +276,6 @@ analyze_rel(Oid relid, RangeVar *relation,
|
||||
relation_close(onerel, NoLock);
|
||||
|
||||
pgstat_progress_end_command();
|
||||
|
||||
/*
|
||||
* Reset my PGXACT flag. Note: we need this here, and not in vacuum_rel,
|
||||
* because the vacuum flag is cleared by the end-of-xact code.
|
||||
*/
|
||||
LWLockAcquire(ProcArrayLock, LW_EXCLUSIVE);
|
||||
MyPgXact->vacuumFlags &= ~PROC_IN_ANALYZE;
|
||||
LWLockRelease(ProcArrayLock);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user