Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aergw-0008Mh-9Y for pgsql-bugs@arkaria.postgresql.org; Sat, 12 Mar 2016 22:07:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aergv-00038w-6W for pgsql-bugs@arkaria.postgresql.org; Sat, 12 Mar 2016 22:07:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aergH-0002Qg-Tc for pgsql-bugs@postgresql.org; Sat, 12 Mar 2016 22:06:41 +0000 Received: from mail.pukkasoft.com ([69.36.240.122]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aergC-0003W0-TC for pgsql-bugs@postgresql.org; Sat, 12 Mar 2016 22:06:41 +0000 DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=vfive.com; h=content-type :mime-version:subject:from:in-reply-to:date:cc:message-id :references:to; s=dkim2; bh=wyB0zgf3RB7OGNRLEptWuTUMwmc=; b=bj+J nJJuQsx/xjbStBWxsLAtwjnBZuB5Sf4pnrf1w21juI5lbzmOxdMMJJ95zj/ebrvJ hcJkZqJOxWunoV5fT2IgVyQ7KgkofO5Jx9wDbEEzYMr0cleXiKmqMQjxx1BNYffA /DLgA97xpdc8Dqp+xU99w6fbcjo2Arv3aNdFbck= Received: (qmail 15800 invoked by uid 89); 12 Mar 2016 22:06:32 -0000 Received: by simscan 1.4.0 ppid: 15792, pid: 15796, t: 0.0869s scanners: attach: 1.4.0 clamav: 0.97/m:54/d:13825 Received: from unknown (HELO ?192.168.0.102?) (brian%pukkasoft.com@50.131.178.106) by mail with ESMTPA; 12 Mar 2016 22:06:31 -0000 Content-Type: multipart/alternative; boundary="Apple-Mail=_8A101B48-B111-492F-A9F4-AE6E4DC125B1" 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` From: Brian Ghidinelli In-Reply-To: <20160307162123.GA841947@alvherre.pgsql> Date: Sat, 12 Mar 2016 14:06:31 -0800 Cc: pgsql-bugs@postgresql.org Message-Id: References: <20160307162123.GA841947@alvherre.pgsql> To: Alvaro Herrera X-Mailer: Apple Mail (2.3112) X-Pg-Spam-Score: -2.0 (--) 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=_8A101B48-B111-492F-A9F4-AE6E4DC125B1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 7, 2016, at 08:21, Alvaro Herrera = wrote: >=20 > Brian Ghidinelli wrote: >> Any chance that a DDL modification like adding a column would effect = an update of those values across the table? >=20 > If a column is added without a default value, then the existing tuples > are not touched. If a default value is added, then the complete table > is rewritten. I suppose that the rewritten table would not include = old > Multixact values in XMAX, but I haven't checked. >=20 > I wonder if it's possible for a column to be added in an operation = that > does not rewrite the table yet the relminmxid is advanced past the > oldest multixact present. >=20 > I assume, given the lack of traffic in this thread, that you have = solved > your problem already? Thanks for the follow up Alvaro. I=E2=80=99m no longer on the bugs list = so don=E2=80=99t know if this will make it through, but I went the route = of recreating the table and updating all of the foreign key references = and shared that on Feb 19th.=20 This seems to have fixed the problem with vacuuming the table however it = did not update the multixact value which still reads 1. Any idea if this = will still cause problems in the future? # /usr/pgsql-9.4/bin/pg_controldata ~postgres/9.4/=20 pg_control version number: 942 Catalog version number: 201409291 Database system identifier: 6123001933830237052 Database cluster state: in production pg_control last modified: Sat 12 Mar 2016 01:57:08 PM PST Latest checkpoint location: 13A/54469E58 Prior checkpoint location: 13A/54129CC8 Latest checkpoint's REDO location: 13A/543F2908 Latest checkpoint's REDO WAL file: 000000010000013A00000054 Latest checkpoint's TimeLineID: 1 Latest checkpoint's PrevTimeLineID: 1 Latest checkpoint's full_page_writes: on Latest checkpoint's NextXID: 0/92143770 Latest checkpoint's NextOID: 5609664 Latest checkpoint's NextMultiXactId: 84435 Latest checkpoint's NextMultiOffset: 167731 Latest checkpoint's oldestXID: 654 Latest checkpoint's oldestXID's DB: 16416 Latest checkpoint's oldestActiveXID: 92143770 Latest checkpoint's oldestMultiXid: 1 Latest checkpoint's oldestMulti's DB: 16416 Time of latest checkpoint: Sat 12 Mar 2016 01:56:19 PM PST Brian --Apple-Mail=_8A101B48-B111-492F-A9F4-AE6E4DC125B1 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1
On Mar 7, 2016, at 08:21, Alvaro Herrera <alvherre@2ndquadrant.com> wrote:

Brian Ghidinelli wrote:
Any chance that a DDL modification like adding a column would effect an update of those values across the table?

If a column is added without a default value, then the existing tuples
are not touched. If a default value is added, then the complete table
is rewritten. I suppose that the rewritten table would not include old
Multixact values in XMAX, but I haven't checked.

I wonder if it's possible for a column to be added in an operation that
does not rewrite the table yet the relminmxid is advanced past the
oldest multixact present.

I assume, given the lack of traffic in this thread, that you have solved
your problem already?

Thanks for the follow up Alvaro. I’m no longer on the bugs list so don’t know if this will make it through, but I went the route of recreating the table and updating all of the foreign key references and shared that on Feb 19th.

This seems to have fixed the problem with vacuuming the table however it did not update the multixact value which still reads 1. Any idea if this will still cause problems in the future?

# /usr/pgsql-9.4/bin/pg_controldata ~postgres/9.4/
pg_control version number: 942
Catalog version number: 201409291
Database system identifier: 6123001933830237052
Database cluster state: in production
pg_control last modified: Sat 12 Mar 2016 01:57:08 PM PST
Latest checkpoint location: 13A/54469E58
Prior checkpoint location: 13A/54129CC8
Latest checkpoint's REDO location: 13A/543F2908
Latest checkpoint's REDO WAL file: 000000010000013A00000054
Latest checkpoint's TimeLineID: 1
Latest checkpoint's PrevTimeLineID: 1
Latest checkpoint's full_page_writes: on
Latest checkpoint's NextXID: 0/92143770
Latest checkpoint's NextOID: 5609664
Latest checkpoint's NextMultiXactId: 84435
Latest checkpoint's NextMultiOffset: 167731
Latest checkpoint's oldestXID: 654
Latest checkpoint's oldestXID's DB: 16416
Latest checkpoint's oldestActiveXID: 92143770
Latest checkpoint's oldestMultiXid: 1
Latest checkpoint's oldestMulti's DB: 16416
Time of latest checkpoint: Sat 12 Mar 2016 01:56:19 PM PST




Brian

--Apple-Mail=_8A101B48-B111-492F-A9F4-AE6E4DC125B1--