Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j08tG-0006TH-G3 for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2020 19:02:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j08tE-0002kR-Ub for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2020 19:02:08 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j08tE-0002kK-II for pgsql-hackers@lists.postgresql.org; Fri, 07 Feb 2020 19:02:08 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j08tB-00046O-BS for pgsql-hackers@lists.postgresql.org; Fri, 07 Feb 2020 19:02:07 +0000 Received: by mail-wr1-x444.google.com with SMTP id z7so98772wrl.13 for ; Fri, 07 Feb 2020 11:02:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xSqWLkOUlI5nQt4tYhitRSZU56KMj1bTanE5bt+HxS8=; b=TvdUU/c1oYq8y01+kw2tNQuO51/eXXXPYoS66iyqn6dOMij805uqV5dAUeFGpbOuvY lSAF85HBRDEM9r86y/rG9q/AOdv78Aq4vpfHI+anAJPQshBeZC7IHuj0g83Ky3pAsC0R Mr9OVat0jYuXAU3uYUtt+gIFE2hEwIlTd/URvtRAtUaCnC8mhZYqyG9C2RHet2+OKRRa lcTyh2XCUebgpzgk8AqFbensonURVtAjNLaDQEn3IpPFmDPc/tv42rHpByU5kK4DMlRm dSF8wzfe8YJ+i20IuE6MfIwSsIv+uAY0Biuj3xH0i5n+7LJ5U40roVeYcTDBYOwPtRxo SznA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xSqWLkOUlI5nQt4tYhitRSZU56KMj1bTanE5bt+HxS8=; b=A3ZTJaLULSyrfEZQFJa8oJe9lV51DiIcdzGwlKU/kIne3ECzXcErc7i2M+AikLiLCJ XGfkdyIyjFKapb//pnCUXP6RiJ1LmHzWt1uwcAohHQbwMY1MYhTomUQYKMZ8wGNWQz5T zaD5xvD50gWQFE+X4l6vL+lExNOZZmzwgvzJJAfwHCcNF6EXZSO3svCfMxFXLUtM5yZa +7WljQAIYDyOls5IQQdy/WpQfnI0f9Hu8ZmwSTq6De/kpGU4xW3KaVa4+DqJaqo6xsUw RhJyiWJ81dyo2gKe7NGQ0eFHFHmnuvt2YCDsjBqr5wtvNqJPr/iR6mnlolrJyUuNCi6N s7IA== X-Gm-Message-State: APjAAAWoMTqQFVjNVm0vOALoubLO/diZBNyfNvfWRsM2M5aw/bVeUyk6 T9Mt5gKQVmL139adlYQUfhZbEQ== X-Google-Smtp-Source: APXvYqxY5l/MVPqQdjO5wOHWvmc8xLAEwHCxux4+6WBLwxwhprg7yBc9haP8foXogHMHtnOSu2RX3w== X-Received: by 2002:a5d:4687:: with SMTP id u7mr437522wrq.176.1581102124626; Fri, 07 Feb 2020 11:02:04 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id a26sm4411637wmm.18.2020.02.07.11.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 11:02:03 -0800 (PST) Date: Fri, 7 Feb 2020 20:02:01 +0100 From: Tomas Vondra To: Andres Freund Cc: Kuntal Ghosh , Tom Lane , Amit Kapila , Noah Misch , Amit Khandekar , Alvaro Herrera from 2ndQuadrant , Juan =?utf-8?B?Sm9zw6kgU2FudGFtYXLDrWE=?= Flecha , PostgreSQL Hackers , Robert Haas , Thomas Munro Subject: Re: logical decoding : exceeded maxAllocatedDescs for .spill files Message-ID: <20200207190143.ilk35qpsc44jj5ic@development> References: <22498.1578548741@sss.pgh.pa.us> <14739.1578613901@sss.pgh.pa.us> <18117.1578616812@sss.pgh.pa.us> <20200112033930.6cy3n6ybft6pp7gw@development> <29690.1578801237@sss.pgh.pa.us> <20200112041008.gddmpqunowlklc24@development> <7490.1578802856@sss.pgh.pa.us> <20200207183348.t2ulr65d5eueftlf@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200207183348.t2ulr65d5eueftlf@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Feb 07, 2020 at 10:33:48AM -0800, Andres Freund wrote: >Hi, > >On 2020-02-04 10:15:01 +0530, Kuntal Ghosh wrote: >> And, the issue got reproduced with the same error: >> WARNING: problem in Generation Tuples: number of free chunks 0 in >> block 0x7fe9e9e74010 exceeds 1018 allocated > >That seems like a problem in generation.c - because this should be >unreachable, I think? > >Tomas? > That's rather strange. How could we print this message? The code looks like this if (block->nfree >= block->nchunks) elog(WARNING, "problem in Generation %s: number of free chunks %d in block %p exceeds %d allocated", name, block->nfree, block, block->nchunks); so this says 0 >= 1018. Or am I missing something? regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services