Re: tuple statistics update

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tom DalPozzo <t(dot)dalpozzo(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: tuple statistics update
Date: 2017-04-18 20:06:18
Message-ID: 22480.1492545978@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom DalPozzo <t(dot)dalpozzo(at)gmail(dot)com> writes:
> Hi, I'm using libpq to insert tuples in my table and keep looking at
> statistics through psql instead.
> I noticed that sometimes n_tuple_ins is not updated even after 1 min that
> my transaction committed.

If your session is just sitting, that's not surprising. I think stats
updates are only transmitted to the collector at transaction end (and
even then, only if it's been at least N msec since the last transmission
from the current session).

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rj Ewing 2017-04-18 21:38:15 full text search on hstore or json with materialized view?
Previous Message Adrian Klaver 2017-04-18 19:42:21 Re: tuple statistics update