Re: Win32 link() function - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Win32 link() function
Date
Msg-id 27945.1243828967@sss.pgh.pa.us
Whole thread Raw
In response to Re: Win32 link() function  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Win32 link() function  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Tom Lane wrote:
>> (Come to think of it, --link can fail on Unix too, if the user tries to
>> put the new database on a different filesystem.  Have you got guards in
>> there to make sure this is discovered before the point of no return?)

> Of course:
> ...
> though you have to delete the new cluster directory and remove the _old
> suffixes to get your old cluster back.

That wasn't what I had in mind by "before the point of no return".
You should be making some effort to detect obvious failure cases
*before* the user has to do a lot of error-prone manual cleanup.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Win32 link() function
Next
From: Bruce Momjian
Date:
Subject: Re: Win32 link() function