Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3dfD-0002uY-3R for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Apr 2018 08:21:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f3dfC-00069P-0T for pgsql-bugs@arkaria.postgresql.org; Wed, 04 Apr 2018 08:21:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3dfB-00068G-Nu for pgsql-bugs@lists.postgresql.org; Wed, 04 Apr 2018 08:21:01 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f3df9-0007mv-Gw for pgsql-bugs@lists.postgresql.org; Wed, 04 Apr 2018 08:21:01 +0000 Received: by mail-wr0-x241.google.com with SMTP id u11so21119013wri.12 for ; Wed, 04 Apr 2018 01:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=+Z2yZAp2d7AbzbiL2OQn1G8CbIIIlS9mB3/6Q8MRu+8=; b=JNvAvP1sDSaPueRurkUyOrll0nLTjkY3e5G8/Iw5LWM35gyuae3+ND91er47+0QRAS 3ZQqeZ9ukwCJji8Vi5qkV9072ksZv6ZIqCR0sMFDOKdA3q+MLUt9xmxyuRU/4L5pkdUI i1bHoocfnWbRe7vlzCn+9SkLlHNYTQmCN774THss12p8Zx7iuD+h1gv7azO83RQyIWhl Mug5LApdWmLjSmEqmHd7oUqOv3/fZJv+ihm4N3Zel9qIQcJ7iLEEJC4nuhN4x9epS0S9 zPmFZqgNtMC745IXPVoBWTnvqmWVlV/H9gPByT7WFExhyBsrepr0QAruFNdDoCBLgf+M bXGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=+Z2yZAp2d7AbzbiL2OQn1G8CbIIIlS9mB3/6Q8MRu+8=; b=EdoNy8AKH2cEBxzMIOmtiLUb6apNO3qpV8691aupoqPNs0R0u77QTpQji8nZ3eR+fW GWoIvyOQZnQrUdBCQ3YLCCJyDhJFEvE9odAVb+z1NLzFIh9cjmmOwvvzYSpXufkCcnSq F2cA145VTg5riU1i/o6tlAxUaKgTCL0q4ViG0VuKlh4AwhEPjp5Bktd3YHIfJo0dodpl EmXOlqPo8cQ+4SOMnlU96pCbaakJR6qieo7AqC5UIIZ9qaDAUVAYjUI2e+BYrJkYdaZK TGx8l+/SsJCbAXHWLZVq8eNGrd5mEcWi1CydKmW5mANXc+fHSyT4YrRj2/c3r6HYUDmc zd0w== X-Gm-Message-State: ALQs6tBduggxNhXcBbOUzpTC8zzyFh83PecPakBs3wbqTyxmmGAZj6hh YjbEHu3BKi5yTBliH3X7ecPPxCVJ X-Google-Smtp-Source: AIpwx48Skf7TlRqyWQ4FIKj4eyj1U9jZjDplyY8+a9gDaoz7IBjPbP/iUV2U6rUNiExMaBjZMVCMBg== X-Received: by 2002:a19:d085:: with SMTP id h127-v6mr10221480lfg.29.1522830057859; Wed, 04 Apr 2018 01:20:57 -0700 (PDT) Received: from [192.168.0.69] ([91.217.67.2]) by smtp.gmail.com with ESMTPSA id p2sm772784ljc.19.2018.04.04.01.20.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Apr 2018 01:20:56 -0700 (PDT) Subject: Re: BUG #15142: ERROR: MultiXactId nnnnn has not been created yet -- apparent wraparound in v9.5 From: molofeev To: Alvaro Herrera Cc: pgsql-bugs@lists.postgresql.org References: <20180403132319.e2wtdc26ks54qbqt@alvherre.pgsql> <8883c05f-a737-5a14-301b-06d469ff9853@gmail.com> Message-ID: <957ebcc3-26c9-3ddd-f430-904d9a55505f@gmail.com> Date: Wed, 4 Apr 2018 11:20:55 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <8883c05f-a737-5a14-301b-06d469ff9853@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Any ideas? On 04/03/2018 04:36 PM, molofeev wrote: > The last query that working is - select * from TABLE_NAME limit 1 > offset 160; > > the next query > > select * from TABLE_NAME limit 1 offset 162; > > return - ERROR: MultiXactId 1048586 has not been created yet -- > apparent wraparound > SQL state: XX000 > > > On 04/03/2018 04:23 PM, Alvaro Herrera wrote: >> molofeev wrote: >>> Thank you for reply. >>> Output of pg_controldata: >>> >>> Latest checkpoint's NextMultiXactId:  1 >>> Latest checkpoint's NextMultiOffset:  0 >> Uh, this says that this cluster has never used any multixacts. >> >>> Output of [select datminmxid from pg_database where datname = >>> current_database();]: >>> >>> datminmxid >>> ------------ >>>            1 >> ... and this confirms. >> >> I think the easiest way forward is to identify the problem page and see >> what's there.  Please find what command was being run that caused the >> error, which might help narrow down which table it is; then scan the >> table to see on which page you can see the error. >> >