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
5c267325
Commit
5c267325
authored
Oct 14, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'int' cast for getpid() because some Solaris releases return long
for getpid().
parent
130972b4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+4
-4
src/backend/postmaster/pgstat.c
src/backend/postmaster/pgstat.c
+2
-2
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+2
-2
src/bin/psql/command.c
src/bin/psql/command.c
+2
-2
src/interfaces/ecpg/ecpglib/misc.c
src/interfaces/ecpg/ecpglib/misc.c
+2
-2
No files found.
src/backend/access/transam/xlog.c
View file @
5c267325
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.17
3 2004/10/12 21:54:35 petere
Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.17
4 2004/10/14 20:23:43 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1513,7 +1513,7 @@ XLogFileInit(uint32 log, uint32 seg,
* up pre-creating an extra log segment. That seems OK, and better
* than holding the lock throughout this lengthy process.
*/
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
getpid
());
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
(
int
)
getpid
());
unlink
(
tmppath
);
...
...
@@ -1633,7 +1633,7 @@ XLogFileCopy(uint32 log, uint32 seg,
/*
* Copy into a temp file name.
*/
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
getpid
());
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
(
int
)
getpid
());
unlink
(
tmppath
);
...
...
@@ -2898,7 +2898,7 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI,
/*
* Write into a temp file name.
*/
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
getpid
());
snprintf
(
tmppath
,
MAXPGPATH
,
"%s/xlogtemp.%d"
,
XLogDir
,
(
int
)
getpid
());
unlink
(
tmppath
);
...
...
src/backend/postmaster/pgstat.c
View file @
5c267325
...
...
@@ -13,7 +13,7 @@
*
* Copyright (c) 2001-2004, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.8
0 2004/08/29 05:06:46
momjian Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.8
1 2004/10/14 20:23:44
momjian Exp $
* ----------
*/
#include "postgres.h"
...
...
@@ -1505,7 +1505,7 @@ PgstatCollectorMain(int argc, char *argv[])
snprintf
(
pgStat_fname
,
MAXPGPATH
,
PGSTAT_STAT_FILENAME
,
DataDir
);
/* tmpfname need only be set correctly in this process */
snprintf
(
pgStat_tmpfname
,
MAXPGPATH
,
PGSTAT_STAT_TMPFILE
,
DataDir
,
getpid
());
DataDir
,
(
int
)
getpid
());
/*
* Arrange to write the initial status file right away
...
...
src/backend/postmaster/postmaster.c
View file @
5c267325
...
...
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.43
2 2004/10/12 21:54:40 petere
Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.43
3 2004/10/14 20:23:45 momjian
Exp $
*
* NOTES
*
...
...
@@ -2760,7 +2760,7 @@ BackendRun(Port *port)
*/
ereport
(
DEBUG3
,
(
errmsg_internal
(
"%s child[%d]: starting with ("
,
progname
,
getpid
())));
progname
,
(
int
)
getpid
())));
for
(
i
=
0
;
i
<
ac
;
++
i
)
ereport
(
DEBUG3
,
(
errmsg_internal
(
"
\t
%s"
,
av
[
i
])));
...
...
src/bin/psql/command.c
View file @
5c267325
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.12
7 2004/10/09 02:46:41
momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.12
8 2004/10/14 20:23:46
momjian Exp $
*/
#include "postgres_fe.h"
#include "command.h"
...
...
@@ -1133,7 +1133,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf)
const
char
*
tmpdirenv
=
getenv
(
"TMPDIR"
);
snprintf
(
fnametmp
,
sizeof
(
fnametmp
),
"%s/psql.edit.%d.%d"
,
tmpdirenv
?
tmpdirenv
:
"/tmp"
,
geteuid
(),
getpid
());
tmpdirenv
?
tmpdirenv
:
"/tmp"
,
geteuid
(),
(
int
)
getpid
());
#else
GetTempFileName
(
"."
,
"psql"
,
0
,
fnametmp
);
#endif
...
...
src/interfaces/ecpg/ecpglib/misc.c
View file @
5c267325
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.2
3 2004/10/09 02:46:42
momjian Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.2
4 2004/10/14 20:23:46
momjian Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
...
...
@@ -253,7 +253,7 @@ ECPGlog(const char *format,...)
return
;
}
sprintf
(
f
,
"[%d]: %s"
,
getpid
(),
format
);
sprintf
(
f
,
"[%d]: %s"
,
(
int
)
getpid
(),
format
);
va_start
(
ap
,
format
);
vfprintf
(
debugstream
,
f
,
ap
);
...
...
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