Re: To what extent should tests rely on VACUUM ANALYZE? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: To what extent should tests rely on VACUUM ANALYZE?
Date
Msg-id 4168428.1711720284@sss.pgh.pa.us
Whole thread Raw
In response to Re: To what extent should tests rely on VACUUM ANALYZE?  (Alexander Lakhin <exclusion@gmail.com>)
Responses Re: To what extent should tests rely on VACUUM ANALYZE?
List pgsql-hackers
Alexander Lakhin <exclusion@gmail.com> writes:
> I think that deviation can be explained by the fact that cost_index() takes
> baserel->allvisfrac (derived from pg_class.relallvisible) into account for
> the index-only-scan case, and I see the following difference when a test
> run fails:
>          relname        | relpages | reltuples | relallvisible | indisvalid | autovacuum_count | autoanalyze_count
>   ----------------------+----------+-----------+---------------+------------+------------------+-------------------
> - tenk1                |      345 |     10000 |           345 |            |                0 |                 0
> + tenk1                |      345 |     10000 |           305 |            |                0 |                 0

Ouch.  So what's triggering that?  The intention of test_setup
surely is to provide a uniform starting point.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: To what extent should tests rely on VACUUM ANALYZE?
Next
From: Alexander Lakhin
Date:
Subject: Re: To what extent should tests rely on VACUUM ANALYZE?