Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XUjXn-0006XP-G2 for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Sep 2014 21:47:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XUjXm-0005vH-Ld for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Sep 2014 21:47:14 +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 1XUjXk-0005v1-OR for pgsql-hackers@postgresql.org; Thu, 18 Sep 2014 21:47:13 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUjXg-0006SV-Ai for pgsql-hackers@postgresql.org; Thu, 18 Sep 2014 21:47:10 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by gateway2.nyi.internal (Postfix) with ESMTP id 038BD20B2D for ; Thu, 18 Sep 2014 17:47:06 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 18 Sep 2014 17:47:06 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=qqWDYpiiMk0zW/QZ4D1hG0ydUgU=; b=VkTvV/GC3DQv6OpZlLG8h0/cF2Y6 FTKrLqi1QA6KtUleUK12u4wjyPUjZjA2Ieo0bAXNxs/8is75zokllKPBBSlmudVA DqTrvQMD8/WZzrtkvwr/Z6hZZgwE3Q45LHn72cFgKvkZ/y1JX/t3tMGJwkDQ05+4 WbI4PObU+Pm1XeU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=qqWDYpiiMk0zW/QZ4D1hG0 ydUgU=; b=UiJBQZfMed1teim/izV//kDNJuJaEy2Xup/JX0M0iu5CVQb5+aRaCM gJ+ARaaJPaLeBwdADZrPVRh04Nk8RTxTcNmo0cbTn5c7kIXKhr86+oPWM80ufqzR seo8n7FlYfK5WiqOT/UbiYQG1slSs1FzdQYNviEiMx6NM3b7h+HcQ= X-Sasl-enc: sLpxUvIb5WTcDKJ03pX3d4xNqQyEb/5qyaVOpf78Qbsd 1411076825 Received: from [192.168.1.5] (unknown [174.21.177.1]) by mail.messagingengine.com (Postfix) with ESMTPA id 36363C0091E; Thu, 18 Sep 2014 17:47:05 -0400 (EDT) Message-ID: <541B52D8.6000005@aklaver.com> Date: Thu, 18 Sep 2014 14:47:04 -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: Dev Kumkar , Andres Freund , pgsql-hackers CC: "pgsql-general@postgresql.org" , pgsql-sql@postgresql.org Subject: Re: [GENERAL] [SQL] pg_multixact issues References: <54198AEB.2070508@aklaver.com> <5419F908.2080303@aklaver.com> <20140918103338.GF17265@alap3.anarazel.de> In-Reply-To: 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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 09/18/2014 10:22 AM, Dev Kumkar wrote: > On Thu, Sep 18, 2014 at 6:20 PM, Dev Kumkar > wrote: > > On Thu, Sep 18, 2014 at 4:03 PM, Andres Freund > > 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