Search Postgresql Archives

Re: [SQL] pg_multixact issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/18/2014 10:22 AM, Dev Kumkar wrote:
On Thu, Sep 18, 2014 at 6:20 PM, Dev Kumkar <devdas.kumkar@xxxxxxxxx
<mailto:devdas.kumkar@xxxxxxxxx>> wrote:

    On Thu, Sep 18, 2014 at 4:03 PM, Andres Freund
    <andres@xxxxxxxxxxxxxxx <mailto:andres@xxxxxxxxxxxxxxx>> 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@xxxxxxxxxxx


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux