Re: pgsql: Fix "base" snapshot handling in logical decoding

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, 2q-andrew(at)alvin(dot)alvh(dot)no-ip(dot)org
Subject: Re: pgsql: Fix "base" snapshot handling in logical decoding
Date: 2018-06-29 22:50:55
Message-ID: 20180629225055.cy3e4ecayibwr5rd@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 2018-Jun-29, Alvaro Herrera wrote:

> On 2018-Jun-28, Tom Lane wrote:
>
> > Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> writes:
> > > Fix "base" snapshot handling in logical decoding
> >
> > According to buildfarm member friarbird, and as confirmed here,
> > the contrib/test_decoding/specs/oldest_xmin.spec test added by this
> > commit fails under CLOBBER_CACHE_ALWAYS.
>
> Hm. Running this test under CLOBBER_CACHE_ALWAYS I see that the VACUUM
> FULL step takes 31 seconds (and the test succeeds). This is not
> top-of-the-line hardware by a long shot (Intel(R) Core(TM) i7-4600U CPU
> @ 2.10GHz) but I can believe that the other machines are slower or
> busier.

It does fail in the indicated way in CLOBBER_CACHE_RECURSIVELY, but I
guess that's expected. It also fails if I reduce the timeout from 60
seconds to 25.

I suppose 60 seconds (isolationtester's default timeout) is just not
enough time for those machines. We could increase it to 180 seconds and
see if that's enough to make them pass ...

Another possibility is to examine column 'state' in isolationtester. I
thought we only used that timeout for 'waiting' queries, but I see it's
not doing that.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-06-29 23:02:04 Re: pgsql: Fix "base" snapshot handling in logical decoding
Previous Message Alvaro Herrera 2018-06-29 22:29:06 Re: pgsql: Fix "base" snapshot handling in logical decoding

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-06-29 23:02:04 Re: pgsql: Fix "base" snapshot handling in logical decoding
Previous Message Srinivas Karthik V 2018-06-29 22:47:42 Re: Bulk Insert into PostgreSQL