Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTwjL-00007j-V4 for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Jun 2018 21:58:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fTwjJ-00027Q-UC for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Jun 2018 21:58:01 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTwjJ-00027H-OD for pgsql-bugs@lists.postgresql.org; Fri, 15 Jun 2018 21:58:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTwjD-00026A-4F for pgsql-bugs@lists.postgresql.org; Fri, 15 Jun 2018 21:58:01 +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 w5FLvouM006047; Fri, 15 Jun 2018 17:57:50 -0400 From: Tom Lane To: biazotogabriel@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15244: Inherited table queries return null lines that do not exist In-reply-to: <152909782124.24805.5442934323480694751@wrigleys.postgresql.org> References: <152909782124.24805.5442934323480694751@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Fri, 15 Jun 2018 21:23:41 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6045.1529099870.1@sss.pgh.pa.us> Date: Fri, 15 Jun 2018 17:57:50 -0400 Message-ID: <6046.1529099870@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > I was working with table inheritance and started having problems with my > queries. > I noticed that every time I perform a query on a parent table of an > inheritance and perform a query on any table then with more records than the > preceding table, postgres returns me rows with all records in null that do > not exist in the table that I'm consulting. FWIW, I tried this case with 1000000 somewhat-random records per table, and couldn't see any misbehavior. I wonder how much is "many records" for you. Also, what client-side code are you using? If it's not psql, can you reproduce the problem in psql? regards, tom lane