Mistake in documentation for CREATE STATISTICS - Mailing list pgsql-docs

From PG Doc comments form
Subject Mistake in documentation for CREATE STATISTICS
Date
Msg-id 156041783045.1348.6661129085836800862@wrigleys.postgresql.org
Whole thread Raw
Responses Re: Mistake in documentation for CREATE STATISTICS
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/sql-createstatistics.html
Description:

The example on https://www.postgresql.org/docs/11/sql-createstatistics.html
seems wrong: instead of "EXPLAIN ANALYZE SELECT ..." it should say "EXPLAIN
SELECT ...". If changed that way, the query optimizer estimates the number
of rows at 1 and then 100 after statistics are created which is indeed how
many the query returns. In the current wording, with ANALYZE, the query
optimizer estimates the number of rows at 100 for both the first and second
select.

Tested on PostgreSQL 11.

pgsql-docs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Add XSL stylesheet to fix up SVG files
Next
From: Pavel Luzanov
Date:
Subject: ATTACH/DETACH partitions and locking