Re: [GENERAL] Strange problem with create table as select * from table; - Mailing list pgsql-hackers

From Adrian Klaver
Subject Re: [GENERAL] Strange problem with create table as select * from table;
Date
Msg-id 201111041925.07038.adrian.klaver@gmail.com
Whole thread Raw
List pgsql-hackers
On Friday, November 04, 2011 6:04:02 pm Tom Lane wrote:
> I wrote:
> > A different line of thought is that there's something about these
> > specific source rows, and only these rows, that makes them vulnerable to
> > corruption during INSERT/SELECT.  Do they by any chance contain any
> > values that are unusual elsewhere in your table?  One thing I'm
> > wondering about right now is the nulls bitmap --- so do these rows have
> > nulls (or not-nulls) in any place that's unusual elsewhere?
>
> Hah ... I have a theory.
>

>
> This is trivial to fix, now that we know there's a problem --- the
> function is only using that assumption to save itself a couple lines
> of code.  Penny wise, pound foolish :-(

I killed a few brain cells just reading the explanation:)

>
>             regards, tom lane
>
>


--
Adrian Klaver
adrian.klaver@gmail.com

pgsql-hackers by date:

Previous
From: Greg Smith
Date:
Subject: Re: IDLE in transaction introspection
Next
From: Noah Misch
Date:
Subject: Re: psql expanded auto