pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: anjali_524@yahoo.co.in
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6389: Fsync failed while creating DB
Date: Fri, 13 Jan 2012 11:00:48 -0500
Message-ID: <20602.1326470448@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoY+yt+P8OpjJ-LURk-R=NCtEdEbX5kFJOHCjU+mv-0xMQ@mail.gmail.com>
References: <E1RkUmw-0002zL-Gd@wrigleys.postgresql.org>
	<CA+TgmoY+yt+P8OpjJ-LURk-R=NCtEdEbX5kFJOHCjU+mv-0xMQ@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Tue, Jan 10, 2012 at 1:02 AM,  <anjali_524@yahoo.co.in> 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



view thread (3+ messages)

Message-ID: <20602.1326470448@sss.pgh.pa.us>
Permalink:  ../20602.1326470448@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20602.1326470448@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, anjali_524@yahoo.co.in
  Subject: Re: BUG #6389: Fsync failed while creating DB
  In-Reply-To: <20602.1326470448@sss.pgh.pa.us>
  References: <E1RkUmw-0002zL-Gd@wrigleys.postgresql.org> <CA+TgmoY+yt+P8OpjJ-LURk-R=NCtEdEbX5kFJOHCjU+mv-0xMQ@mail.gmail.com> <20602.1326470448@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox