Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMgo9-00022L-BJ for pgsql-bugs@postgresql.org; Fri, 12 Oct 2012 15:05:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TMgo5-00061D-Iz for pgsql-bugs@postgresql.org; Fri, 12 Oct 2012 15:05:48 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q9CF5htS023057; Fri, 12 Oct 2012 11:05:43 -0400 (EDT) From: Tom Lane To: hankiewicz@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7600: Database crash with data corruption In-reply-to: References: Comments: In-reply-to hankiewicz@gmail.com message dated "Fri, 12 Oct 2012 13:35:27 -0000" Date: Fri, 12 Oct 2012 11:05:43 -0400 Message-ID: <23056.1350054343@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) X-Archive-Number: 201210/111 X-Sequence-Number: 34411 hankiewicz@gmail.com writes: > The list of steps to reproduce bug: > 1) Create two database on single server instance (production and sandbox) > 2) On production perform normal operations (we use Trac with over 50 active > users) > 3) on the sandbox database start explain plan of query > 4) while explain plan is executing drop sandbox database > 5) after recovery was completed we have discovered that sequences on > production database had wrong values It's normal for sequences to be advanced by a few counts (up to 32) after a database crash. You seem to have done a "kill -9" on the backend that was running the EXPLAIN, which would count as a crash. So I don't see any bug here. regards, tom lane