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

Поиск
Список
Период
Сортировка
От mrtruji
Тема Re: Selecting newly added column returns empty but only when selecting with other columns in table
Дата
Msg-id CAJEV4pqaUPL=tXAmWEZ+BRyPatGQNvH+x+TjdUKnW+H2HEBY=g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Selecting newly added column returns empty but only when selecting with other columns in table  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general
On Thu, Nov 26, 2015 at 7:24 PM, Melvin Davidson <melvin6925@gmail.com> wrote:
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@hogranch.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@postgresql.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.



Thanks for all the responses and for pointing me in the right direction! 

В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Selecting newly added column returns empty but only when selecting with other columns in table
Следующее
От: Albe Laurenz
Дата:
Сообщение: Re: 2 questions