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 1grCfw-0004nu-RX for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Feb 2019 02:10:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1grCfv-00026h-D6 for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Feb 2019 02:10:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1grCfu-00024S-Tw for pgsql-hackers@lists.postgresql.org; Wed, 06 Feb 2019 02:10:55 +0000 Received: from mail-it1-x141.google.com ([2607:f8b0:4864:20::141]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1grCfr-0004fT-8f for pgsql-hackers@postgresql.org; Wed, 06 Feb 2019 02:10:53 +0000 Received: by mail-it1-x141.google.com with SMTP id g85so2689472ita.3 for ; Tue, 05 Feb 2019 18:10:50 -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=jtOsbyN/MqzXoVZmA1WvaRP+qZrayiojhtkCQEzxqNc=; b=tK95aCMHQKBK37B9Zh1k+k7K7btw3Cv/rzk2hokvc0upS4dgYkRHihMLHdDO70UyO6 Hh60+H0gHWaKr9UPD109N3RvjtS2f8NqKjrFOZFuO5dg/DStlt4pA/+PlihmvAxTeTk3 JExObGfSNxmcNzR1+Z1DMfiwXgGgsHj93j/dVw6I802D/6U2mFzrZy5xEi+XF05vwK4h 9eHjgRApDF+UYqt30U8p0GLbWVkmYux+H0umrz5D/Exf3Q27zYZz6q0Pd93bIYEWR76k lUXGeVYL99II7qrXzMSxddy3+ZILQyOMFmyXkv8kC3FWt6KgLlXh/PzZqNLmJVPqO/z7 tBqw== 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=jtOsbyN/MqzXoVZmA1WvaRP+qZrayiojhtkCQEzxqNc=; b=STCtFCBKu6SsmKlpe4HRgG0J2Y+Rk7skjBNM8iG4L8hPQLRKn5A5vVFvkCFj2c7wAf XN6kdUOIeLpyynkTKhSU2rndlgNwOZN/kxcGEREztEP+50nJVQRdwirAk+LEbMDZ7t7a HdnZHy2fB2QV6OTmIk6zu6JRpzvHVdVDbJY1Lk22VaZRb7F0wSdaXJsmino7tC4zqv83 NW4RurmYcK+aybDhVTywq7nbuTLJIuTWj9u5K4evD8asFELAsTyd+gA2ZSl7unyAmeG+ xtAVRtq44lWajvLL+T+0YvQbiulaiAjN3lR/+XNm9PHxvILwvNLnMMAEVBhA0gyIj0Fa Y3NA== X-Gm-Message-State: AHQUAuYkyTfaQ/INn/zmNNgKczk0oKDKgQiafTlICv9K+QMRjEPTkWuu TfQ7tZ1/CcZAdymreWyRlX5uWUVUHxk= X-Google-Smtp-Source: AHgI3IZW+hzlJ9V48xXvoDxAOTJDdorQIBMC9JP1gAf6lZkruAYLyahYkZofBBH4yv0dkul3TpspfQ== X-Received: by 2002:a24:7349:: with SMTP id y70mr1020826itb.48.1549419049720; Tue, 05 Feb 2019 18:10:49 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id a79sm2651900ita.11.2019.02.05.18.10.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 18:10:48 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id E03E6800825; Tue, 5 Feb 2019 20:10:47 -0600 (CST) Date: Tue, 5 Feb 2019 20:10:47 -0600 From: Justin Pryzby To: pgsql-hackers@postgresql.org Cc: Thomas Munro Subject: Re: pg11.1: dsa_area could not attach to segment Message-ID: <20190206021047.GU29720@telsasoft.com> References: <20181231221734.GB25379@telsasoft.com> <20190205163509.GM29720@telsasoft.com> <20190205183454.GS29720@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190205183454.GS29720@telsasoft.com> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I should have included query plan for the query which caused the "could not find free pages" error. This is a contrived query which I made up to try to exercise/stress bitmap scans based on Thomas's working hypothesis for this error/bug. This seems to be easier to hit than the other error ("could not attach to segment") - a loop around this query has run into "free pages" several times today. explain (analyze,costs off,timing off) SELECT * FROM eric_enodeb_metrics WHERE start_time>='2017-10-01' AND (site_id<1900 OR site_id>2700) Gather (actual rows=82257 loops=1) Workers Planned: 3 Workers Launched: 3 -> Parallel Append (actual rows=20564 loops=4) -> Parallel Bitmap Heap Scan on eric_enodeb_201901 (actual rows=6366 loops=4) Recheck Cond: ((site_id < 1900) OR (site_id > 2700)) Filter: (start_time >= '2017-10-01 00:00:00-04'::timestamp with time zone) Heap Blocks: exact=2549 -> BitmapOr (actual rows=0 loops=1) -> Bitmap Index Scan on eric_enodeb_201901_site_idx (actual rows=0 loops=1) Index Cond: (site_id < 1900) -> Bitmap Index Scan on eric_enodeb_201901_site_idx (actual rows=25463 loops=1) Index Cond: (site_id > 2700) -> Parallel Bitmap Heap Scan on eric_enodeb_201810 (actual rows=15402 loops=1) Recheck Cond: ((site_id < 1900) OR (site_id > 2700)) Filter: (start_time >= '2017-10-01 00:00:00-04'::timestamp with time zone) -> BitmapOr (actual rows=0 loops=1) -> Bitmap Index Scan on eric_enodeb_201810_site_idx (actual rows=0 loops=1) Index Cond: (site_id < 1900) -> Bitmap Index Scan on eric_enodeb_201810_site_idx (actual rows=15402 loops=1) Index Cond: (site_id > 2700) -> Parallel Bitmap Heap Scan on eric_enodeb_201812 (actual rows=14866 loops=1) Recheck Cond: ((site_id < 1900) OR (site_id > 2700)) Filter: (start_time >= '2017-10-01 00:00:00-04'::timestamp with time zone) -> BitmapOr (actual rows=0 loops=1) -> Bitmap Index Scan on eric_enodeb_201812_site_idx (actual rows=0 loops=1) Index Cond: (site_id < 1900) -> Bitmap Index Scan on eric_enodeb_201812_site_idx (actual rows=14866 loops=1) Index Cond: (site_id > 2700) -> Parallel Bitmap Heap Scan on eric_enodeb_201811 (actual rows=7204 loops=2) Recheck Cond: ((site_id < 1900) OR (site_id > 2700)) Filter: (start_time >= '2017-10-01 00:00:00-04'::timestamp with time zone) Heap Blocks: exact=7372 -> BitmapOr (actual rows=0 loops=1) -> Bitmap Index Scan on eric_enodeb_201811_site_idx (actual rows=0 loops=1) Index Cond: (site_id < 1900) -> Bitmap Index Scan on eric_enodeb_201811_site_idx (actual rows=14408 loops=1) Index Cond: (site_id > 2700) -> Parallel Bitmap Heap Scan on eric_enodeb_201902 (actual rows=5128 loops=1) Recheck Cond: ((site_id < 1900) OR (site_id > 2700)) Filter: (start_time >= '2017-10-01 00:00:00-04'::timestamp with time zone) Heap Blocks: exact=3374 -> BitmapOr (actual rows=0 loops=1) -> Bitmap Index Scan on eric_enodeb_201902_site_idx (actual rows=0 loops=1) Index Cond: (site_id < 1900) -> Bitmap Index Scan on eric_enodeb_201902_site_idx (actual rows=5128 loops=1) Index Cond: (site_id > 2700) [...] Justin