バージョンごとのドキュメント一覧

第76章 プランナは統計情報をどのように使用するか

目次

76.1. 行数推定の例
76.2. 多変量統計の例
76.2.1. 関数従属性
76.2.2. 多変量N個別値計数
76.2.3. MCVリスト
76.3. プランナの統計情報とセキュリティ
<title>How the Planner Uses Statistics</title>

This chapter builds on the material covered in <xref linkend="using-explain"/> and <xref linkend="planner-stats"/> to show some additional details about how the planner uses the system statistics to estimate the number of rows each part of a query might return. This is a significant part of the planning process, providing much of the raw material for cost calculation. 本章は、14.114.2で扱われている題材を基にしていて、問い合わせの各段階において返される行数を推定するために、プランナがシステムの統計情報をどのように使用するかについて更なる詳細をいくつか説明します。 これは計画作成処理において重要な部分で、コスト計算用の多くの情報を提供します。

The intent of this chapter is not to document the code in detail, but to present an overview of how it works. This will perhaps ease the learning curve for someone who subsequently wishes to read the code. 本章の目的はコードを詳しく文書化することではありません。 どのように動作するのかに関する概要を表すことが目的です。 これによりおそらく、後にコードを参照するユーザの習得速度が向上するでしょう。