1DROPLANG(1) PostgreSQL Client Applications DROPLANG(1)
2
3
4
6 droplang - remove a PostgreSQL procedural language
7
8
10 droplang [ connection-option... ] langname [ dbname ]
11
12 droplang [ connection-option... ] [ --list ] [ -l ] dbname
13
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
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 --password
71 Force password prompt.
72
74 PGDATABASE
75
76 PGHOST
77
78 PGPORT
79
80 PGUSER Default connection parameters
81
82 This utility, like most other PostgreSQL utilities, also uses the envi‐
83 ronment variables supported by libpq (see in the documentation).
84
86 Most error messages are self-explanatory. If not, run droplang with the
87 --echo option and see under the respective SQL command for details.
88 Also, any default connection settings and environment variables used by
89 the libpq front-end library will apply.
90
92 Use createlang(1) to add a language.
93
95 To remove the language pltcl:
96
97 $ droplang pltcl dbname
98
99
101 createlang(1), DROP LANGUAGE [drop_language(7)]
102
103
104
105Application 2008-06-08 DROPLANG(1)