From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Dev Kumkar <devdas(dot)kumkar(at)gmail(dot)com>, Andres Freund <andres(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: [GENERAL] [SQL] pg_multixact issues |
Date: | 2014-09-18 21:47:04 |
Message-ID: | 541B52D8.6000005@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers pgsql-sql |
On 09/18/2014 10:22 AM, Dev Kumkar wrote:
> On Thu, Sep 18, 2014 at 6:20 PM, Dev Kumkar <devdas(dot)kumkar(at)gmail(dot)com
> <mailto:devdas(dot)kumkar(at)gmail(dot)com>> wrote:
>
> On Thu, Sep 18, 2014 at 4:03 PM, Andres Freund
> <andres(at)2ndquadrant(dot)com <mailto:andres(at)2ndquadrant(dot)com>> wrote:
>
> I don't think that's relevant for you.
>
> Did you upgrade the database using pg_upgrade?
>
>
> That's correct! No, there is no upgrade here.
The above sentence is not clear to me.
Did you run pg_upgrade to get the data into the database?
If not, how did the database get populated?
>
> Can you show pg_controldata output and the output of 'SELECT oid,
> datname, relfrozenxid, age(relfrozenxid), relminmxid FROM
> pg_database;'?
>
>
> Here are the details:
> oid datname datfrozenxid age(datfrozenxid) datminmxid
> 16384 myDB 1673 10872259 1
>
> Additionally wanted to mention couple more points here:
> When I try to run "vacuum full" on this machine then facing
> following issue:
> INFO: vacuuming "myDB.mytable"
> ERROR: MultiXactId 3622035 has not been created yet --
> apparent wraparound
>
> No Select statements are working on this table, is the table corrupt?
>
>
> Any inputs/hints/tips here?
Have you run the query from here?:
http://www.postgresql.org/docs/9.3/interactive/release-9-3-5.html
WITH list(file) AS (SELECT * FROM pg_ls_dir('pg_multixact/offsets'))
SELECT EXISTS (SELECT * FROM list WHERE file = '0000') AND
NOT EXISTS (SELECT * FROM list WHERE file = '0001') AND
NOT EXISTS (SELECT * FROM list WHERE file = 'FFFF') AND
EXISTS (SELECT * FROM list WHERE file != '0000')
AS file_0000_removal_required;
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | smcg2297 | 2014-09-18 22:35:34 | a couple questions about convert() |
Previous Message | Edson Carlos Ericksson Richter | 2014-09-18 21:26:43 | Re: Why isn't Java support part of Postgresql core? |
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 2014-09-18 22:14:19 | Re: Anonymous code block with parameters |
Previous Message | Marko Tiikkaja | 2014-09-18 20:40:28 | Re: Anonymous code block with parameters |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2014-09-19 02:37:55 | Re: [GENERAL] pg_multixact issues |
Previous Message | Dev Kumkar | 2014-09-18 17:22:57 | Re: [GENERAL] [SQL] pg_multixact issues |