Re: Re: Better way of dealing with pgstat wait timeout during buildfarm runs?

From: Noah Misch <noah(at)leadboat(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Andres Freund <andres(at)2ndquadrant(dot)com>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: Better way of dealing with pgstat wait timeout during buildfarm runs?
Date: 2015-01-20 01:14:02
Message-ID: 20150120011402.GB3149937@tornado.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jan 19, 2015 at 12:05:01PM -0500, Tom Lane wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> > On Mon, Jan 19, 2015 at 11:30 AM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
> >> Sure, but the log isn't invisible. As mentioned one paragraph above, I
> >> don't think it's likely to ever be noticed in the client code in the
> >> cases where it happens in production.
>
> > Yes, that is my feeling as well.
>
> Meh. I still don't like it, but I guess I'm outvoted. Unless there are
> further votes, what we have at this point is just:
>
> - elog(WARNING, "pgstat wait timeout");
> + ereport(LOG, (errmsg("using stale statistics instead of current ones because stats collector is not responding")));
>
> with no conditionality for pgstat_vacuum_stat vs. other callers.

That is satisfactory to me, too.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2015-01-20 01:27:42 Re: B-Tree support function number 3 (strxfrm() optimization)
Previous Message Andres Freund 2015-01-20 01:09:44 Re: New CF app deployment