Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMdwp-00073b-SL for pgsql-committers@arkaria.postgresql.org; Wed, 06 Dec 2017 17:57:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMdwp-00080F-F5 for pgsql-committers@arkaria.postgresql.org; Wed, 06 Dec 2017 17:57:31 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eMdwp-000805-76 for pgsql-committers@lists.postgresql.org; Wed, 06 Dec 2017 17:57:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eMdwm-0004A0-Uy; Wed, 06 Dec 2017 17:57:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vB6HvQDq028615; Wed, 6 Dec 2017 12:57:26 -0500 From: Tom Lane To: Robert Haas cc: pgsql-committers@postgresql.org, "Bossart, Nathan" Subject: Re: pgsql: When VACUUM or ANALYZE skips a concurrently dropped table, log i In-reply-to: References: Comments: In-reply-to Robert Haas message dated "Mon, 04 Dec 2017 20:26:08 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28613.1512583046.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 06 Dec 2017 12:57:26 -0500 Message-ID: <28614.1512583046@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > When VACUUM or ANALYZE skips a concurrently dropped table, log it. When this went in, I was pretty skeptical of the value of an isolation test for it, but said nothing. However, I now observe that the isolation test is falling over on buildfarm machines with -DCLOBBER_CACHE_ALWAYS. The buildfarm reports are a bit hard to interpret, but it's easy to reproduce locally, and what I get is $ more output_iso/regression.diffs *** /home/postgres/pgsql/src/test/isolation/expected/vacuum-concurrent-dro= p.out Mon Dec 4 17:02:55 2017 --- /home/postgres/pgsql/src/test/isolation/output_iso/results/vacuum-conc= urrent-drop.out Wed Dec 6 12:07:37 2017 *************** *** 49,54 **** --- 49,55 ---- COMMIT; = step analyze_all: <... completed> + error in steps drop_and_commit analyze_all: ERROR: canceling statement = due to user request = starting permutation: lock vac_analyze_specified drop_and_commit step lock: = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D What appears to be happening is that a database-wide ANALYZE takes more than a minute under CLOBBER_CACHE_ALWAYS, causing isolationtester.c's hardwired one-minute timeout to trigger. While you could imagine doing something to get around that, I do not believe that this test is worth memorializing in perpetuity to begin with. I'd recommend just taking it out again. regards, tom lane