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 1m85Am-00049y-8J for pgsql-performance@arkaria.postgresql.org; Mon, 26 Jul 2021 18:17:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m85Al-0005K1-8n for pgsql-performance@arkaria.postgresql.org; Mon, 26 Jul 2021 18:17:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m85Ak-0005Jt-Su for pgsql-performance@lists.postgresql.org; Mon, 26 Jul 2021 18:17:51 +0000 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m85Ai-00037A-Ak for pgsql-performance@lists.postgresql.org; Mon, 26 Jul 2021 18:17:49 +0000 Received: by mail-io1-xd2e.google.com with SMTP id m13so13005491iol.7 for ; Mon, 26 Jul 2021 11:17:48 -0700 (PDT) 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:content-transfer-encoding:in-reply-to :user-agent; bh=VKDiZRxu/pcTI77Nx43Cru8//cfEQVLBOQK3blc4Avw=; b=EbhWOi9pRoO80CICmcSa9NxVXL4Ekz4Q1H77mTj4RO34YBWeFXPQ7pulB3Gr7ViSAJ kB4SGm0PPQFuzuNwcu0TcCjOKFN70yajqvi3FjL4Amg7Tdpv5UH45IKUDT65CrWa8+Ab WRp3k4LBwWPTeKHuLvlJBd1JJxYmtU2Hf9yEfynFfbW7C/D2JpkMg/9c5Bpca18K2/iH DzZViG6xN+UVrxtKOGPTv76I8iy6rzNsCVwLyNENMqvnAzy32SZ6tU6B62EY2WJct37F UqZzcVIEnu0J6jOYuxH1sgzXe5YHL/AbxoiuezWSN2Poi4s9EXzv2rMFbqfiu+En9u9v cj4g== 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:content-transfer-encoding :in-reply-to:user-agent; bh=VKDiZRxu/pcTI77Nx43Cru8//cfEQVLBOQK3blc4Avw=; b=CvZp6Pqy8uu+Z6RcOZ8rvQujjiNt740/2VnAtoe4KEUuUvq43EOpJkKT9slOLPbmmo qKkeJgjtUSoxdphta29cABhLcfia5qUgYrSsra6tM8rR3uOyUReHg2/tr1scpWEiH7D6 D3ExrdPf+viZ1iZlEjblCxTnvjFJxpCapePYWa+eul0GvoyG6pJNuXBe4P8ME5UdmnBV Uq1HmjWESPv3hI3ixkJvIJCuM4JtMHmJhEHf34kEfqkILV51+EL/Dcnidym1xEuVVAQc D8SsNLnr/2oG6C6nFa7WTCbs9x5dJBeaPW/JEB46ZmuX16jgzjHoK6CZ/hbI4s98LrXE yPow== X-Gm-Message-State: AOAM531Mm0LFCH8LdzKIK7HfKwt+sF2vbeZpKG012DjRfc4l0NWp77tw g40wbb+yWRf2H3o7RUPLHYvvpw== X-Google-Smtp-Source: ABdhPJwiWiyR29lJtTdV8OSalSsjtZi8coQ25yvR97qPYMOQynRIQL+e6coUvZ/zzkymA9fwzVKlyA== X-Received: by 2002:a5e:d918:: with SMTP id n24mr16151546iop.173.1627323467452; Mon, 26 Jul 2021 11:17:47 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id z24sm352988iog.46.2021.07.26.11.17.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jul 2021 11:17:47 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 12766801407; Mon, 26 Jul 2021 13:17:46 -0500 (CDT) Date: Mon, 26 Jul 2021 13:17:45 -0500 From: Justin Pryzby To: Simen Andreas Andreassen =?iso-8859-1?Q?L=F8nsethagen?= Cc: pgsql-performance@lists.postgresql.org Subject: Re: Performance of lateral join Message-ID: <20210726181745.GE23997@telsasoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Jul 26, 2021 at 01:56:54PM +0000, Simen Andreas Andreassen Lønsethagen wrote: > To create the subsets, I (or rather my application) will receive lists of records which should be matched according to some business logic. Each of these lists will be read into a temporary table: Easy first question: is the temp table analyzed before being used in a join ? (This is unrelated to "explain analyze"). > I am running PostgreSQL 11.9 on x86_64-pc-linux-gnu using AWS Aurora on a db.t3.large instance (https://aws.amazon.com/rds/instance-types/). The output of > FROM pg_settings > is attached in pg_settings.conf. I think the attachment is missing. -- Justin