Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TCZ1O-00065w-0K for pgsql-bugs@postgresql.org; Fri, 14 Sep 2012 16:45:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TCZ1N-0005Xq-3F for pgsql-bugs@postgresql.org; Fri, 14 Sep 2012 16:45:37 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q8EGja2F016156; Fri, 14 Sep 2012 12:45:36 -0400 (EDT) From: Tom Lane To: yugandharhere@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7539: Result mismatch on Postgres 9.2.0 In-reply-to: References: Comments: In-reply-to yugandharhere@gmail.com message dated "Fri, 14 Sep 2012 01:43:38 -0000" Date: Fri, 14 Sep 2012 12:45:35 -0400 Message-ID: <16155.1347641135@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) X-Archive-Number: 201209/147 X-Sequence-Number: 34142 yugandharhere@gmail.com writes: > I am seeing a mismatch in the results returned by a select statement > on Postgres 9.2.0. What I am seeing is a select statement with an additional > restriction is returning results which are not part of the select statement > without that additional restriction. Below, I am pasting the version, select > statement, select statement with an additional restriction on the previous, > the explanation of the first select statement, the explanation of the second > select statement, and the schema of the tables in use. This may indeed be a bug, but you've not provided enough information for someone else to reproduce it. We need a self-contained test case. Ideally, that means a SQL script someone can run to set up the tables, load them with test data, and execute the misbehaving queries. You may be able to produce one by pg_dumping your data base and stripping down/anonymizing the data as necessary. regards, tom lane