On Fri, 24 May 2019 at 19:20, Luca Ferrari <fluca1978@xxxxxxxxx> wrote: > > On Wed, May 22, 2019 at 7:55 PM Andres Freund <andres@xxxxxxxxxxx> wrote: > > That clearly seems wrong. Could you try build a small reproducer? > > Apparently not, I've tried to simulate the same but without any > success, that is n_tup_ins is always correctly set. > However, I've noted that this behavior applies up to february Did you perhaps reset the stats or failover to a standby around Feb? What does: select stats_Reset from pg_stat_database where datname = current_database(); say? -- David Rowley http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services