2 Chapter 69. How the Planner Uses Statistics
6 69.1. Row Estimation Examples
7 69.2. Multivariate Statistics Examples
9 69.2.1. Functional Dependencies
10 69.2.2. Multivariate N-Distinct Counts
13 69.3. Planner Statistics and Security
15 This chapter builds on the material covered in Section 14.1 and
16 Section 14.2 to show some additional details about how the planner uses
17 the system statistics to estimate the number of rows each part of a
18 query might return. This is a significant part of the planning process,
19 providing much of the raw material for cost calculation.
21 The intent of this chapter is not to document the code in detail, but
22 to present an overview of how it works. This will perhaps ease the
23 learning curve for someone who subsequently wishes to read the code.