Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: odd output ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 15 of 24 Topic 9349 of 10966
Post > Topic >>

Re: odd output in restore mode

by simon@[EMAIL PROTECTED] (Simon Riggs) May 13, 2008 at 06:44 AM

On Mon, 2008-05-12 at 23:03 -0400, Andrew Dunstan wrote:
> Tom Lane wrote:
> > Andrew Dunstan <andrew@[EMAIL PROTECTED]
> writes:
> >> Simon Riggs wrote:
> >>     
> >>> Well, the patch was rejected long ago, not sure why its in this
> >>> commitfest. But its an open issue on the Windows ****t.
> >>>       
> >   
> >> Surely the right fix is to use the recently implemented 
> >> pgwin32_safestat() (if we aren't already - I suspect we probably are)

> >> and remove the kluge in pg_standby.c.
> >>     
> >
> > I think the open issue is how to know whether pgwin32_safestat fixes
the
> > problem that the kluge tried to work around.
> >
> Well, I think we need to consider quite a number of scenarios. The 
> archive directory could be local, on a remote Windows machine, or on a 
> remote Samba server. The archive file could be copied by Windows copy, 
> or Unix cp, or scp, or rsync, among others.
> 
> I'd like to know the setup that was found to produce the error, to start

> with.

It's a race condition, not a deterministic bug with recreatable
conditions. My understanding is the current code was introduced to work
around the implementation of stat on Windows which says the filesize is
correct even while it is still copying it. The 1sec delay fixed that but
is clearly not a foolproof fix and introduces a delay also, which was
the original complaint.

-- 
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 24 Posts in Topic:
odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-12 16:57:01 
Re: odd output in restore mode
simon@[EMAIL PROTECTED]   2008-05-12 23:14:00 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-12 18:58:37 
Re: odd output in restore mode
dpage@[EMAIL PROTECTED]   2008-05-18 22:16:17 
Re: odd output in restore mode
bruce@[EMAIL PROTECTED]   2008-06-30 18:13:12 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-06-30 19:29:03 
Re: odd output in restore mode
simon@[EMAIL PROTECTED]   2008-05-13 00:37:53 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-12 21:15:55 
Re: odd output in restore mode
tgl@[EMAIL PROTECTED] (T  2008-05-12 21:38:58 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-12 23:03:25 
Re: odd output in restore mode
dpage@[EMAIL PROTECTED]   2008-05-13 17:15:12 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-18 08:38:12 
Re: odd output in restore mode
xzilla@[EMAIL PROTECTED]   2008-05-12 21:06:26 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-12 22:40:38 
Re: odd output in restore mode
simon@[EMAIL PROTECTED]   2008-05-13 06:44:35 
Re: odd output in restore mode
simon@[EMAIL PROTECTED]   2008-05-13 06:37:24 
Re: odd output in restore mode
dpage@[EMAIL PROTECTED]   2008-05-13 08:42:26 
Re: odd output in restore mode
simon@[EMAIL PROTECTED]   2008-05-13 09:32:55 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-13 08:00:29 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-13 08:26:35 
Re: odd output in restore mode
alvherre@[EMAIL PROTECTED  2008-05-13 11:08:52 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-13 12:05:58 
Re: odd output in restore mode
alvherre@[EMAIL PROTECTED  2008-05-13 12:11:30 
Re: odd output in restore mode
bruce@[EMAIL PROTECTED]   2008-06-30 18:11:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 12:29:55 CST 2008.