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
ac0d141e
Commit
ac0d141e
authored
Jan 09, 2000
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not start if postmaster is running.
parent
10283ee6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+15
-2
No files found.
src/backend/tcop/postgres.c
View file @
ac0d141e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.13
8 1999/12/22 00:07:15 inoue
Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.13
9 2000/01/09 12:17:33 ishii
Exp $
*
*
* NOTES
* NOTES
* this is the "main" module of the postgres backend and
* this is the "main" module of the postgres backend and
...
@@ -1356,6 +1356,19 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
...
@@ -1356,6 +1356,19 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
argv
[
0
]);
argv
[
0
]);
proc_exit
(
1
);
proc_exit
(
1
);
}
}
/*
* Try to create pid file.
*/
SetPidFname
(
DataDir
);
if
(
SetPidFile
(
-
getpid
()))
{
proc_exit
(
0
);
}
/*
* Register clean up proc.
*/
on_proc_exit
(
UnlinkPidFile
,
NULL
);
BaseInit
();
BaseInit
();
snprintf
(
XLogDir
,
MAXPGPATH
,
"%s%cpg_xlog"
,
snprintf
(
XLogDir
,
MAXPGPATH
,
"%s%cpg_xlog"
,
DataDir
,
SEP_CHAR
);
DataDir
,
SEP_CHAR
);
...
@@ -1499,7 +1512,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
...
@@ -1499,7 +1512,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[])
if
(
!
IsUnderPostmaster
)
if
(
!
IsUnderPostmaster
)
{
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.13
8 $ $Date: 1999/12/22 00:07:15
$
\n
"
);
puts
(
"$Revision: 1.13
9 $ $Date: 2000/01/09 12:17:33
$
\n
"
);
}
}
/*
/*
...
...
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