~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to doc/src/sgml/man1/pg_ctl.1

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-06-14 09:53:29 UTC
  • mto: (6.1.1 sid) (10.1.1 oneiric-proposed) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20110614095329-71gfhjywyp2c27au
Tags: upstream-9.1~beta2
ImportĀ upstreamĀ versionĀ 9.1~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
.\"     Title: pg_ctl
3
3
.\"    Author: The PostgreSQL Global Development Group
4
4
.\" Generator: DocBook XSL Stylesheets v1.75.1 <http://docbook.sf.net/>
5
 
.\"      Date: 2011-04-27
6
 
.\"    Manual: PostgreSQL 9.1beta1 Documentation
7
 
.\"    Source: PostgreSQL 9.1beta1
 
5
.\"      Date: 2011-06-09
 
6
.\"    Manual: PostgreSQL 9.1beta2 Documentation
 
7
.\"    Source: PostgreSQL 9.1beta2
8
8
.\"  Language: English
9
9
.\"
10
 
.TH "PG_CTL" "1" "2011-04-27" "PostgreSQL 9.1beta1" "PostgreSQL 9.1beta1 Documentation"
 
10
.TH "PG_CTL" "1" "2011-06-09" "PostgreSQL 9.1beta2" "PostgreSQL 9.1beta2 Documentation"
11
11
.\" -----------------------------------------------------------------
12
12
.\" * set default formatting
13
13
.\" -----------------------------------------------------------------
19
19
.\" * MAIN CONTENT STARTS HERE *
20
20
.\" -----------------------------------------------------------------
21
21
.SH "NAME"
22
 
pg_ctl \- initialize, start, stop, or restart a PostgreSQL server
 
22
pg_ctl \- initialize, start, stop, or control a PostgreSQL server
23
23
.\" pg_ctl
24
24
.SH "SYNOPSIS"
25
25
.HP \w'pg_ctl\ 'u
31
31
.HP \w'pg_ctl\ 'u
32
32
pg_ctl restart [\-w] [\-t\ \fIseconds\fR] [\-s] [\-D\ \fIdatadir\fR] [\-c] [\-m\ [s[mart]]\ |\ [f[ast]]\ |\ [i[mmediate]]] [\-o\ \fIoptions\fR]
33
33
.HP \w'pg_ctl\ 'u
34
 
pg_ctl promote [\-s] [\-D\ \fIdatadir\fR]
35
 
.HP \w'pg_ctl\ 'u
36
34
pg_ctl reload [\-s] [\-D\ \fIdatadir\fR]
37
35
.HP \w'pg_ctl\ 'u
38
36
pg_ctl status [\-D\ \fIdatadir\fR]
39
37
.HP \w'pg_ctl\ 'u
40
 
pg_ctl kill [\fIsignal_name\fR] [\fIprocess_id\fR]
41
 
.HP \w'pg_ctl\ 'u
42
 
pg_ctl register [\-N\ \fIservicename\fR] [\-U\ \fIusername\fR] [\-P\ \fIpassword\fR] [\-D\ \fIdatadir\fR] [\-S\ [a[uto]]\ |\ [d[emand]]] [\-w] [\-t\ \fIseconds\fR] [\-o\ \fIoptions\fR]
 
38
pg_ctl promote [\-s] [\-D\ \fIdatadir\fR]
 
39
.HP \w'pg_ctl\ 'u
 
40
pg_ctl kill \fIsignal_name\fR \fIprocess_id\fR
 
41
.HP \w'pg_ctl\ 'u
 
42
pg_ctl register [\-N\ \fIservicename\fR] [\-U\ \fIusername\fR] [\-P\ \fIpassword\fR] [\-D\ \fIdatadir\fR] [\-S\ [a[uto]]\ |\ [d[emand]]] [\-w] [\-t\ \fIseconds\fR] [\-s] [\-o\ \fIoptions\fR]
43
43
.HP \w'pg_ctl\ 'u
44
44
pg_ctl unregister [\-N\ \fIservicename\fR]
45
45
.SH "DESCRIPTION"
100
100
postgres
101
101
command\-line options\&.
102
102
.PP
103
 
In
104
 
\fBpromote\fR
105
 
mode, the standby server that is running in the specified data directory is commanded to exit recovery and begin read\-write operations\&.
106
 
.PP
107
103
\fBreload\fR
108
104
mode simply sends the
109
105
postgres
117
113
PID
118
114
and the command line options that were used to invoke it are displayed\&.
119
115
.PP
 
116
In
 
117
\fBpromote\fR
 
118
mode, the standby server that is running in the specified data directory is commanded to exit recovery and begin read\-write operations\&.
 
119
.PP
120
120
\fBkill\fR
121
121
mode allows you to send a signal to a specified process\&. This is particularly valuable for
122
122
Microsoft Windows
245
245
Name of the system service to register\&. The name will be used as both the service name and the display name\&.
246
246
.RE
247
247
.PP
248
 
\fB\-U \fR\fB\fIusername\fR\fR
249
 
.RS 4
250
 
User name for the user to start the service\&. For domain users, use the format
251
 
DOMAIN\eusername\&.
252
 
.RE
253
 
.PP
254
248
\fB\-P \fR\fB\fIpassword\fR\fR
255
249
.RS 4
256
250
Password for the user to start the service\&.
264
258
auto
265
259
is used\&.
266
260
.RE
 
261
.PP
 
262
\fB\-U \fR\fB\fIusername\fR\fR
 
263
.RS 4
 
264
User name for the user to start the service\&. For domain users, use the format
 
265
DOMAIN\eusername\&.
 
266
.RE
267
267
.SH "ENVIRONMENT"
268
268
.PP
269
269
\fBPGDATA\fR