pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christophe Pettus <xof@thebuild.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: David Rowley <dgrowleyml@gmail.com>
Cc: postgre <pgsql-general@lists.postgresql.org>
Subject: Re: Row estimates for empty tables
Date: Fri, 24 Jul 2020 14:54:21 -0700
Message-ID: <E15CF3EC-2A99-43C6-9FEA-D52B58DE9B1B@thebuild.com> (raw)
In-Reply-To: <578094.1595624973@sss.pgh.pa.us>
References: <F02298E0-6EF4-49A1-BCB6-C484794D9ACC@thebuild.com>
	<CAApHDvrC8crSPSxQnEJ8W+mVDZAiaQyT0PryHbmW8RnoSbQmbg@mail.gmail.com>
	<373968.1595598516@sss.pgh.pa.us>
	<A2D82246-2556-4BBB-8C44-7F729CC02317@thebuild.com>
	<CAFj8pRBfm4-J-fULxn3H8=4n39P9D8csgRh3PDptUYa9YKZZDA@mail.gmail.com>
	<578094.1595624973@sss.pgh.pa.us>



> On Jul 24, 2020, at 14:09, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Rather than adding another pg_class column, I'm tempted to say that
> vacuum/analyze should set relpages to a minimum of 1, even if the
> relation has zero pages. 

If there's not an issue about relpages != actual pages on disk, that certain seems straight-forward, and no *more* hacky than the current situation.

--
-- Christophe Pettus
   xof@thebuild.com






view thread (11+ messages)  latest in thread

Message-ID: <E15CF3EC-2A99-43C6-9FEA-D52B58DE9B1B@thebuild.com>
Permalink:  ../E15CF3EC-2A99-43C6-9FEA-D52B58DE9B1B@thebuild.com/
Also on:    postgresql.org/message-id/E15CF3EC-2A99-43C6-9FEA-D52B58DE9B1B@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 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: xof@thebuild.com, tgl@sss.pgh.pa.us, pavel.stehule@gmail.com, dgrowleyml@gmail.com
  Subject: Re: Row estimates for empty tables
  In-Reply-To: <E15CF3EC-2A99-43C6-9FEA-D52B58DE9B1B@thebuild.com>
  References: <F02298E0-6EF4-49A1-BCB6-C484794D9ACC@thebuild.com> <CAApHDvrC8crSPSxQnEJ8W+mVDZAiaQyT0PryHbmW8RnoSbQmbg@mail.gmail.com> <373968.1595598516@sss.pgh.pa.us> <A2D82246-2556-4BBB-8C44-7F729CC02317@thebuild.com> <CAFj8pRBfm4-J-fULxn3H8=4n39P9D8csgRh3PDptUYa9YKZZDA@mail.gmail.com> <578094.1595624973@sss.pgh.pa.us> <E15CF3EC-2A99-43C6-9FEA-D52B58DE9B1B@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