Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 479592EE4E4 for ; Fri, 13 Jan 2012 12:01:06 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RljYs-0003tl-5G for pgsql-bugs@postgresql.org; Fri, 13 Jan 2012 16:01:06 +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 q0DG0mOw020603; Fri, 13 Jan 2012 11:00:48 -0500 (EST) To: Robert Haas cc: anjali_524@yahoo.co.in, pgsql-bugs@postgresql.org Subject: Re: BUG #6389: Fsync failed while creating DB In-reply-to: References: Comments: In-reply-to Robert Haas message dated "Fri, 13 Jan 2012 10:05:07 -0500" Date: Fri, 13 Jan 2012 11:00:48 -0500 Message-ID: <20602.1326470448@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/111 X-Sequence-Number: 32178 Robert Haas writes: > On Tue, Jan 10, 2012 at 1:02 AM, wrote: >> Thanks for the solution. CIFS worked with fsync flag by ingnoring EINVAL in >> copydir.c. >> >> I tested fsync with 8.2.2 version of PostgreSQL, it worked fine without >> EINVAL patch. I wanted to know is something changed in version 9.0.4 of >> postgreSQL. >> >> As fsync flag was not working with PostgreSQL version 9.0.4 without applying >> the patch. > Sure, lots of stuff has changed since REL8_2_2 - that release is > almost 5 years old. I'm not sure it's really important to drill down > and find out exactly which change introduced this problem, but you > could start by trying 8.2.23, 8.3.x, 8.4.x, etc. if you want to try to > figure it out. The reason 8.2 appears to "work" here is that it doesn't try to fsync the output at all during CREATE DATABASE. It is not a bug that we added fsync logic. The only thing that's in question is whether we should allow certain errno values to pass without comment. regards, tom lane