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
8a9315ca
Commit
8a9315ca
authored
Nov 14, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update and polish postmaster and postgres help output and man pages.
parent
3eaf3363
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
535 additions
and
608 deletions
+535
-608
doc/src/sgml/ref/postgres-ref.sgml
doc/src/sgml/ref/postgres-ref.sgml
+219
-292
doc/src/sgml/ref/postmaster.sgml
doc/src/sgml/ref/postmaster.sgml
+229
-274
doc/src/sgml/runtime.sgml
doc/src/sgml/runtime.sgml
+44
-2
src/backend/postmaster/postmaster.c
src/backend/postmaster/postmaster.c
+13
-13
src/backend/tcop/postgres.c
src/backend/tcop/postgres.c
+30
-27
No files found.
doc/src/sgml/ref/postgres-ref.sgml
View file @
8a9315ca
This diff is collapsed.
Click to expand it.
doc/src/sgml/ref/postmaster.sgml
View file @
8a9315ca
This diff is collapsed.
Click to expand it.
doc/src/sgml/runtime.sgml
View file @
8a9315ca
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.3
4 2000/11/13 21:35:02 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.3
5 2000/11/14 18:11:30 petere
Exp $
-->
<Chapter Id="runtime">
...
...
@@ -930,7 +930,34 @@ env PGOPTIONS='-c geqo=off' psql
</varlistentry>
<varlistentry>
<term>KRB_SERVER_KEYFILE</>
<term>HOSTNAME (<type>string</type>)</term>
<listitem>
<para>
Specifies the TCP/IP hostname or address on which the
<application>postmaster</application> is to listen for
connections from client applications. Defaults to the value
of the <envar>PGHOST</envar> environment variable, or if
<envar>PGHOST</envar> is not set, it defaults to listening on
all configured addresses (including localhost).
</para>
<para>
If you use a hostname do not try to run multiple instances of
<application>postmaster</application> on the same IP address
but different ports. Doing so will result in them attempting
(incorrectly) to use the same shared memory segments. Also,
if you use a hostname, all of the host's IP addresses on which
<application>postmaster</application> instances are listening
must be distinct in the two last octets.
</para>
<para>
If you do not use this option, then each instance must listen
on a different port.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>KRB_SERVER_KEYFILE (<type>string</type>)</term>
<listitem>
<para>
Sets the location of the Kerberos server key file. See
...
...
@@ -1056,6 +1083,21 @@ env PGOPTIONS='-c geqo=off' psql
</listitem>
</varlistentry>
<varlistentry>
<term>UNIXSOCKET (<type>string</type>)</term>
<listitem>
<para>
Specifies the Unix domain socket file name on which the
<application>postmaster</application> is to listen for
connections from client applications. Defaults to the value
of the <envar>PGUNIXSOCKET</envar> environment variable, or if
<envar>PGUNIXSOCKET</envar> is not set, then defaults to a
file in <filename>/tmp</filename> constructed from the port
number.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>UNIX_SOCKET_GROUP (<type>string</type>)</term>
<listitem>
...
...
src/backend/postmaster/postmaster.c
View file @
8a9315ca
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.18
5 2000/11/14 01:15:01 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.18
6 2000/11/14 18:11:31 petere
Exp $
*
* NOTES
*
...
...
@@ -790,30 +790,30 @@ static void
usage
(
const
char
*
progname
)
{
printf
(
"%s is the PostgreSQL server.
\n\n
"
,
progname
);
printf
(
"Usage:
\n
%s [options]
\n\n
"
,
progname
);
printf
(
"Usage:
\n
%s [options
...
]
\n\n
"
,
progname
);
printf
(
"Options:
\n
"
);
#ifdef USE_ASSERT_CHECKING
printf
(
" -A 1|0 enable/disable runtime assert checking
\n
"
);
printf
(
" -A 1|0 enable/disable run
-
time assert checking
\n
"
);
#endif
printf
(
" -B
<buffers> number of shared buffers
\n
"
);
printf
(
" -c
<name>=<value>
set run-time parameter
\n
"
);
printf
(
" -B
NBUFFERS number of shared buffers (default %d)
\n
"
,
DEF_NBUFFERS
);
printf
(
" -c
NAME=VALUE
set run-time parameter
\n
"
);
printf
(
" -d 1-5 debugging level
\n
"
);
printf
(
" -D
<directory>
database directory
\n
"
);
printf
(
" -D
DATADIR
database directory
\n
"
);
printf
(
" -F turn fsync off
\n
"
);
printf
(
" -h
hostname specify hostname or IP address
\n
"
);
printf
(
" -h
HOSTNAME host name or IP address to listen to
\n
"
);
printf
(
" -i enable TCP/IP connections
\n
"
);
printf
(
" -k
path specify Unix-domain socket name
\n
"
);
printf
(
" -k
FILENAME Unix domain socket location
\n
"
);
#ifdef USE_SSL
printf
(
" -l enable SSL connections
\n
"
);
#endif
printf
(
" -N
<number>
maximum number of allowed connections (1..%d, default %d)
\n
"
,
printf
(
" -N
MAX-CONNECT
maximum number of allowed connections (1..%d, default %d)
\n
"
,
MAXBACKENDS
,
DEF_MAXBACKENDS
);
printf
(
" -o
<option> pass 'option
' to each backend server
\n
"
);
printf
(
" -p
<port> port number to listen on
\n
"
);
printf
(
" -S silent mode (
dissociate from tty
)
\n
"
);
printf
(
" -o
OPTIONS pass 'OPTIONS
' to each backend server
\n
"
);
printf
(
" -p
PORT port number to listen on (default %d)
\n
"
,
DEF_PGPORT
);
printf
(
" -S silent mode (
start in background without logging output
)
\n
"
);
printf
(
"
\n
Developer options:
\n
"
);
printf
(
" -n do
n'
t reinitialize shared memory after abnormal exit
\n
"
);
printf
(
" -n do
no
t reinitialize shared memory after abnormal exit
\n
"
);
printf
(
" -s send SIGSTOP to all backend servers if one dies
\n
"
);
printf
(
"
\n
Please read the documentation for the complete list of run-time
\n
"
...
...
src/backend/tcop/postgres.c
View file @
8a9315ca
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.18
7 2000/11/08 17:57:46
petere Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.18
8 2000/11/14 18:11:32
petere Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
...
...
@@ -1001,38 +1001,41 @@ SigHupHandler(SIGNAL_ARGS)
}
static
void
usage
(
char
*
progname
)
{
fprintf
(
stderr
,
"Usage: %s [options] [dbname]
\n
"
,
progname
);
printf
(
"%s is the PostgreSQL stand-alone backend. It is not
\n
intended to be used by normal users.
\n\n
"
,
progname
);
printf
(
"Usage:
\n
%s [options...] [dbname]
\n\n
"
,
progname
);
printf
(
"Options:
\n
"
);
#ifdef USE_ASSERT_CHECKING
fprintf
(
stderr
,
"
\t
-A on
\t\t
enable/disabl
e assert checking
\n
"
);
printf
(
" -A 1|0 enable/disable run-tim
e assert checking
\n
"
);
#endif
fprintf
(
stderr
,
"
\t
-B buffers
\t
set number of buffers in buffer pool
\n
"
);
fprintf
(
stderr
,
"
\t
-c name=value
\t
set run-time parameter
\n
"
);
fprintf
(
stderr
,
"
\t
-C
\t\t
suppress version info
\n
"
);
fprintf
(
stderr
,
"
\t
-D dir
\t\t
data directory
\n
"
);
fprintf
(
stderr
,
"
\t
-E
\t\t
echo query before execution
\n
"
);
fprintf
(
stderr
,
"
\t
-F
\t\t
turn fsync off
\n
"
);
fprintf
(
stderr
,
"
\t
-L
\t\t
turn off locking
\n
"
);
fprintf
(
stderr
,
"
\t
-N
\t\t
don't use newline as interactive query delimiter
\n
"
);
fprintf
(
stderr
,
"
\t
-O
\t\t
allow system table structure changes
\n
"
);
fprintf
(
stderr
,
"
\t
-Q
\t\t
suppress informational messages
\n
"
);
fprintf
(
stderr
,
"
\t
-S kbytes
\t
set amount of memory for sorts (in kbytes)
\n
"
);
fprintf
(
stderr
,
"
\t
-T options
\t
specify pg_options
\n
"
);
fprintf
(
stderr
,
"
\t
-W sec
\t\t
wait N seconds to allow attach from a debugger
\n
"
);
fprintf
(
stderr
,
"
\t
-d [1-5]
\t
set debug level
\n
"
);
fprintf
(
stderr
,
"
\t
-e
\t\t
turn on European date format
\n
"
);
fprintf
(
stderr
,
"
\t
-f [s|i|n|m|h]
\t
forbid use of some plan types
\n
"
);
fprintf
(
stderr
,
"
\t
-i
\t\t
don't execute queries
\n
"
);
fprintf
(
stderr
,
"
\t
-o file
\t\t
send stdout and stderr to given filename
\n
"
);
fprintf
(
stderr
,
"
\t
-p database
\t
backend is started under a postmaster
\n
"
);
fprintf
(
stderr
,
"
\t
-s
\t\t
show stats after each query
\n
"
);
fprintf
(
stderr
,
"
\t
-t [pa|pl|ex]
\t
show timings after each query
\n
"
);
fprintf
(
stderr
,
"
\t
-v version
\t
set protocol version being used by frontend
\n
"
);
printf
(
" -B NBUFFERS number of shared buffers (default %d)
\n
"
,
DEF_NBUFFERS
);
printf
(
" -c NAME=VALUE set run-time parameter
\n
"
);
printf
(
" -d 1-5 debugging level
\n
"
);
printf
(
" -D DATADIR database directory
\n
"
);
printf
(
" -e use European date format
\n
"
);
printf
(
" -E echo query before execution
\n
"
);
printf
(
" -F turn fsync off
\n
"
);
printf
(
" -N do not use newline as interactive query delimiter
\n
"
);
printf
(
" -o FILENAME send stdout and stderr to given file
\n
"
);
printf
(
" -P disable system indexes
\n
"
);
printf
(
" -s show statistics after each query
\n
"
);
printf
(
" -S SORT-MEM set amount of memory for sorts (in kbytes)
\n
"
);
printf
(
"Developer options:
\n
"
);
printf
(
" -f [s|i|n|m|h] forbid use of some plan types
\n
"
);
printf
(
" -i do not execute queries
\n
"
);
printf
(
" -L turn off locking
\n
"
);
printf
(
" -O allow system table structure changes
\n
"
);
printf
(
" -t [pa|pl|ex] show timings after each query
\n
"
);
printf
(
" -W NUM wait NUM seconds to allow attach from a debugger
\n
"
);
printf
(
"
\n
Report bugs to <pgsql-bugs@postgresql.org>.
\n
"
);
}
/* ----------------------------------------------------------------
* PostgresMain
* postgres main loop -- all backends, interactive or otherwise start here
...
...
@@ -1646,7 +1649,7 @@ PostgresMain(int argc, char *argv[], int real_argc, char *real_argv[], const cha
if
(
!
IsUnderPostmaster
)
{
puts
(
"
\n
POSTGRES backend interactive interface "
);
puts
(
"$Revision: 1.18
7 $ $Date: 2000/11/08 17:57:46
$
\n
"
);
puts
(
"$Revision: 1.18
8 $ $Date: 2000/11/14 18:11:32
$
\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