Skip to content

Commit 02c5d09

Browse files
authored
Correct indentation
Updated formatting for SQL queries in the autovacuum documentation to improve readability.
1 parent 9af7922 commit 02c5d09

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

articles/postgresql/troubleshoot/how-to-autovacuum-tuning-elastic-clusters.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,32 @@ Autovacuum is a PostgreSQL background process that automatically cleans up dead
2323

2424
- VACUUM - Reclaims space within the database's files by removing dead tuples and marking that space as reusable by PostgreSQL. It doesn't necessarily reduce the physical size of the database files on the disk. To return space to the operating system, use operations that rewrite the table (for example, VACUUM FULL or `pg_repack`), which have additional considerations such as exclusive locks or maintenance windows.
2525

26-
The following query runs VACUUM on all the nodes.
26+
The following query runs VACUUM on all the nodes.
2727

28-
```sql
29-
VACUUM;
30-
```
28+
```sql
29+
VACUUM;
30+
```
3131

32-
The following query runs VACUUM on orders tables in all the nodes.
32+
The following query runs VACUUM on orders tables in all the nodes.
3333

34-
```sql
35-
VACUUM (VERBOSE, ANALYZE) public.orders;
36-
```
34+
```sql
35+
VACUUM (VERBOSE, ANALYZE) public.orders;
36+
```
3737

3838
- ANALYZE - Collects table and index statistics that the PostgreSQL query planner uses to choose efficient execution plans.
3939
To ensure autovacuum works properly, set the autovacuum server parameter to `ON`. When enabled, PostgreSQL automatically decides when to run VACUUM or ANALYZE on a table, ensuring the database remains efficient and optimized.
4040

41-
The following query runs ANALYZE on all the nodes.
41+
The following query runs ANALYZE on all the nodes.
4242

43-
```sql
44-
ANALYZE;
45-
```
43+
```sql
44+
ANALYZE;
45+
```
4646

47-
The following query runs ANALYZE on orders tables in all the nodes.
47+
The following query runs ANALYZE on orders tables in all the nodes.
4848

49-
```sql
50-
ANALYZE public.orders;
51-
```
49+
```sql
50+
ANALYZE public.orders;
51+
```
5252

5353
## Autovacuum internals
5454

0 commit comments

Comments
 (0)