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 1gpdEi-0000vM-SD for pgsql-performance@arkaria.postgresql.org; Fri, 01 Feb 2019 18:08:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gpdEh-00085R-HU for pgsql-performance@arkaria.postgresql.org; Fri, 01 Feb 2019 18:08:19 +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 1gpdEh-00085K-6o for pgsql-performance@lists.postgresql.org; Fri, 01 Feb 2019 18:08:19 +0000 Received: from mail-it1-x142.google.com ([2607:f8b0:4864:20::142]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gpdEe-0005y2-7U for pgsql-performance@lists.postgresql.org; Fri, 01 Feb 2019 18:08:18 +0000 Received: by mail-it1-x142.google.com with SMTP id z7so10539775iti.0 for ; Fri, 01 Feb 2019 10:08:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+ZGLFXOD8f09YW5enIQ/jN31vwkxoe3zY0rQevVArvs=; b=ahYXClRIZeeqgj5827DNKn/pv+BeUM4AspdomZFgUu8gLXFT9tuOsp00ZSuxzYvs8X po9pRdpuQ36FEnx4H5mYgAAIPVVo22p3pyQMyqRsaw20hv6glP8WChRCKVU7rVPS7L1Y HrqMPUTv5pS5iuQToT7OTkmpmkNgBuu3yv8ZRNsiFZLqC0WlC9MbbUGB6eUGu0lPbqXp HtsaaDVGw+iwg6AIDYJ276BwZyIYyysouzTXdOG2CtJDPeO4w64hgxA7rbqcjIwfhJAf XcOQshZNmJW4f4XoqxzKtuvw0lUrWv0xhaTlhoySKUMBGLcvRdv3pvl8M9FvFyfYpJXS ROIA== 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:user-agent; bh=+ZGLFXOD8f09YW5enIQ/jN31vwkxoe3zY0rQevVArvs=; b=jqvIE/6JovVst8mwZomdEfUhOIGt5+r3aphzJ+lhI9doLLcZfKavE6TtWTY6lr9Y8d 7OC8eFJWkKSquEYxb9ukxtV6L00fDXfgo4TkLAdqp0/QU3TMSQSX+PJeo9nlSPh7O1t2 QpWpt4zUjU5MJrFpaNH+GTDF3OE0IZkcmX9L5or0TaCQrtyhEv3FeJE3Ea1XuCMSvomo xUfw6coj7pgLRbD0yjtQmEvbTOUQf4ZvnNveCHNTw8JjxOh44R5NHQPiU3RQ7WipoUey Sb7TWCXvAAB6Jh+1euXuM7w88VjcEtj9ry0hhecnahetAysAgcPXqcV0W3FuEfopXh4u xnIw== X-Gm-Message-State: AHQUAuajGHEWKacC20CgvJw2CS84rGJn4WQv+uHH9Y5bi2yusijKgUJH S05PbNdRZa6u/e80+q6QyaHZaw== X-Google-Smtp-Source: AHgI3IZMnRNEpWjQP/hzSoYKNl0eODCaE7+3ka1/DJ/QxT2sSbUjMwmZ5xW1Xpwe+Q8bG5o0UdNh7w== X-Received: by 2002:a24:5651:: with SMTP id o78mr2106800itb.157.1549044494290; Fri, 01 Feb 2019 10:08:14 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id u25sm3484424iob.23.2019.02.01.10.08.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Feb 2019 10:08:13 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 17D648010CD; Fri, 1 Feb 2019 12:08:12 -0600 (CST) Date: Fri, 1 Feb 2019 12:08:11 -0600 From: Justin Pryzby To: Arne Roland Cc: Thomas Munro , Sand Stone , Rick Otten , Tom Lane , "pgsql-performance@lists.postgresql.org" , Robert Haas Subject: Re: dsa_allocate() faliure Message-ID: <20190201180811.GE29720@telsasoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Jan 31, 2019 at 06:19:54PM +0000, Arne Roland wrote: > this is reproducible, while it's highly sensitive to the change of plans (i.e. the precise querys that do break change with every new analyze). Disabling parallel query seems to solve the problem (as expected). > At some point even the simple query > select count(*) from test_tab where (o = '0' and date >= '30.01.2019'::date-interval '14 days' or o = '1' and date >= '30.01.2019'::date-interval '14 days') and coalesce(fid,fallback) >=6 and coalesce(fid,fallback) <=6 > was reported to fail (with the same error) at the live database, but I wasn't able to obtain a plan, since it works again with the current live data (maybe autoanalyze is at fault here). > The table test_tab has roughly 70 children that inherit from it. The children and the corresponding indexes should be named like '%part%'. > > I attached a query with a plan that fails on my test database. Thanks - note that previously Thomas said: On Mon, Dec 03, 2018 at 11:45:00AM +1300, Thomas Munro wrote: > On Sat, Dec 1, 2018 at 9:46 AM Justin Pryzby wrote: > > elog(FATAL, > > "dsa_allocate could not find %zu free pages", npages); > > + abort() > > If anyone can reproduce this problem with a debugger, it'd be > interesting to see the output of dsa_dump(area), and > FreePageManagerDump(segment_map->fpm). This error condition means Are you able to cause the error in a test/devel/non-production environment to run under a debugger, or could you compile with "abort();" after that elog() to save a corefile ? Justin