1DROPLANG(1)             PostgreSQL Client Applications             DROPLANG(1)
2
3
4

NAME

6       droplang - remove a PostgreSQL procedural language
7
8

SYNOPSIS

10       droplang [ connection-option... ]  langname  [ dbname ]
11
12       droplang [ connection-option... ]  --list | -l  dbname
13

DESCRIPTION

15       droplang  is  a  utility  for removing an existing programming language
16       from a PostgreSQL database.  droplang can drop any procedural language,
17       even those not supplied by the PostgreSQL distribution.
18
19       Although  backend  programming  languages can be removed directly using
20       several SQL commands, it is recommended to use droplang because it per‐
21       forms  a  number of checks and is much easier to use. See DROP LANGUAGE
22       [drop_language(7)] for more.
23

OPTIONS

25       droplang accepts the following command line arguments:
26
27       langname
28              Specifies the name of the backend  programming  language  to  be
29              removed.
30
31       [-d] dbname
32
33       [--dbname] dbname
34              Specifies  from  which  database the language should be removed.
35              The default is to use the database with the  same  name  as  the
36              current system user.
37
38       -e
39
40       --echo Display SQL commands as they are executed.
41
42       -l
43
44       --list Show  a  list of already installed languages in the target data‐
45              base.
46
47       droplang also accepts the following command line arguments for  connec‐
48       tion parameters:
49
50       -h host
51
52       --host host
53              Specifies  the  host  name of the machine on which the server is
54              running. If host begins with a slash, it is used as  the  direc‐
55              tory for the Unix domain socket.
56
57       -p port
58
59       --port port
60              Specifies  the  Internet TCP/IP port or local Unix domain socket
61              file extension on which the server is listening for connections.
62
63       -U username
64
65       --username username
66              User name to connect as.
67
68       -w
69
70       --no-password
71              Never issue a password prompt. If the server  requires  password
72              authentication  and  a  password is not available by other means
73              such as a .pgpass file, the connection attempt will  fail.  This
74              option  can be useful in batch jobs and scripts where no user is
75              present to enter a password.
76
77       -W
78
79       --password
80              Force droplang to prompt for a password before connecting  to  a
81              database.
82
83              This  option  is  never essential, since droplang will automati‐
84              cally prompt for a  password  if  the  server  demands  password
85              authentication.   However,  droplang  will  waste  a  connection
86              attempt finding out that the server wants a password.   In  some
87              cases  it  is  worth  typing  -W  to  avoid the extra connection
88              attempt.
89

ENVIRONMENT

91       PGDATABASE
92
93       PGHOST
94
95       PGPORT
96
97       PGUSER Default connection parameters
98
99       This utility, like most other PostgreSQL utilities, also uses the envi‐
100       ronment variables supported by libpq (see in the documentation).
101

DIAGNOSTICS

103       Most error messages are self-explanatory. If not, run droplang with the
104       --echo option and see under the respective  SQL  command  for  details.
105       Also, any default connection settings and environment variables used by
106       the libpq front-end library will apply.
107

NOTES

109       Use createlang(1) to add a language.
110

EXAMPLES

112       To remove the language pltcl:
113
114       $ droplang pltcl dbname
115
116

SEE ALSO

118       createlang(1), DROP LANGUAGE [drop_language(7)]
119
120
121
122Application                       2011-09-22                       DROPLANG(1)
Impressum