Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X8s8H-0006Fx-JR for pgsql-general@arkaria.postgresql.org; Sun, 20 Jul 2014 14:30:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X8s8G-0008HR-Nd for pgsql-general@arkaria.postgresql.org; Sun, 20 Jul 2014 14:30:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X8s8F-0008HI-BK for pgsql-general@postgresql.org; Sun, 20 Jul 2014 14:30:31 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X8s8A-0007vs-GX for pgsql-general@postgresql.org; Sun, 20 Jul 2014 14:30:28 +0000 Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D6EF620FC0 for ; Sun, 20 Jul 2014 10:30:23 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Sun, 20 Jul 2014 10:30:23 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=MvqkoNqSQsx6Ogq1PcGFfykIUzw=; b=FWndvH31st71r+G6TQQbLc1RtsKU xtzqIfAXL7LMR1t83BFjntt45SNLUWd8VCFSS3v+gToR0KiCYuc018lKxCBsamSx RM8HeQgPRGwfRbhhDwxf2X6zy9wq8Lv7tRCnNIv042uUItokQfmeEFI4o/EAwdbm iVeApc22xoe/2oQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=MvqkoNqSQsx6Ogq1PcGFfy kIUzw=; b=f6mE1ReszSQT46QH4F7WYkuzmwFp/E6OgtY8x0TVnpEEcuihCxtn1V oDz5uaft2PAKmp7X029ZNE60VQPjQ2cYlPAdYauDfeAHqxolD17N/x77B8VDCWiL n+T2JGGw+P/lXMWTpE6KLfWvGBmnp01KKtBmDeGSsRLT0vZotNomE= X-Sasl-enc: Lj1jf7OuVUZeuyW7YU6OD2hcvPkLicgP9ZnLvEMOcEx+ 1405866623 Received: from panda.site (unknown [65.102.186.57]) by mail.messagingengine.com (Postfix) with ESMTPA id 579C4C00005; Sun, 20 Jul 2014 10:30:23 -0400 (EDT) Message-ID: <53CBD27E.2000103@aklaver.com> Date: Sun, 20 Jul 2014 07:30:22 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: John R Pierce , pgsql-general@postgresql.org Subject: Re: serious issue with age(relfrozenxid)::int. References: <53CB7857.2060800@hogranch.com> In-Reply-To: <53CB7857.2060800@hogranch.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 07/20/2014 01:05 AM, John R Pierce wrote: > On 7/20/2014 12:29 AM, Prabhjot Sheena wrote: >> Most of my tables in postgresql database 8.3 is showing up >> this. Pls suggest me what should be done with this and if this is >> something really serious > > why are you casting age() to an int ? My question would be why are you using age() on relfrozenxid? From here: http://www.postgresql.org/docs/8.3/static/catalog-pg-class.html relfrozenxid xid All transaction IDs before this one have been replaced with a permanent ("frozen") transaction ID in this table. This is used to track whether the table needs to be vacuumed in order to prevent transaction ID wraparound or to allow pg_clog to be shrunk. Zero (InvalidTransactionId) if the relation is not a table From here: http://www.postgresql.org/docs/8.3/static/functions-datetime.html age(timestamp) interval Subtract from current_date So it is not surprising that it is not working. > > > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general