Imported upstream version 1.5
[manpages-zh.git] / raw / man1 / droplang.1
blob72e68e05c0a1c38042aa61930df704225d72aa3e
1 .\\" auto-generated by docbook2man-spec $Revision: 1.1 $
2 .TH "DROPLANG" "1" "2003-11-02" "Application" "PostgreSQL Client Applications"
3 .SH NAME
4 droplang \- remove a PostgreSQL procedural language
6 .SH SYNOPSIS
7 .sp
8 \fBdroplang\fR\fR [ \fR\fB\fIconnection-option\fB\fR...\fB \fR\fR]\fR \fB\fIlangname\fB\fR\fR [ \fR\fB\fIdbname\fB \fR\fR]\fR
10 \fBdroplang\fR\fR [ \fR\fB\fIconnection-option\fB\fR...\fB \fR\fR]\fR \fR\fR \fB--list\fR\fR | \fR\fB-l\fR\fR\fR \fB\fIdbname\fB\fR
11 .SH "DESCRIPTION"
12 .PP
13 \fBdroplang\fR is a utility for removing an 
14 existing programming language from a
15 PostgreSQL database.
16 \fBdroplang\fR can drop any procedural language,
17 even those not supplied by the PostgreSQL distribution.
18 .PP
19 Although backend programming languages can be removed directly using
20 several SQL commands, it is recommended to use
21 \fBdroplang\fR because it performs a number
22 of checks and is much easier to use. See
23 DROP LANGUAGE [\fBdrop_language\fR(7)]
24 for more.
25 .SH "OPTIONS"
26 .PP
27 \fBdroplang\fR accepts the following command line arguments:
28 .TP
29 \fB\fIlangname\fB\fR
30 Specifies the name of the backend programming language to be removed.
31 .TP
32 \fB[-d] \fIdbname\fB\fR
33 .TP
34 \fB[--dbname] \fIdbname\fB\fR
35 Specifies from which database the language should be removed.
36 The default is to use the database with the same name as the
37 current system user.
38 .TP
39 \fB-e\fR
40 .TP
41 \fB--echo\fR
42 Display SQL commands as they are executed.
43 .TP
44 \fB-l\fR
45 .TP
46 \fB--list\fR
47 Show a list of already installed languages in the target database.
48 .PP
49 .PP
50 \fBdroplang\fR also accepts 
51 the following command line arguments for connection parameters:
52 .TP
53 \fB-h \fIhost\fB\fR
54 .TP
55 \fB--host \fIhost\fB\fR
56 Specifies the host name of the machine on which the 
57 server
58 is running. If host begins with a slash, it is used 
59 as the directory for the Unix domain socket.
60 .TP
61 \fB-p \fIport\fB\fR
62 .TP
63 \fB--port \fIport\fB\fR
64 Specifies the Internet TCP/IP port or local Unix domain socket file 
65 extension on which the server
66 is listening for connections.
67 .TP
68 \fB-U \fIusername\fB\fR
69 .TP
70 \fB--username \fIusername\fB\fR
71 User name to connect as
72 .TP
73 \fB-W\fR
74 .TP
75 \fB--password\fR
76 Force password prompt.
77 .PP
78 .SH "ENVIRONMENT"
79 .TP
80 \fBPGDATABASE\fR
81 .TP
82 \fBPGHOST\fR
83 .TP
84 \fBPGPORT\fR
85 .TP
86 \fBPGUSER\fR
87 Default connection parameters
88 .SH "DIAGNOSTICS"
89 .PP
90 Most error messages are self-explanatory. If not, run
91 \fBdroplang\fR with the \fB--echo\fR
92 option and see under the respective SQL command
93 for details.
94 .SH "NOTES"
95 .PP
96 Use \fBcreatelang\fR(1) to add a language.
97 .SH "EXAMPLES"
98 .PP
99 To remove the language pltcl:
102 $ \fBdroplang pltcl dbname\fR
105 .SH "SEE ALSO"
106 \fBcreatelang\fR(1), DROP LANGUAGE [\fBdrop_language\fR(7)]