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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
Cc: depesz(at)depesz(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Strange problem with create table as select * from table;
Date: 2011-11-03 21:28:34
Message-ID: 13830.1320355714@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> writes:
> On Thursday, November 03, 2011 1:03:12 pm hubert depesz lubaczewski wrote:
>> as you can see counts of rows in created table are more or less
>> sensible, but whatever method I used - create table as, insert into,
>> using sychronized_scans (initially) or not (later) - copy of the table,
>> as long as it's in database, has 40 those "-1" rows.

> At least it is consistent:)

Yeah, it wasn't clear before, but it looks like there are specific
rows that there's something wrong with.

> Characteristics of those forty rows.
> 1) creation_tsz clustered?
> 2) magic_id in a range?
> 3) Non -1 xobject_id in a range?
> 4) Any other field show a similarity?

I would like to know the ctid's of the -1 rows in the copied table,
along with the ctid's of the rows they share magic_ids with, and
the ctid's of the rows with those same magic_ids in the original.
I'm wondering whether the affected rows are physically clustered ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2011-11-03 21:31:33 Re: Strange problem with create table as select * from table;
Previous Message Cin123 2011-11-03 21:01:47 Linker error VS2008 c++

Browse pgsql-hackers by date

  From Date Subject
Next Message hubert depesz lubaczewski 2011-11-03 21:31:33 Re: Strange problem with create table as select * from table;
Previous Message Rodrigo Hjort 2011-11-03 21:11:35 Strange behavior on to_tsquery()