From: Adrian Klaver <adrian.klaver@aklaver.com>
To: John R Pierce <pierce@hogranch.com>
To: pgsql-general@postgresql.org
Subject: Re: serious issue with age(relfrozenxid)::int.
Date: Sun, 20 Jul 2014 07:30:22 -0700
Message-ID: <53CBD27E.2000103@aklaver.com> (raw)
In-Reply-To: <53CB7857.2060800@hogranch.com>
References: <CAOf_bQZtQzONb8=uekRJst+W3htRpD7qrW7E1BmAo0z4Gez40Q@mail.gmail.com>
<53CB7857.2060800@hogranch.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: adrian.klaver@aklaver.com, pierce@hogranch.com, pgsql-general@postgresql.org
Subject: Re: serious issue with age(relfrozenxid)::int.
In-Reply-To: <53CBD27E.2000103@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox