From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
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:55:20 |
Message-ID: | 19381.1320332120@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
hubert depesz lubaczewski <depesz(at)depesz(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | hubert depesz lubaczewski | 2011-11-03 15:01:30 | Re: Strange problem with create table as select * from table; |
Previous Message | Ioana Danes | 2011-11-03 14:50:50 | Re: Memory Issue |
From | Date | Subject | |
---|---|---|---|
Next Message | hubert depesz lubaczewski | 2011-11-03 15:01:30 | Re: Strange problem with create table as select * from table; |
Previous Message | Magnus Hagander | 2011-11-03 14:38:19 | Re: Your review of pg_receivexlog/pg_basebackup |