Re: Selecting newly added column returns empty but only when selecting with other columns in table

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: mrtruji <mrtruji(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Melvin Davidson <melvin6925(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Selecting newly added column returns empty but only when selecting with other columns in table
Date: 2015-11-27 03:26:13
Message-ID: CAKFQuwZbs8-0_Hd4GAah4ysMxVRB5fifV14pR5rESYa8ATxgag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, November 26, 2015, mrtruji <mrtruji(at)gmail(dot)com> wrote:

> Ok this is strange. Shouldn't it always be one or the other? Total row
> count for the table is 279,096.
>
> doggies=# select count(*) from data where features_bin is null;
> count
> --------
> 279096
> (1 row)
>
> doggies=# select count(*) from data where features_bin is not null;
> count
> --------
> 279096
> (1 row)
>
>
Please bottom post.

What do you get with explain analyze on those two queries.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2015-11-27 03:30:04 Re: Selecting newly added column returns empty but only when selecting with other columns in table
Previous Message John R Pierce 2015-11-27 03:25:37 Re: Selecting newly added column returns empty but only when selecting with other columns in table