Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XFWnq-0006E0-DZ for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Aug 2014 23:08:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XFWnp-000894-Pq for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Aug 2014 23:08:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XFWno-00088x-LN for pgsql-bugs@postgresql.org; Thu, 07 Aug 2014 23:08:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XFWnl-00011I-Vp for pgsql-bugs@postgresql.org; Thu, 07 Aug 2014 23:08:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s77N8pFH022756; Thu, 7 Aug 2014 19:08:51 -0400 From: Tom Lane To: pankhuri.sai@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #11120: Decrease in no. of rows while sorting In-reply-to: <20140804064924.2708.77691@wrigleys.postgresql.org> References: <20140804064924.2708.77691@wrigleys.postgresql.org> Comments: In-reply-to pankhuri.sai@gmail.com message dated "Mon, 04 Aug 2014 06:49:24 -0000" Date: Thu, 07 Aug 2014 19:08:51 -0400 Message-ID: <22755.1407452931@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org pankhuri.sai@gmail.com writes: > n executing the following query, it is found that no. of actual rows after > hash join of part and partsupp (158960) is not equal to no. of rows sorted > after that(158755). I don't see any bug there. It looks like the mergejoin stopped a bit short of reading all the output from the sort node, which is unsurprising behavior for a mergejoin: it can stop as soon as it's exhausted the output from either input. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs