On 2013-01-15 14:40:11 -0500, Tom Lane wrote:
> Sergey Koposov <kopo...@ast.cam.ac.uk> writes:
> > And I do see the tblspc file left after the finish of "make check":
> >     tmp_check/data/pg_tblspc/16385/PG_9.3_201212081/16384/16387
> 
> Interesting.  If the tests are run immediately after initdb, 16387
> is the relfilenode assigned to table "foo" in the tablespace regression
> test.  But why would only that table be left behind?  There are half
> a dozen relations in that tablespace at the point of the DROP CASCADE.
> 
> BTW, I just finished trying to reproduce this on an IA64 machine
> belonging to Red Hat, without success.  So that seems to eliminate
> any possibility of the machine architecture being the trigger issue.
> The compiler's still a likely cause though.
> 
> Anybody have a similar ICC version (dugong's says it is 10.0 20070809)
> to try?  Also, Sergey, can you find a non-dot-zero release to try?

I played a bit arround (thanks Sergey!) and it seems to be some rather
strange optimization issue around the fsync request queue.

Namely changing 

        /* OK, insert request */
        request = 
&CheckpointerShmem->requests[CheckpointerShmem->num_requests++];
        request->rnode = rnode;
        request->forknum = forknum;
        request->segno = segno;
into
        /* OK, insert request */
        request = 
&CheckpointerShmem->requests[CheckpointerShmem->num_requests++];
        request->rnode.spcNode = rnode.spcNode;
        request->rnode.dbNode = rnode.dbNode;
        request->rnode.relNode = rnode.relNode;
        request->forknum = forknum;
        request->segno = segno;
makes it pass reliably.

Displaying the values of request after the assignment, but without the
change shows bogus values showing up which explains the problems.

How the hell thats correlating with the elog changes I don't yet know.

Greetings,

Andres Freund

-- 
 Andres Freund                     http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to