pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: David Rowley <dgrowleyml@gmail.com>
To: Pól Ua Laoínecháin <linehanp@tcd.ie>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query.
Date: Fri, 04 Jun 2021 14:55:14 +0200
Message-ID: <fd14173d698cf45d5784c459f63a982aa800b9e6.camel@cybertec.at> (raw)
In-Reply-To: <CAApHDvrZnC8FLOBEQey6_O-N4v5pG1OOL+E918=zVqwsG3LNmg@mail.gmail.com>
References: <CAF4RT5S11smFE8ASvWY8mproZVUpTDME=OiDy_NOAPiWQsaDZg@mail.gmail.com>
	<CAApHDvrZnC8FLOBEQey6_O-N4v5pG1OOL+E918=zVqwsG3LNmg@mail.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


view thread (7+ messages)  latest in thread

Message-ID: <fd14173d698cf45d5784c459f63a982aa800b9e6.camel@cybertec.at>
Permalink:  ../fd14173d698cf45d5784c459f63a982aa800b9e6.camel@cybertec.at/
Also on:    postgresql.org/message-id/fd14173d698cf45d5784c459f63a982aa800b9e6.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, dgrowleyml@gmail.com, linehanp@tcd.ie
  Subject: Re: EXPLAIN (ANALYZE, BUFFERS) - puzzling numbers for a simple query.
  In-Reply-To: <fd14173d698cf45d5784c459f63a982aa800b9e6.camel@cybertec.at>
  References: <CAF4RT5S11smFE8ASvWY8mproZVUpTDME=OiDy_NOAPiWQsaDZg@mail.gmail.com> <CAApHDvrZnC8FLOBEQey6_O-N4v5pG1OOL+E918=zVqwsG3LNmg@mail.gmail.com> <fd14173d698cf45d5784c459f63a982aa800b9e6.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox