pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christophe Pettus <xof@thebuild.com>
To: Vince McMahon <sippingonesandzeros@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Explain returns different number of rows
Date: Thu, 20 Oct 2022 09:56:23 -0700
Message-ID: <6B906119-82AD-49FC-A47D-8652FD03D936@thebuild.com> (raw)
In-Reply-To: <CAKS+vVZuoYhwk1qkqFo6RCraCFbK2q1Td3OQqy8QxWRNZfZN5A@mail.gmail.com>
References: <CAKS+vVb5CsvV_ae_=TVu6cRZTTWbGv1mhoyaBDPGLFQbQ9J=JQ@mail.gmail.com>
	<CAKS+vVaCxnCLpEruhkqwPWsh2YrhmL_3juriPP0ODwWDPfBR_g@mail.gmail.com>
	<CAKS+vVZuoYhwk1qkqFo6RCraCFbK2q1Td3OQqy8QxWRNZfZN5A@mail.gmail.com>



> On Oct 20, 2022, at 09:52, Vince McMahon <sippingonesandzeros@gmail.com> wrote:
> The number of rows are different. 

This isn't unexpected.  EXPLAIN does not actually run the query and determine how many rows are returned; it calculates an estimate based on the current system statistics, which vary constantly depending on activity in the database.




view thread (5+ messages)  latest in thread

Message-ID: <6B906119-82AD-49FC-A47D-8652FD03D936@thebuild.com>
Permalink:  ../6B906119-82AD-49FC-A47D-8652FD03D936@thebuild.com/
Also on:    postgresql.org/message-id/6B906119-82AD-49FC-A47D-8652FD03D936@thebuild.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: xof@thebuild.com, sippingonesandzeros@gmail.com, pgsql-general@lists.postgresql.org
  Subject: Re: Explain returns different number of rows
  In-Reply-To: <6B906119-82AD-49FC-A47D-8652FD03D936@thebuild.com>

* 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