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 1gFxJ6-0000Rq-F6 for pgsql-general@arkaria.postgresql.org; Fri, 26 Oct 2018 08:17:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gFxJ2-0008ET-Pv for pgsql-general@arkaria.postgresql.org; Fri, 26 Oct 2018 08:17:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFxJ2-0008EL-Bm for pgsql-general@lists.postgresql.org; Fri, 26 Oct 2018 08:17:20 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gFxIy-0003cv-9N for pgsql-general@lists.postgresql.org; Fri, 26 Oct 2018 08:17:18 +0000 Received: by mail-wr1-x443.google.com with SMTP id g9-v6so380640wrq.4 for ; Fri, 26 Oct 2018 01:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DBfsBC2WQ0Kjyx4DuBd0sD0FaETpCk99O24xMyGIBkE=; b=uxjLWNedpsy/qa2zyXMK62F/MdeaEfPPAXtR/TAD0NyTO2ouTgSUo+6ZeIXk4tzazk 3mIXjCYbc4PK+CctBB/XUrs1bOBb5bho8x5pSOFg1KpoVi/KmHOdN030/vBzvL1r9hZY uuTSsAtJfg+mQgsR+/esl0GpXJdBl45F3OL/W6UcLx689/x/SLI7cuCzUsk1W/fMiQUG /6F110NTZXOCzB1lFAe9KiNJ5uQVniO8cgt5WQqRhjNPCmTo0CI74edPu12S/AEEhoJ4 M2O+xIx/yc9HPsAJwfIkZFIjflCfFSk8+WWp1eRd+PfzJ+wnIAsR8kcqmX4xofrzKODc avQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DBfsBC2WQ0Kjyx4DuBd0sD0FaETpCk99O24xMyGIBkE=; b=HxciLnVY/vYQoRLwnvPkKCbSsb8TELBfGFQOEh46XpSyPaz3R2f6VaK0t4T7VwlATS sgiCTDIFRB4djU2LsOO14bwLZW2ZUribJxftz57TxC63OZAeMah+G+iIPzyAJpnoC9Yi izreOmv3ucjkFg0J5dlfhBanWmmwr8Cgw6b73DPR49+XWnefSsErnveSIMf0kwieuGDk 5ukafGDLSAWBoDyXuc9NpVJJo/5YmSueeSDk8g5Rp4z3TIGk/N4MbmsO++fhuQaWtjqX kM7zwnyD2VVVmZ6EklDmKwqlSh+echNk7z5qT4idOoFS7IPvXh9jgiPQs7/7NGSKj85B NLLw== X-Gm-Message-State: AGRZ1gJZy0eABNuzUbxSUhwc32LXCE+dazrvIPCUHouTpSm6eZPzx/cO RulMHTV2uFp4/VGeI32DR0E= X-Google-Smtp-Source: AJdET5cMY0NKVq717MAcC6InGHpm5LlDu4iarVeBU/zzf//t3lKgXi77n9cjttm7jKZRp5vvBj3Qww== X-Received: by 2002:adf:a706:: with SMTP id c6-v6mr5176873wrd.56.1540541833933; Fri, 26 Oct 2018 01:17:13 -0700 (PDT) Received: from [192.168.36.13] ([213.152.28.84]) by smtp.gmail.com with ESMTPSA id 64-v6sm12875699wrr.64.2018.10.26.01.17.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Oct 2018 01:17:12 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Postgresql issue: FATAL: dsa_allocate could not find 7 free pages From: Alexandre Assouad In-Reply-To: Date: Fri, 26 Oct 2018 10:17:12 +0200 Cc: "pgsql-generallists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <179A90DF-3D8E-4BDC-A222-E17D67B49C14@gmail.com> References: To: Thomas Munro X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thanks for your response ! I=E2=80=99ll try next week to build a test environment and I=E2=80=99ll = send you the results. Does it make any difference to set up a VM vs a dedicated machine ? Thanks for your help ! > Le 26 oct. 2018 =C3=A0 00:58, Thomas Munro = a =C3=A9crit : >=20 > On Fri, Oct 26, 2018 at 2:21 AM Alexandre Assouad > wrote: >> FATAL: dsa_allocate could not find 7 free pages >=20 >> Some users have faced this issue which seems to be a bug in = postgresql query planner which should be solved : >> = https://www.postgresql.org/message-id/CAEepm%3D1k7sYJbxoOSJcS-4ti2MHOnBXBf= Lf%3D-gtuFLTXPqvTDg%40mail.gmail.com >=20 > Hello Alexandre, >=20 > Thanks for the report. Yes, that bug does seem like a plausible > explanation for that error. The fix was in commit 8ffc3be1, which > will be included in 10.6 (target release date: November 8th). It's > also in 11.0, out now. >=20 > If you are able to reproduce the problem easily on a copy of your > database, and you have the time/inclination to investigate, is there > any chance you could test the query on a local build of REL_10_STABLE > (the branch that will produce 10.6 soon), instructions below, or the > released v11.0 (if Timescale is available for that, it doesn't look > like it)? If not, no worries. >=20 >> But I=E2=80=99m still facing this issue. >> I=E2=80=99m using postgresql 10.5 on ubuntu 18.04 >> With timescaledb extension (which could be involved in this bug but I = couldn=E2=80=99t find any related issue on their side) >=20 > It's interesting that reports came from users of Citus and Timescale. > There doesn't seem to be any reason to think it's caused by anything > these extension are doing, other than just having a lot of data, big > queries and the right access pattern to hit that bug. >=20 > =3D=3D=3D How to set up a throw-away REL_10_STABLE cluster: >=20 > On an Ubuntu developer machine, check out, build, install into > temporary directory: > sudo apt-get install git make gcc flex bison libz-dev libreadline-dev > git clone https://github.com/postgres/postgres.git > cd postgres > git checkout REL_10_STABLE > ./configure --prefix=3D$HOME/tmp_install > make -s -j8 && make -s install >=20 > Initialise and start a database cluster: > ~/tmp_install/bin/initdb -D ~/tmp_pgdata > ~/tmp_install/bin/postgres -D ~/tmp_pgdata > ... now postgres is running in the foreground, until you hit ^C > ... do whatever you need to do to install Timescale extension, schema, > data, reproduce problem >=20 > To check that you can reproduce the problem in 10.5 with a server > built that way, stop that and: > git checkout REL_10_5 > make -s clean && make -s -j8 && make -s install > ~/tmp_install/bin/postgres -D ~/tmp_pgdata >=20 > To install Timescale it's probably the instructions from > https://github.com/timescale/timescaledb, using ./bootstrap > -DPG_CONFIG=3D~/tmp_install/bin/pgconfig but i haven't tried that > myself. >=20 > (You don't have to run initdb again or reload data when switching > between tags/branches in the 10.x series). >=20 > --=20 > Thomas Munro > http://www.enterprisedb.com