Justin Pryzby writes:
> On Fri, Nov 10, 2017 at 04:19:41PM -0500, Tom Lane wrote:
>> One idea is to say that relpages = reltuples = 0 is only the state that
>> prevails for a freshly-created table, and that VACUUM or ANALYZE should
>> always set relpages to at least 1 even if the physical size is
On Fri, Nov 10, 2017 at 04:19:41PM -0500, Tom Lane wrote:
> Justin Pryzby writes:
> > (or, the opposite of the more common problem)
> > As the queued_alters table is typically empty (and autoanalyzed with
> > relpages=0), I see "why":
>
> > ./src/backend/optimizer/util/plancat.c
> > |
Justin Pryzby writes:
> As the queued_alters table is typically empty (and autoanalyzed with
> relpages=0), I see "why":
> ./src/backend/optimizer/util/plancat.c
> |if (curpages < 10 &&
> |rel->rd_rel->relpages == 0 &&
> |