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 1hP5x6-0002Tk-DW for pgsql-general@arkaria.postgresql.org; Fri, 10 May 2019 13:52:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hP5x4-0005ML-7q for pgsql-general@arkaria.postgresql.org; Fri, 10 May 2019 13:52:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hP5x2-0005MD-HF for pgsql-general@lists.postgresql.org; Fri, 10 May 2019 13:52:41 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hP5wx-0001qB-Qa for pgsql-general@postgresql.org; Fri, 10 May 2019 13:52:40 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CEE0C220AB; Fri, 10 May 2019 09:52:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 10 May 2019 09:52:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=n e8xXjw28MPR4oLBPBHNzNKXlVVBwEseOZcsSIpRszI=; b=i0gNgY9DuxKNRFAHp NI+OkfzxDMc4oAz9U0JInQ4LO931RV85qbBHU53hOwsSOxjUH6NprSS4KCxO+xga cYa+3raNyitNmk2zw97RxZ80yZlWwRX1vw4buEbYzp00j+k0ghB6EwkWn1rD3RSe mCqFTX/0P4yBvJwtEpikGm18Kp8R/yIu+zge0YI4O95CGAiM+Mcn9JMmlydgzd4O RrYOtuGULPY28ZPR9hzgQsGkdAaKMT5Pe5uDK+a9lZr3gBUSwzQJUKIqaGVcdkcU CudbnPrPtHyGLiwI52tTT8tNswKN/saYCM4aKqjpnPy8x8lyizuVMvpPBZNTeCld f4Yqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=ne8xXjw28MPR4oLBPBHNzNKXlVVBwEseOZcsSIpRs zI=; b=jx/lsbvDjX3lQHXNWjmcl9I9XksSIE/zFaCQswlzCSplIWLSbhX/nnn1P ydHCAnDlTldDAeuPB4cxg25Vy/aEBkuKqJnQeGFf2rhJ6Kd3TLSd1T91Q37s/ROx Aj8RWfz6eP0YGQO728BMcTT69qqcnWyftllp7tTjjC5o3hNLqN040WM4gDM7f/xO 7+RXNz33qytNawcoxczzR7QL8QRLbG2bsyEpv5UjxRwCZHO7FfC7iXv4m4lEb2AV 51E3hTbCR30p2uyy1ZhADFdfTX/Kopqa6RpsnA4uns1eGuf3+3YnAxBbYqh2PCI8 dchL9i4zVTRoEGhtYhK7wwqgMHv7Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeekgdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucffohhmrghinhepuggvphgvshiirdgtoh hmnecukfhppeejuddrvdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhho mheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 90E1F103CB; Fri, 10 May 2019 09:52:31 -0400 (EDT) Subject: Re: Question about Expected rows value in EXPLAIN output for Nested Loop node To: bb ddd Cc: pgsql-general@postgresql.org References: <1078310664.976303.1557490584037@nm63.abv.bg> <302576964.978332.1557491557322@nm63.abv.bg> From: Adrian Klaver Message-ID: <7ad0fba4-73b3-1459-93a7-a30cdcbb5bb9@aklaver.com> Date: Fri, 10 May 2019 06:52:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <302576964.978332.1557491557322@nm63.abv.bg> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/10/19 5:32 AM, bb ddd wrote: > > Not sure why some of the new lines disappeared in the original message. > here is the part that got most corrupted with some more new lines lets > hope it looks more readable now > > > > 1) I have 2 Index Scans inside a Nested Loop > > 2) Nested Loop's expected rows=1268 > > > 3.1) First Index Scan's expected rows=7 > > 3.2) Second Index Scan's expected rows=43810 > The best way to handle this is to post your EXPLAIN output to: https://explain.depesz.com/ and then post the link here. -- Adrian Klaver adrian.klaver@aklaver.com