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

From: Alban Hertroys <haramrae(at)gmail(dot)com>
To: depesz(at)depesz(dot)com
Cc: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Strange problem with create table as select * from table;
Date: 2011-11-03 14:19:36
Message-ID: CAF-3MvP5H2pdHy+DWK5KHpzp2rRjbr-4qg+cDj7e5bYgZSEVLA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 3 November 2011 15:15, hubert depesz lubaczewski <depesz(at)depesz(dot)com> wrote:
>> Do the xobject_id values have other negative numbers or is -1 just a special
>> case? The only thing I can think of is a corrupted index on xobject_id.
>
> minimal xobject_id in source table is 1000.
>
> 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:

Actually, it does. A sequential scan doesn't use the index.

--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2011-11-03 14:21:42 Re: Strange problem with create table as select * from table;
Previous Message hubert depesz lubaczewski 2011-11-03 14:15:22 Re: Strange problem with create table as select * from table;

Browse pgsql-hackers by date

  From Date Subject
Next Message hubert depesz lubaczewski 2011-11-03 14:21:42 Re: Strange problem with create table as select * from table;
Previous Message Dimitri Fontaine 2011-11-03 14:18:52 Re: removing =>(text, text) in 9.2