agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Adrian Klaver <adrian.klaver@aklaver.com>
To: Dev Kumkar <devdas.kumkar@gmail.com>
To: Andres Freund <andres@2ndquadrant.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: [GENERAL] [SQL] pg_multixact issues
Date: Thu, 18 Sep 2014 14:47:04 -0700
Message-ID: <541B52D8.6000005@aklaver.com> (raw)
In-Reply-To: <CALSLE1OmAcaj6BmHu07LWNkRgd=xvoHyqsasTTVquHxXcni-mg@mail.gmail.com>
References: <CALSLE1P4knmyFa5BzdeYo7fVnjw-1-TwW9dXTEW-9nJjK4fQMg@mail.gmail.com>
<54198AEB.2070508@aklaver.com>
<CALSLE1Pywi4SAyvOVHn+FfxTHMF88t4esgPXxwS9etWMzeE0Rg@mail.gmail.com>
<CALSLE1MAgy4QC0-xLju6MBxO6Upp6=84xwAMt2dkfiGbd6pB9Q@mail.gmail.com>
<5419F908.2080303@aklaver.com>
<CALSLE1NT9c9eYs95Q3=7C5dWkzrrULQTy6bcSkFsP1OKA+AXHg@mail.gmail.com>
<20140918103338.GF17265@alap3.anarazel.de>
<CALSLE1Mngj=vyA-hdKaB-HWQ=gU_A3vDRE4ddyKwViTRFXmLFg@mail.gmail.com>
<CALSLE1OmAcaj6BmHu07LWNkRgd=xvoHyqsasTTVquHxXcni-mg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 09/18/2014 10:22 AM, Dev Kumkar wrote:
> On Thu, Sep 18, 2014 at 6:20 PM, Dev Kumkar <devdas.kumkar@gmail.com
> <mailto:devdas.kumkar@gmail.com>> wrote:
>
> On Thu, Sep 18, 2014 at 4:03 PM, Andres Freund
> <andres@2ndquadrant.com <mailto:andres@2ndquadrant.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.klaver@aklaver.com
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
view thread (24+ messages) latest in thread
Message-ID: <541B52D8.6000005@aklaver.com>
Permalink: ../541B52D8.6000005@aklaver.com/
Also on: postgresql.org/message-id/541B52D8.6000005@aklaver.com
reply
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-sql@postgresql.org
Cc: adrian.klaver@aklaver.com, devdas.kumkar@gmail.com, andres@2ndquadrant.com, pgsql-hackers@postgresql.org, pgsql-general@postgresql.org
Subject: Re: [GENERAL] [SQL] pg_multixact issues
In-Reply-To: <541B52D8.6000005@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox