.\\" auto-generated by docbook2man-spec $Revision: 1.25 $ .TH "DROPLANG" "1" "2002-11-22" "Application" "PostgreSQL Client Applications" .SH NAME droplang \- remove a PostgreSQL procedural language .SH SYNOPSIS .sp \fBdroplang\fR\fR [ \fR\fB\fIconnection-options\fB\fR...\fB \fR\fR]\fR \fB\fIlangname\fB\fR\fR [ \fR\fB\fIdbname\fB \fR\fR]\fR \fBdroplang\fR\fR [ \fR\fB\fIconnection-options\fB\fR...\fB \fR\fR]\fR \fR\fR \fB--list\fR\fR | \fR\fB-l\fR\fR\fR \fB\fIdbname\fB\fR .SH "DESCRIPTION" .PP \fBdroplang\fR is a utility for removing an existing programming language from a PostgreSQL database. \fBdroplang\fR can drop any procedural language, even those not supplied by the PostgreSQL distribution. .PP Although backend programming languages can be removed directly using several SQL commands, it is recommended to use \fBdroplang\fR because it performs a number of checks and is much easier to use. See DROP LANGUAGE [\fBdrop_language\fR(7)] for more. .SH "OPTIONS" .PP \fBdroplang\fR accepts the following command line arguments: .TP \fB\fIlangname\fB\fR Specifies the name of the backend programming language to be removed. .TP \fB[-d] \fIdbname\fB\fR .TP \fB[--dbname] \fIdbname\fB\fR Specifies from which database the language should be removed. The default is to use the database with the same name as the current system user. .TP \fB-e\fR .TP \fB--echo\fR Displays SQL commands as they are executed. .TP \fB-l\fR .TP \fB--list\fR Shows a list of already installed languages in the target database (which must be specified). .PP .PP \fBdroplang\fR also accepts the following command line arguments for connection parameters: .TP \fB-h \fIhost\fB\fR .TP \fB--host \fIhost\fB\fR Specifies the host name of the machine on which the server is running. If host begins with a slash, it is used as the directory for the Unix domain socket. .TP \fB-p \fIport\fB\fR .TP \fB--port \fIport\fB\fR Specifies the Internet TCP/IP port or local Unix domain socket file extension on which the server is listening for connections. .TP \fB-U \fIusername\fB\fR .TP \fB--username \fIusername\fB\fR User name to connect as .TP \fB-W\fR .TP \fB--password\fR Force password prompt. .PP .SH "ENVIRONMENT" .TP \fBPGDATABASE\fR .TP \fBPGHOST\fR .TP \fBPGPORT\fR .TP \fBPGUSER\fR Default connection parameters. .SH "DIAGNOSTICS" .PP Most error messages are self-explanatory. If not, run \fBdroplang\fR with the \fB--echo\fR option and see under the respective SQL command for details. Check also under \fBpsql\fR(1) for more possibilities. .SH "NOTES" .PP Use \fBcreatelang\fR(1) to add a language. .SH "EXAMPLES" .PP To remove pltcl: .sp .nf $ \fBdroplang pltcl dbname\fR .sp .fi .SH "SEE ALSO" \fBcreatelang\fR(1), DROP LANGUAGE [\fBdrop_language\fR(7)]