-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
PostgreSQL 14 Administration Cookbook
By :
This recipe covers both the VACUUM command and autovacuum, which I refer to collectively as vacuums (non-capitalized).
If you're currently waiting for a long-running vacuum (or autovacuum) to finish, go straight to the How to do it... section.
If you've just had a long-running vacuum complete, then you may want to think about setting a few parameters for next time, so read the How it works… section.
Let's watch what happens when we run a large VACUUM. Don't run VACUUM FULL, because it runs for a long time while holding an AccessExclusiveLock on the table. Ouch.
First, locate which process is running this VACUUM by using the pg_stat_activity view to identify the specific pid (34399 is just an example).
Repeatedly execute the following query to see the progress of the...
Change the font size
Change margin width
Change background colour