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
2af8b963
Commit
2af8b963
authored
Oct 08, 2000
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add runtime configuration option "silent_mode".
This is equivalent to postmaster's -S option.
parent
be582825
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
8 deletions
+24
-8
doc/src/sgml/runtime.sgml
doc/src/sgml/runtime.sgml
+16
-1
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+4
-5
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+2
-1
src/include/miscadmin.h
src/include/miscadmin.h
+2
-1
No files found.
doc/src/sgml/runtime.sgml
View file @
2af8b963
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.2
6 2000/09/30 16:58:20 petere
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.2
7 2000/10/08 09:25:35 ishii
Exp $
-->
<Chapter Id="runtime">
...
...
@@ -962,6 +962,21 @@ env PGOPTIONS='--geqo=off' psql
</listitem>
</varlistentry>
<varlistentry>
<term>SILENT_MODE (<type>bool</type>)</term>
<listitem>
<para>
Runs postmaster silently. If this option is set, postmaser
will automatically run in background and any controlling ttys
are disassociated, thus no message is put to stdout or
stderr(same effect as postmaster's -S option). Unless some
logging systems such as syslog is enabled, using this option
is discouraged since it makes difficult to find error
messages.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>SORT_MEM (<type>integer</type>)</term>
<listitem>
...
...
src/backend/postmaster/postmaster.c
View file @
2af8b963
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.16
8 2000/10/03 03:11:16 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.16
9 2000/10/08 09:25:36 ishii
Exp $
*
* NOTES
*
...
...
@@ -194,7 +194,7 @@ static int SendStop = false;
bool
NetServer
=
false
;
/* listen on TCP/IP */
bool
EnableSSL
=
false
;
bool
SilentMode
=
false
;
/* silent mode (-S) */
static
pid_t
StartupPID
=
0
,
ShutdownPID
=
0
;
...
...
@@ -302,7 +302,6 @@ PostmasterMain(int argc, char *argv[])
{
int
opt
;
int
status
;
int
silentflag
=
0
;
char
original_extraoptions
[
MAXPGPATH
];
IsUnderPostmaster
=
true
;
/* so that backends know this */
...
...
@@ -501,7 +500,7 @@ PostmasterMain(int argc, char *argv[])
* it's most badly needed on SysV-derived systems like
* SVR4 and HP-UX.
*/
silentflag
=
1
;
SilentMode
=
true
;
break
;
case
's'
:
...
...
@@ -601,7 +600,7 @@ PostmasterMain(int argc, char *argv[])
BackendList
=
DLNewList
();
PortList
=
DLNewList
();
if
(
silentflag
)
if
(
SilentMode
)
pmdaemonize
(
argc
,
argv
);
else
{
...
...
src/backend/utils/misc/guc.c
View file @
2af8b963
...
...
@@ -4,7 +4,7 @@
* Support for grand unified configuration scheme, including SET
* command, configuration file, and command line options.
*
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.1
1 2000/09/06 19:54:47 petere
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.1
2 2000/10/08 09:25:37 ishii
Exp $
*
* Copyright 2000 by PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>.
...
...
@@ -162,6 +162,7 @@ ConfigureNamesBool[] =
{
"tcpip_socket"
,
PGC_POSTMASTER
,
&
NetServer
,
false
},
{
"ssl"
,
PGC_POSTMASTER
,
&
EnableSSL
,
false
},
{
"fsync"
,
PGC_USERSET
,
&
enableFsync
,
true
},
{
"silent_mode"
,
PGC_POSTMASTER
,
&
SilentMode
,
false
},
{
"log_connections"
,
PGC_SIGHUP
,
&
Log_connections
,
false
},
{
"log_timestamp"
,
PGC_SIGHUP
,
&
Log_timestamp
,
false
},
...
...
src/include/miscadmin.h
View file @
2af8b963
...
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: miscadmin.h,v 1.6
7 2000/09/19 18:17:58 petere
Exp $
* $Id: miscadmin.h,v 1.6
8 2000/10/08 09:25:38 ishii
Exp $
*
* NOTES
* some of the information in this file will be moved to
...
...
@@ -108,6 +108,7 @@ extern int SortMem;
extern
bool
NetServer
;
extern
bool
EnableSSL
;
extern
bool
SilentMode
;
extern
int
MaxBackends
;
extern
int
NBuffers
;
extern
int
PostPortName
;
...
...
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