Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWZh4-0000do-SC for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Feb 2016 01:17:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWZh4-00015J-6Y for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Feb 2016 01:17:14 +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) (envelope-from ) id 1aWZgO-00082Z-FZ for pgsql-bugs@postgresql.org; Fri, 19 Feb 2016 01:16:32 +0000 Received: from mail.pukkasoft.com ([69.36.240.122]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aWZgL-0003zj-Bz for pgsql-bugs@postgresql.org; Fri, 19 Feb 2016 01:16:31 +0000 DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=vfive.com; h=from :content-type:message-id:mime-version:subject:date:references:to :in-reply-to; s=dkim2; bh=RYMiteu/C3/8MGG0M+prmKVhK1s=; b=imKNO8 HX0GJnACA2sByEEIPaQd5UjqOwW80orazIt3Mn65VnsqeDsVcoAA4pk4xzKWr+Iq Y/9wyfCm7sGsbpQBhQ7jkzGAkOQ4QbC6r+/YqWEXq4GfFZYVTMQWVSiOagHQh/yD QCk3xOOlLQxH0IMBt/3SWcA7xJ2p+CWHJzl7c= Received: (qmail 18218 invoked by uid 89); 19 Feb 2016 01:16:27 -0000 Received: by simscan 1.4.0 ppid: 18211, pid: 18214, t: 0.0461s scanners: attach: 1.4.0 clamav: 0.97/m:54/d:13825 Received: from unknown (HELO ?10.0.0.12?) (brian%pukkasoft.com@50.131.178.106) by mail with ESMTPA; 19 Feb 2016 01:16:27 -0000 From: Brian Ghidinelli Content-Type: multipart/alternative; boundary="Apple-Mail=_D9E13503-6DAB-49D1-9289-A6F1184EBB82" Message-Id: <5E032A4D-801B-44FF-8FFA-FF00E08F0A7E@vfive.com> Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: BUG #13970: Vacuum hangs on particular table; cannot be terminated - requires `kill -QUIT pid` Date: Thu, 18 Feb 2016 17:16:26 -0800 References: <20160218205923.GA23140@alvherre.pgsql> To: pgsql-bugs@postgresql.org In-Reply-To: <20160218205923.GA23140@alvherre.pgsql> X-Mailer: Apple Mail (2.3112) X-Pg-Spam-Score: -0.4 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --Apple-Mail=_D9E13503-6DAB-49D1-9289-A6F1184EBB82 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 18, 2016, at 12:59, Alvaro Herrera = wrote: >=20 > Okay, great. What would be most helpful is figuring out the = pg_upgrade > history of this server; if you have copies of the cluster just before > the upgrade, to extract the "nextMultiXactId" value, that would be > useful. Unfortunately we removed the 9.3 data dir for space reasons=E2=80=A6 I = may have backups from then so maybe I could spin up a docker container = and restore it but would that tell us the same thing? > How large is this table? We could try to scan it to look for the = values > that are causing the problem, and set oldestMxact to one that would = not > cause a problem. Database size is 34gb. This particular table is only 105MB. If you = account for all of the relations and indices it=E2=80=99s 239MB. There = is one table in the system which is 17GB that stores email campaigns and = deliveries. Everything else is all pretty small-ish at 2.5gb or under. How do you query for oldestMxact? > How large is the cluster? For experimentation, it would be very = useful > if you could take a copy of it, on a server where you could recompile > with debugging symbols. Is there a Docker container by chance that has symbols enabled? That = would make standing up a test environment a lot easier. Our production = infrastructure is not yet inside Docker but we run it in dev and it=E2=80=99= s easy to spin up and throw away. Brian --Apple-Mail=_D9E13503-6DAB-49D1-9289-A6F1184EBB82 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
On Feb 18, 2016, at 12:59, Alvaro Herrera <alvherre@2ndquadrant.com> wrote:

Okay, great. What would be most helpful is figuring out the pg_upgrade
history of this server; if you have copies of the cluster just before
the upgrade, to extract the "nextMultiXactId" value, that would be
useful.

Unfortunately we removed the 9.3 data dir for space reasons… I may have backups from then so maybe I could spin up a docker container and restore it but would that tell us the same thing?

How large is this table? We could try to scan it to look for the values
that are causing the problem, and set oldestMxact to one that would not
cause a problem.

Database size is 34gb. This particular table is only 105MB. If you account for all of the relations and indices it’s 239MB. There is one table in the system which is 17GB that stores email campaigns and deliveries. Everything else is all pretty small-ish at 2.5gb or under.

How do you query for oldestMxact?


How large is the cluster? For experimentation, it would be very useful
if you could take a copy of it, on a server where you could recompile
with debugging symbols.

Is there a Docker container by chance that has symbols enabled? That would make standing up a test environment a lot easier. Our production infrastructure is not yet inside Docker but we run it in dev and it’s easy to spin up and throw away.


Brian

--Apple-Mail=_D9E13503-6DAB-49D1-9289-A6F1184EBB82--