Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ptKxH-0003WI-Uf for pgsql-performance@arkaria.postgresql.org; Mon, 01 May 2023 04:16:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ptKxG-0008Lq-Jc for pgsql-performance@arkaria.postgresql.org; Mon, 01 May 2023 04:16:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ptKxG-0008Lg-9S for pgsql-performance@lists.postgresql.org; Mon, 01 May 2023 04:16:02 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ptKxD-0065oi-Bn for pgsql-performance@lists.postgresql.org; Mon, 01 May 2023 04:16:01 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-94f32588c13so358139166b.2 for ; Sun, 30 Apr 2023 21:15:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20221208.gappssmtp.com; s=20221208; t=1682914558; x=1685506558; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=AY54d873nvdRz/R+sByc0ANs0h05/NrLk72iGdlQnno=; b=Ac95XT1ZcRgRTHe7rDNzKBBhkPVIEAzD+3ewzxjOi8QgOnIE9WmPZnqISJrrVqh47D DUpDoDbdQ/3DDAFUSLD4KvTIDVXytTdBw3k2nZugALSozzUM4WLkT6jtubgHn2usA5fM iaop02dMBTIa0PUUSiGXHR0IUToKbyw6SD5Mrww32iyonQ9E71ejfakMQhgt8D935G0W ARQuxYwDdnmU89ylDAhr6jv2bAntzsB0iJQefTgLRzyHRQzFQzf6MzshdeTjmMmHAZzb uUTpI38mKSXLxSRmXbHUuEYZ4fKpHxpAo06MV8VHTiecDSWATZTYpX08HVOnCBMmTiDb uV1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682914558; x=1685506558; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=AY54d873nvdRz/R+sByc0ANs0h05/NrLk72iGdlQnno=; b=eZGSI55Pef0oBKzu+CwA2o/3kH068NYjiv66Y00BhInIaXlIoOipnfUxI10EPkRcxG hFSazj53gSlHWx21sXg+sDSeR20MkojqKJhgTgfTUfUq3H8Qzy3pzT4Oa7q/n6e5fewD Z6iaD0uuzjwF8kdV8JXh7PVWSQ9tv8YwxVKI+tD0vE7X3GyFBLxVkqPHY/nY+k+LjZwO 6UAo5Q5G8CN2fHLG5JCdMvkpvU/7mGoFYtvhE/g3EJsefQSHK2bWvX00fhZdnSYdMLbv TPEjRBwFoYAtH99uJlKxZPX+vDpK1PWt+8JvdwlXBImBxASeOJgcEMR7Ckqw9+IGYsiu YKJA== X-Gm-Message-State: AC+VfDwEjJrYxuyxf4+JWLxBM/DeQ81YNIqDuyE7yUmVnewGOYD9bowQ Rh+7m2e47s6vwSiBd9f+Vu+FzQ== X-Google-Smtp-Source: ACHHUZ4nCBSy4OmE1Z9jxrXFqNIALmwVpFYD/Er4b4asnrbNFJlWmpxU49FbJf8aTLVbNh2dSCJRWQ== X-Received: by 2002:a17:907:d1f:b0:961:a973:2bd8 with SMTP id gn31-20020a1709070d1f00b00961a9732bd8mr699518ejc.73.1682914557943; Sun, 30 Apr 2023 21:15:57 -0700 (PDT) Received: from localhost.localdomain (62-46-253-209.adsl.highway.telekom.at. [62.46.253.209]) by smtp.gmail.com with ESMTPSA id l11-20020aa7cacb000000b0050b2f588db6sm1789455edt.16.2023.04.30.21.15.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Apr 2023 21:15:57 -0700 (PDT) Message-ID: Subject: Re: Performance issues in query with multiple joins From: Laurenz Albe To: =?UTF-8?Q?=CE=A0=CE=B1=CF=81=CE=B1=CF=83=CE=BA=CE=B5=CF=85=CE=B7_?= =?UTF-8?Q?=CE=A0=CE=B1=CF=83=CF=83=CE=B1=CF=81=CE=B7?= , pgsql-performance@lists.postgresql.org Date: Mon, 01 May 2023 06:15:56 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2023-04-28 at 15:19 +0300, =CE=A0=CE=B1=CF=81=CE=B1=CF=83=CE=BA=CE= =B5=CF=85=CE=B7 =CE=A0=CE=B1=CF=83=CF=83=CE=B1=CF=81=CE=B7 wrote: > We are facing a performance issue with the following query. Executing thi= s query takes about 20 seconds. > (the database version is 14.1) The execution plan seems to be incomplete. Yours, Laurenz Albe