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

From: Melvin Davidson <melvin6925(at)gmail(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: "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:24:55
Message-ID: CANu8Fixw0Av7XwdGctKsmeUnAs_h=BsU0wqrahKV=2Ln_-_t1A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Look like another case of PEBKAC solved. Thanks Adrian & JOhn for the
assist. Happy Thanksgiving everyone.

On Thu, Nov 26, 2015 at 10:22 PM, John R Pierce <pierce(at)hogranch(dot)com> wrote:

> On 11/26/2015 7:08 PM, mrtruji 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)
>>
>
>
> you inserted 278096 additional rows with (NULL, NULL, <somevalues>) to the
> 279096 existing rows that had (value,value,NULL)
>
>
>
>
>
>
> --
> john r pierce, recycling bits in santa cruz
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next 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
Previous Message John R Pierce 2015-11-27 03:22:14 Re: Selecting newly added column returns empty but only when selecting with other columns in table