Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query.

Поиск
Список
Период
Сортировка
Искать
От
Laurenz Albe
Тема
Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query.
Дата
Msg-id
fd14173d698cf45d5784c459f63a982aa800b9e6.camel@cybertec.at
Ответ на
Список
Дерево обсуждения
EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query. Pól Ua Laoínecháin <linehanp@tcd.ie>
Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query. David Rowley <dgrowleyml@gmail.com>
Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query. Laurenz Albe <laurenz.albe@cybertec.at>
Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query. Tom Lane <tgl@sss.pgh.pa.us>
Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query. Pól Ua Laoínecháin <linehanp@tcd.ie>
Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query. David Rowley <dgrowleyml@gmail.com>
Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query. Vijaykumar Jain <vijaykumarjain.github@gmail.com>
On Sat, 2021-06-05 at 00:12 +1200, David Rowley wrote:
> As for the call to generate_series, you're not likely to ever get any
> great estimation from that.  The number of rows returned by a call to
> that particular function are just whatever is set in pg_proc.prorows,
> in this case, 1000.  The other generate_series functions which take
> INT and BIGINT inputs do have a prosupport function.

"generate_series" has a support function from v12 on:

EXPLAIN SELECT * FROM generate_series(1, 25);
                             QUERY PLAN                              
═════════════════════════════════════════════════════════════════════
 Function Scan on generate_series  (cost=0.00..0.25 rows=25 width=4)
(1 row)

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com
В списке pgsql-general по дате отправления
От: Atul Kumar
Дата:
От: Vijaykumar Jain
Дата:
FAQ