Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 681511EC5BE8 for ; Thu, 2 Feb 2012 17:44:27 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rt4SA-0001h7-QG for pgsql-bugs@postgresql.org; Thu, 02 Feb 2012 21:44:27 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q12LiAI2004910; Thu, 2 Feb 2012 16:44:10 -0500 (EST) To: Duncan Rance cc: pgsql-bugs@postgresql.org, Robert Haas Subject: Re: BUG #6425: Bus error in slot_deform_tuple In-reply-to: <24D75B69-D387-4476-AC0D-5271FA56AB20@dunquino.com> References: <15205.1328112255@sss.pgh.pa.us> <846B8F25-A7C1-4513-A284-D496C1DFC590@dunquino.com> <24434.1328132614@sss.pgh.pa.us> <24D75B69-D387-4476-AC0D-5271FA56AB20@dunquino.com> Comments: In-reply-to Duncan Rance message dated "Thu, 02 Feb 2012 18:02:03 +0000" Date: Thu, 02 Feb 2012 16:44:10 -0500 Message-ID: <4909.1328219050@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/42 X-Sequence-Number: 32385 Duncan Rance writes: > At last I have been able to reproduce this problem in a relatively simple (yet contrived) way. > I've put together a tarball with a few scripts, some to be run on the primary and others to be run on the hot-stanby. There's a README in there explaining what to do. So far no luck reproducing any issue with this test case. I am running two copies of import_loop.sh against the master, per your instructions, and see occasional deadlock errors there as expected. No errors at all on the standby though. One question probably worth asking is what non-default GUC settings are you using on the master and standby? (BTW, for anyone else trying this: with multiple copies of import_loop.sh you will get a lot of "duplicate key" failures with the test as written. I had better luck after changing import.sh from ts=$(perl -e 'print time') to ts=$$ ie use PID not timestamp as the pseudo-unique key. This could be made more bulletproof yet, but it didn't seem worth more trouble.) regards, tom lane