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
8e2998d8
Commit
8e2998d8
authored
Feb 19, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some unnecessary pqsignal() calls to shave a few cycles off
backend startup.
parent
6e546c28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+6
-9
No files found.
src/backend/tcop/postgres.c
View file @
8e2998d8
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.24
5 2002/01/10 01:11:45
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.24
6 2002/02/19 19:54:43
tgl Exp $
*
*
* NOTES
* NOTES
* this is the "main" module of the postgres backend and
* this is the "main" module of the postgres backend and
...
@@ -1478,9 +1478,10 @@ PostgresMain(int argc, char *argv[], const char *username)
...
@@ -1478,9 +1478,10 @@ PostgresMain(int argc, char *argv[], const char *username)
*
*
* Also note: it's best not to use any signals that are SIG_IGNored in
* Also note: it's best not to use any signals that are SIG_IGNored in
* the postmaster. If such a signal arrives before we are able to
* the postmaster. If such a signal arrives before we are able to
* change the handler to non-SIG_IGN, it'll get dropped. If
* change the handler to non-SIG_IGN, it'll get dropped. Instead,
* necessary, make a dummy handler in the postmaster to reserve the
* make a dummy handler in the postmaster to reserve the signal.
* signal.
* (Of course, this isn't an issue for signals that are locally generated,
* such as SIGALRM and SIGPIPE.)
*/
*/
pqsignal
(
SIGHUP
,
SigHupHandler
);
/* set flag to read config file */
pqsignal
(
SIGHUP
,
SigHupHandler
);
/* set flag to read config file */
...
@@ -1508,10 +1509,6 @@ PostgresMain(int argc, char *argv[], const char *username)
...
@@ -1508,10 +1509,6 @@ PostgresMain(int argc, char *argv[], const char *username)
*/
*/
pqsignal
(
SIGCHLD
,
SIG_DFL
);
/* system() requires this on some
pqsignal
(
SIGCHLD
,
SIG_DFL
);
/* system() requires this on some
* platforms */
* platforms */
pqsignal
(
SIGTTIN
,
SIG_DFL
);
pqsignal
(
SIGTTOU
,
SIG_DFL
);
pqsignal
(
SIGCONT
,
SIG_DFL
);
pqsignal
(
SIGWINCH
,
SIG_DFL
);
pqinitmask
();
pqinitmask
();
...
@@ -1626,7 +1623,7 @@ PostgresMain(int argc, char *argv[], const char *username)
...
@@ -1626,7 +1623,7 @@ PostgresMain(int argc, char *argv[], const char *username)
if
(
!
IsUnderPostmaster
)
if
(
!
IsUnderPostmaster
)
{
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.24
5 $ $Date: 2002/01/10 01:11:45
$
\n
"
);
puts
(
"$Revision: 1.24
6 $ $Date: 2002/02/19 19:54:43
$
\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