Re: Strange problem with create table as select * from table;

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Strange problem with create table as select * from table;
Дата
Msg-id 19381.1320332120@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Strange problem with create table as select * from table;  (hubert depesz lubaczewski <depesz@depesz.com>)
Ответы Re: Strange problem with create table as select * from table;  (hubert depesz lubaczewski <depesz@depesz.com>)
Re: Strange problem with create table as select * from table;  (hubert depesz lubaczewski <depesz@depesz.com>)
Список pgsql-general
hubert depesz lubaczewski <depesz@depesz.com> writes:
> index on xobject_id might be corrupted, but it doesn't explain that I
> don't see duplicates with group_by/having query on xobjects, which uses
> seqscan:

I was just going to ask you to check that.  Weird as can be.

Does plain old "SELECT COUNT(*)" show a difference between the two
tables?

Do you get similar misbehavior if you break the CREATE TABLE AS into a
CREATE and an INSERT/SELECT?  Also, please note the rowcount returned
by INSERT/SELECT and see how it matches up with the tables afterwards.

Does turning synchronize_seqscans off affect the behavior?

            regards, tom lane

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

Предыдущее
От: Ioana Danes
Дата:
Сообщение: Re: Memory Issue
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: Strange problem with create table as select * from table;