Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
4c29e215
Commit
4c29e215
authored
Feb 02, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjustments for Win32-specific rename code, and add include file.
parent
98a52841
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
src/backend/commands/user.c
src/backend/commands/user.c
+3
-3
src/backend/postmaster/pgstat.c
src/backend/postmaster/pgstat.c
+2
-1
No files found.
src/backend/commands/user.c
View file @
4c29e215
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.13
4 2004/02/02 00:17:21
momjian Exp $
* $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.13
5 2004/02/02 16:37:46
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -140,7 +140,7 @@ write_group_file(Relation grel)
...
@@ -140,7 +140,7 @@ write_group_file(Relation grel)
tempname
=
(
char
*
)
palloc
(
bufsize
);
tempname
=
(
char
*
)
palloc
(
bufsize
);
snprintf
(
tempname
,
bufsize
,
"%s.%d"
,
filename
,
MyProcPid
);
snprintf
(
tempname
,
bufsize
,
"%s.%d"
,
filename
,
MyProcPid
);
#if defined(WIN32) || defined(CYGWIN)
#if defined(WIN32) || defined(CYGWIN)
filename
=
repalloc
(
filename
,
strlen
(
filename
)
+
1
+
strlen
(
".new"
);
filename
=
repalloc
(
filename
,
strlen
(
filename
)
+
1
+
strlen
(
".new"
)
)
;
strcat
(
filename
,
".new"
);
strcat
(
filename
,
".new"
);
#endif
#endif
...
@@ -291,7 +291,7 @@ write_user_file(Relation urel)
...
@@ -291,7 +291,7 @@ write_user_file(Relation urel)
tempname
=
(
char
*
)
palloc
(
bufsize
);
tempname
=
(
char
*
)
palloc
(
bufsize
);
snprintf
(
tempname
,
bufsize
,
"%s.%d"
,
filename
,
MyProcPid
);
snprintf
(
tempname
,
bufsize
,
"%s.%d"
,
filename
,
MyProcPid
);
#if defined(WIN32) || defined(CYGWIN)
#if defined(WIN32) || defined(CYGWIN)
filename
=
repalloc
(
filename
,
strlen
(
filename
)
+
1
+
strlen
(
".new"
);
filename
=
repalloc
(
filename
,
strlen
(
filename
)
+
1
+
strlen
(
".new"
)
)
;
strcat
(
filename
,
".new"
);
strcat
(
filename
,
".new"
);
#endif
#endif
...
...
src/backend/postmaster/pgstat.c
View file @
4c29e215
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
*
*
* Copyright (c) 2001-2003, PostgreSQL Global Development Group
* Copyright (c) 2001-2003, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.5
7 2004/01/28 21:02:40 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.5
8 2004/02/02 16:37:46 momjian
Exp $
* ----------
* ----------
*/
*/
#include "postgres.h"
#include "postgres.h"
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
#include "storage/backendid.h"
#include "storage/backendid.h"
#include "storage/ipc.h"
#include "storage/ipc.h"
#include "storage/pg_shmem.h"
#include "storage/pg_shmem.h"
#include "tcop/tcopprot.h"
#include "utils/rel.h"
#include "utils/rel.h"
#include "utils/hsearch.h"
#include "utils/hsearch.h"
#include "utils/ps_status.h"
#include "utils/ps_status.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment