Re: BUG #15244: Inherited table queries return null lines that do not exist

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: biazotogabriel(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15244: Inherited table queries return null lines that do not exist
Date: 2018-06-15 21:57:50
Message-ID: 6046.1529099870@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

=?utf-8?q?PG_Bug_reporting_form?= <noreply(at)postgresql(dot)org> 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2018-06-16 14:42:26 Re: row_to_json(), NULL values, and AS
Previous Message PG Bug reporting form 2018-06-15 21:23:41 BUG #15244: Inherited table queries return null lines that do not exist