Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f297a2

Browse files
committed
The attached patch fixes a problem with InstallXLogFileSegment()'s use
of link() under Cygwin:http://archives.postgresql.org/pgsql-cygwin/2002-04/msg00072.phpNote that it appears that BeOS and Netware also have the above orsimilar problem.I have only verified that PostgreSQL builds under Cygwin with thispatch.Since I cannot reproduce the problem, I cannot verify that the proposedpatch solves it. Nevertheless, both Barry Pederson and David P.Caldwellattest that this patch solves the problem. See the following fordetails:http://archives.postgresql.org/pgsql-cygwin/2002-05/msg00043.phphttp://archives.postgresql.org/pgsql-cygwin/2002-05/msg00040.phpJason Tishler
1 parent31d9184 commit2f297a2

File tree

1 file changed

+2
-2
lines changed
  • src/backend/access/transam

1 file changed

+2
-2
lines changed

‎src/backend/access/transam/xlog.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.95 2002/05/17 01:19:16 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.96 2002/06/07 21:47:45 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1503,7 +1503,7 @@ InstallXLogFileSegment(uint32 log, uint32 seg, char *tmppath,
15031503
* overwrite an existing logfile. However, there shouldn't be one, so
15041504
* rename() is an acceptable substitute except for the truly paranoid.
15051505
*/
1506-
#if !defined(__BEOS__)&& !defined(N_PLAT_NLM)
1506+
#if !defined(__BEOS__)&& !defined(N_PLAT_NLM)&& !defined(__CYGWIN__)
15071507
if (link(tmppath,path)<0)
15081508
elog(PANIC,"link from %s to %s (initialization of log file %u, segment %u) failed: %m",
15091509
tmppath,path,log,seg);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp