]> begriffs open source - ai-pg/blob - full-docs/txt/performance-tips.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / performance-tips.txt
1
2 Chapter 14. Performance Tips
3
4    Table of Contents
5
6    14.1. Using EXPLAIN
7
8         14.1.1. EXPLAIN Basics
9         14.1.2. EXPLAIN ANALYZE
10         14.1.3. Caveats
11
12    14.2. Statistics Used by the Planner
13
14         14.2.1. Single-Column Statistics
15         14.2.2. Extended Statistics
16
17    14.3. Controlling the Planner with Explicit JOIN Clauses
18    14.4. Populating a Database
19
20         14.4.1. Disable Autocommit
21         14.4.2. Use COPY
22         14.4.3. Remove Indexes
23         14.4.4. Remove Foreign Key Constraints
24         14.4.5. Increase maintenance_work_mem
25         14.4.6. Increase max_wal_size
26         14.4.7. Disable WAL Archival and Streaming Replication
27         14.4.8. Run ANALYZE Afterwards
28         14.4.9. Some Notes about pg_dump
29
30    14.5. Non-Durable Settings
31
32    Query performance can be affected by many things. Some of these can be
33    controlled by the user, while others are fundamental to the underlying
34    design of the system. This chapter provides some hints about
35    understanding and tuning PostgreSQL performance.