Skip site navigation (1) Skip section navigation (2)

cygwin rename instead of link (7.2.2)

From: "Henshall, Stuart - WCP" <SHenshall(at)westcountrypublications(dot)co(dot)uk>
To: "'pgsql-patches(at)postgresql(dot)org'" <pgsql-patches(at)postgresql(dot)org>
Subject: cygwin rename instead of link (7.2.2)
Date: 2002-08-27 11:58:37
Message-ID: E2870D8CE1CCD311BAF50008C71EDE8E01F74984@MAIL_EXCHANGE (view raw or flat)
Thread:
Lists: pgsql-patches
In the recently released 7.2.2 there is still the problem that this patch
solved:
http://archives.postgresql.org/pgsql-cygwin/2002-05/msg00053.php
Here is a patch against 7.2.2 to resolve it:
*** src/backend/access/transam/xlog.c.orig	Fri Mar 15 19:20:42 2002
--- src/backend/access/transam/xlog.c	Mon Jun 09 13:05:26 2002
***************
** 1506,1512 ****
  	 * overwrite an existing logfile.  However, there shouldn't be one,
so
  	 * rename() is an acceptable substitute except for the truly
paranoid.
  	 */
! #ifndef __BEOS__
  	if (link(tmppath, path) < 0)
  		elog(STOP, "link from %s to %s (initialization of log file
%u, segment %u) failed: %m",
  			 tmppath, path, log, seg);
--- 1506,1512 ----
  	 * overwrite an existing logfile.  However, there shouldn't be one,
so
  	 * rename() is an acceptable substitute except for the truly
paranoid.
  	 */
! #if !defined(__BEOS__) && !defined(__CYGWIN__)
  	if (link(tmppath, path) < 0)
  		elog(STOP, "link from %s to %s (initialization of log file
%u, segment %u) failed: %m",
  			 tmppath, path, log, seg);

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2002-08-27 13:30:47
Subject: Re: minor auth code cleanup
Previous:From: Neil ConwayDate: 2002-08-27 06:42:03
Subject: minor auth code cleanup

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group