Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bhNC3-0000t9-Pm for pgsql-docs@arkaria.postgresql.org; Tue, 06 Sep 2016 20:42:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bhNC3-0007x7-3v for pgsql-docs@arkaria.postgresql.org; Tue, 06 Sep 2016 20:42:07 +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 1bhNBh-0007ZP-Gd for pgsql-docs@postgresql.org; Tue, 06 Sep 2016 20:41:45 +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.84_2) (envelope-from ) id 1bhNBe-0003AH-O0 for pgsql-docs@postgresql.org; Tue, 06 Sep 2016 20:41:44 +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 u86KfdW4018783; Tue, 6 Sep 2016 16:41:39 -0400 From: Tom Lane To: Egor Rogov cc: pgsql-docs@postgresql.org Subject: Re: FrozenTransactionId In-reply-to: <57CF23F9.10304@postgrespro.ru> References: <575D7955.6060209@postgrespro.ru> <1473096445753-5919545.post@n3.nabble.com> <31833.1473097584@sss.pgh.pa.us> <57CDED18.8060005@postgrespro.ru> <57CE6F15.4060101@postgrespro.ru> <16060.1473165694@sss.pgh.pa.us> <57CF23F9.10304@postgrespro.ru> Comments: In-reply-to Egor Rogov message dated "Tue, 06 Sep 2016 23:15:53 +0300" Date: Tue, 06 Sep 2016 16:41:39 -0400 Message-ID: <18782.1473194499@sss.pgh.pa.us> X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org Egor Rogov writes: > Right, it does not say that FrozenTransactionId is what appears on disk, > but what is? There is no such information anywhere in the doc. Since 9.4 > frozen transactions have their normal XIDs preserved, so how a user can > tell normal transaction from frozen one? This is what needs to be > explained, I believe. I'm afraid the answer is "you can't tell". The infomask bits in tuple headers aren't exposed via SQL. If you're really desperate, contrib/pageinspect would help, but I don't propose mentioning that here. In general, I'm not really sure why users would care very much at a tuple-by-tuple level. Aggregate statistics would be interesting, which raises the question why contrib/pgstattuple doesn't provide frozen-tuples counts. regards, tom lane -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs