Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YstxZ-0000Xw-Ja for pgsql-bugs@arkaria.postgresql.org; Thu, 14 May 2015 14:18:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YstxZ-0005X6-1S for pgsql-bugs@arkaria.postgresql.org; Thu, 14 May 2015 14:18:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YsqoA-0005Ox-Vt for pgsql-bugs@postgresql.org; Thu, 14 May 2015 10:56:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Ysqo7-0004Bd-Mb for pgsql-bugs@postgresql.org; Thu, 14 May 2015 10:56:05 +0000 MIME-Version: 1.0 Subject: BUG #13287: Database corruption - PANIC: could not fsync file "pg_replslot/[Slot]/state": Bad file descriptor To: pgsql-bugs@postgresql.org From: Hillel.Eilat@attunity.com Date: Thu, 14 May 2015 10:55:14 +0000 Message-ID: <20150514105514.2691.67352@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13287 Logged by: Hillel Eilat Email address: Hillel.Eilat@attunity.com PostgreSQL version: 9.4.1 Operating system: Windows 7 Description: Hello I am in a process of developing an REPLICATION application using PostgreSQL 9.4.1 on a "Windows 7" platform. "Logical Decoding" feature is used for extracting database changes in real-time. A dedicated replication slot - say [Replication Slot Name] - is used for controlling this flow. Everything works fine until PostgreSQL service is stopped. While an active replication slot exists and PostgreSQL service is neatly stopped, further attempt to restart it is responded by: PostgreSQL - PANIC: could not fsync file "pg_replslot/[Replication Slot Name]/state": Bad file descriptor Actually - the database in question is now corrupted / not operational anymore. Tonight this occurred also after a spontaneous machine shutdown. This misbehavior now occurs very systematically upon stopping PostgreSQL service while active replication slots are defined there. Your help will be appreciated. Hillel. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs