Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJGHd-0008Kj-FT for pgsql-general@arkaria.postgresql.org; Wed, 03 Aug 2022 15:27:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oJGHb-00065f-W8 for pgsql-general@arkaria.postgresql.org; Wed, 03 Aug 2022 15:27:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJGHb-00065V-Lg for pgsql-general@lists.postgresql.org; Wed, 03 Aug 2022 15:27:39 +0000 Received: from uucp.dinoex.org ([2a0b:f840::12]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJGHY-0001sU-N7 for pgsql-general@lists.postgresql.org; Wed, 03 Aug 2022 15:27:38 +0000 Received: from uucp.dinoex.org (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]) by uucp.dinoex.org (8.17.1/8.17.1) with ESMTPS id 273FR4SZ034245 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 3 Aug 2022 17:27:05 +0200 (CEST) (envelope-from pmc@citylink.dinoex.sub.org) X-MDaemon-Deliver-To: Received: (from uucp@localhost) by uucp.dinoex.org (8.17.1/8.17.1/Submit) with UUCP id 273FR40M034244 for pgsql-general@lists.postgresql.org; Wed, 3 Aug 2022 17:27:04 +0200 (CEST) (envelope-from pmc@citylink.dinoex.sub.org) Received: from gate.intra.daemon.contact (gate-e [192.168.98.2]) by citylink.dinoex.sub.de (8.16.1/8.16.1) with ESMTP id 273FGuLx093447 for ; Wed, 3 Aug 2022 17:16:56 +0200 (CEST) (envelope-from peter@gate.intra.daemon.contact) Received: from gate.intra.daemon.contact (gate-e [192.168.98.2]) by gate.intra.daemon.contact (8.16.1/8.16.1) with ESMTPS id 273FFHcj093093 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 3 Aug 2022 17:15:17 +0200 (CEST) (envelope-from peter@gate.intra.daemon.contact) Received: (from peter@localhost) by gate.intra.daemon.contact (8.16.1/8.16.1/Submit) id 273FFH0s093092 for pgsql-general@lists.postgresql.org; Wed, 3 Aug 2022 17:15:17 +0200 (CEST) (envelope-from peter) Date: Wed, 3 Aug 2022 17:15:17 +0200 From: Peter To: pgsql-general@lists.postgresql.org Subject: Why is my table continuousely written? -> XID issue? Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Milter: Spamilter (Reciever: uucp.dinoex.org; Sender-ip: 0:0:2a0b:f840::; Sender-helo: uucp.dinoex.org;) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]); Wed, 03 Aug 2022 17:27:07 +0200 (CEST) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I had a look into what actually changed in the table. At the first write that I grabbed, four rows in that segment had such a change: 117ee000 77 00 00 00 00 df b8 82 8e a4 00 00 64 00 a0 00 |w...........d...| 117ee000 77 00 00 00 f0 22 b4 f3 68 d3 00 00 64 00 a0 00 |w...."..h...d...| 117ee0a0 f8 5c 00 00 f8 5c 00 00 09 00 00 00 06 00 f7 8b |.\...\..........| 117ee0b0 13 00 04 00 93 00 18 0d d8 27 fe 01 00 00 00 00 |.........'......| 117ee0b0 13 00 04 00 93 01 18 0d d8 27 fe 01 00 00 00 00 |.........'......| 1aad8000 77 00 00 00 30 fc 8c a5 80 8a 00 00 58 00 a8 00 |w...0.......X...| 1aad8000 77 00 00 00 e8 12 8a f3 6e 5b 00 00 58 00 a8 00 |w.......n[..X...| 1aad80a0 f6 5d 00 00 00 00 00 00 |.........]......| 1aad80b0 09 00 00 00 06 00 6c d5 10 00 04 00 03 08 18 0d |......l.........| 1aad80b0 09 00 00 00 06 00 6c d5 10 00 04 00 03 09 18 0d |......l.........| If I get that right, then it is the HEAP_XMIN_COMMITTED from t_infomask that got set for the rows. The next write is a bit different: 0000a000 76 00 00 00 60 9d 84 d0 23 4c 04 00 70 00 50 01 |v...`...#L..p.P.| 0000a000 78 00 00 00 80 81 e9 05 78 0d 04 00 70 00 50 01 |x.......x...p.P.| 0000a690 cf 51 00 00 00 00 00 00 |504c54...Q......| 0000a690 cf 51 00 00 13 5e 00 00 |504c54...Q...^..| 0000a6a0 00 00 00 00 06 00 05 00 12 00 04 00 03 2b 18 0d |.............+..| 0000a6a0 00 00 00 00 06 00 05 00 12 00 04 00 93 23 18 0d |.............#..| 003ec000 76 00 00 00 30 98 85 d0 59 e9 04 00 60 00 48 01 |v...0...Y...`.H.| 003ec000 78 00 00 00 08 33 1b 03 bd 97 04 00 60 00 48 01 |x....3......`.H.| 003eddf0 cf 51 00 00 00 00 00 00 00 00 00 00 06 00 f6 01 |.Q..............| 003eddf0 cf 51 00 00 13 5e 00 00 00 00 00 00 06 00 f6 01 |.Q...^..........| 003ede00 02 00 04 00 03 2b 18 0d f3 56 2a 00 00 00 00 00 |.....+...V*.....| 003ede00 02 00 04 00 93 23 18 0d f3 56 2a 00 00 00 00 00 |.....#...V*.....| It seems here is the t_xmax for the row updated, and also flags in t_infomask changed - and there are about 1000 rows (of some 3 mio. that are contained in this segment) where this is done. So if I get this right, it looks like some out-of-band housekeeping is done here. Now, while I would understand that this is done as occasion offers when a record is read anyway, and I do not think that I grok the XID housekeeping in fullness, I also do not think that I have any open transactions that would persist a server restart. So I was under the impression that a server restart plus a vacuum FULL, without any further update/delete operations, should resolve all the needs for such housekeeping for the time being, and quiesce the situation. Apparently it does not. So, then, what does?