Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sw49W-001eQY-W5 for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2024 18:32:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sw49W-001r25-CS for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2024 18:32:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sw49W-001r1C-1w for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2024 18:32:46 +0000 Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sw49T-002Aqs-5V for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2024 18:32:44 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.phl.internal (Postfix) with ESMTP id C97DC1380207; Wed, 2 Oct 2024 14:32:41 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 02 Oct 2024 14:32:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1727893961; x=1727980361; bh=WvedKpwPGuBSYbMYYtXM+eBSRVHmd+fRPFPwt7dq8g0=; b= OBVu79Dn9hUmpMPXDsnmYl+5Vu93D5oS8WiTtXgHSo6bs1SAa0to9pM8GIDPzcwj JwdZ/YENAKxoaa86LZv4FWh5TklmXugD4eu/DFs2OcUy0zsI/n5rOdjNru6FZ8H5 dXx15VeqnAkw9QgRx0mGsxPeFx0XR3zo/Gbh+FqGMzSnw56gcbRKSnPtq4BKYHnM T7V9KicdfLI5D8N978bzml8NIwmNHVcYYrPBfm9gtkeZBp0/LGZZ01pMM0QkUGxO nGPrrUmKRQm82jWGmSeo+4CKDinl76LSSpKDlWgrqkW+L0tvi5nLDZRUl9o2cOFX j/QOa4LduM9eD3CVuT0dyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1727893961; x= 1727980361; bh=WvedKpwPGuBSYbMYYtXM+eBSRVHmd+fRPFPwt7dq8g0=; b=V QaMBJuN9w7gpXJNJi0lOEwkp1rwZucFlv5cV0IeH0GKq2ulYVhHnyn7XY5nzQZUe koq4UQm6J8rx/rVlMTQTTNVs7VN564nFC/8HiMizE+FeuYVr1u21Cch3oH7Sk3GA reZlMdTI4PvjH61+NUpkvykxaGUupiSQCdGTqSvigjAwaU+EQMirwfq10r0sag51 qR6oaJE1iMEUoskDhTu801pkMD5bcUk/9cIT82wVViAAuyma83PZRNqtPKeLTcW6 Nb7uh/O79LUnrzXTyQ/a89KdVYhH2lOcHwPRG58bnzQdc7q7Ki12eNAT38hEjCYu ota1YrYVbpYW2grHbxV5w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdduledguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepkeegffegvddvvdehvdek hedvieevueffjeeiieeuvdetkeevieeuueelgeffteejnecuffhomhgrihhnpehprhhofh hinhhithdrvghunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghrtg hpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepjhgrnhdrphgvtghs ohhksehprhhofhhinhhithdrvghupdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlh eslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Oct 2024 14:32:40 -0400 (EDT) Message-ID: <2bd8e4fc-62d1-4160-905b-f691c99dcdc0@aklaver.com> Date: Wed, 2 Oct 2024 11:32:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Reading execution plan - first row time vs last row time To: =?UTF-8?B?UGVjc8O2ayBKw6Fu?= , "pgsql-general@lists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/2/24 02:37, Pecsök Ján wrote: > Ok, I replaced names of tables and columns and here is the query > > explain (analyze, verbose, settings, format text) create table dm.v_Table6_T_111111111 with (fillfactor = 100, parallel_workers = 20, autovacuum_enabled = false, toast.autovacuum_enabled = false) as select > VHS.df_v_Table2_key > , df_Table3_key > , df_Table4 > , null::varchar as ID3Table5 > , EH.IDTable5 > , EH.ID2Table5 > from dm.v_Table1_KT as VHS > left outer join dm.v_Table5 as EH using (df_v_Table5_key, df_Table3_key, df_Table4) > where VHS.df_Table4 = any ('{T}') > and VHS.df_Table4 = 'T' and VHS.df_Table3_key = 111111111; I'm thinking it would be better to do something like: create table dm.v_Table6_T_111111111 as select ... with no data to create the table structure. Then use COPY or batch INSERT to move the data into the table. >> >> S pozdravem >> >> *Ján Pecsők* >> >> Tychonova 2, 160 00 Praha >> Mobil: +420 775 942 871 >> jan.pecsok@profinit.eu www.profinit.eu >> >> >> >> > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com