mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Prevent unlink/rename Win32 mapping on frontends.
This commit is contained in:
parent
97e2446bf0
commit
a2190c9eb6
@ -12,7 +12,7 @@
|
|||||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: c.h,v 1.140 2003/04/25 01:24:00 momjian Exp $
|
* $Id: c.h,v 1.141 2003/04/25 16:18:40 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -714,7 +714,7 @@ off_t ftello(FILE *stream);
|
|||||||
/*
|
/*
|
||||||
* Win32 doesn't have reliable rename/unlink during concurrent access
|
* Win32 doesn't have reliable rename/unlink during concurrent access
|
||||||
*/
|
*/
|
||||||
#ifdef WIN32
|
#if defined(WIN32) && !defined(FRONTEND)
|
||||||
int pgrename(const char *from, const char *to);
|
int pgrename(const char *from, const char *to);
|
||||||
int pgunlink(const char *path);
|
int pgunlink(const char *path);
|
||||||
#define rename(path) pgrename(path)
|
#define rename(path) pgrename(path)
|
||||||
|
Loading…
Reference in New Issue
Block a user