pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6389: Fsync failed while creating DB
3+ messages / 3 participants
[nested] [flat]

* BUG #6389: Fsync failed while creating DB
@ 2012-01-10 06:02 anjali_524@yahoo.co.in
  2012-01-13 15:05 ` Re: BUG #6389: Fsync failed while creating DB Robert Haas <robertmhaas@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: anjali_524@yahoo.co.in @ 2012-01-10 06:02 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      6389
Logged by:          Anjali Arora
Email address:      anjali_524@yahoo.co.in
PostgreSQL version: 9.0.4
Operating system:   CentOS
Description:        

It is reference to bug#6372..

Hi Tom,

 

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.

 

Regards,

Anjali





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #6389: Fsync failed while creating DB
  2012-01-10 06:02 BUG #6389: Fsync failed while creating DB anjali_524@yahoo.co.in
@ 2012-01-13 15:05 ` Robert Haas <robertmhaas@gmail.com>
  2012-01-13 16:00   ` Re: BUG #6389: Fsync failed while creating DB Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Robert Haas @ 2012-01-13 15:05 UTC (permalink / raw)
  To: anjali_524@yahoo.co.in; +Cc: pgsql-bugs

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.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #6389: Fsync failed while creating DB
  2012-01-10 06:02 BUG #6389: Fsync failed while creating DB anjali_524@yahoo.co.in
  2012-01-13 15:05 ` Re: BUG #6389: Fsync failed while creating DB Robert Haas <robertmhaas@gmail.com>
@ 2012-01-13 16:00   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2012-01-13 16:00 UTC (permalink / raw)
  To: Robert Haas <robertmhaas@gmail.com>; +Cc: anjali_524@yahoo.co.in; pgsql-bugs

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2012-01-13 16:00 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-01-10 06:02 BUG #6389: Fsync failed while creating DB anjali_524@yahoo.co.in
2012-01-13 15:05 ` Robert Haas <robertmhaas@gmail.com>
2012-01-13 16:00   ` Tom Lane <tgl@sss.pgh.pa.us>

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