1CREATELANG(1) PostgreSQL 9.2.24 Documentation CREATELANG(1)
2
3
4
6 createlang - install a PostgreSQL procedural language
7
9 createlang [connection-option...] langname [dbname]
10
11 createlang [connection-option...] --list | -l [dbname]
12
14 createlang is a utility for adding a procedural language to a
15 PostgreSQL database.
16
17 createlang is just a wrapper around the CREATE EXTENSION
18 (CREATE_EXTENSION(7)) SQL command.
19
20 Caution
21 createlang is deprecated and may be removed in a future PostgreSQL
22 release. Direct use of the CREATE EXTENSION command is recommended
23 instead.
24
26 createlang accepts the following command-line arguments:
27
28 langname
29 Specifies the name of the procedural language to be installed.
30 (This name is lower-cased.)
31
32 [-d] dbname, [--dbname=]dbname
33 Specifies the database to which the language should be added. The
34 default is to use the database with the same name as the current
35 system user.
36
37 -e, --echo
38 Display SQL commands as they are executed.
39
40 -l, --list
41 Show a list of already installed languages in the target database.
42
43 -V, --version
44 Print the createlang version and exit.
45
46 -?, --help
47 Show help about createlang command line arguments, and exit.
48
49 createlang also accepts the following command-line arguments for
50 connection parameters:
51
52 -h host, --host=host
53 Specifies the host name of the machine on which the server is
54 running. If the value begins with a slash, it is used as the
55 directory for the Unix domain socket.
56
57 -p port, --port=port
58 Specifies the TCP port or local Unix domain socket file extension
59 on which the server is listening for connections.
60
61 -U username, --username=username
62 User name to connect as.
63
64 -w, --no-password
65 Never issue a password prompt. If the server requires password
66 authentication and a password is not available by other means such
67 as a .pgpass file, the connection attempt will fail. This option
68 can be useful in batch jobs and scripts where no user is present to
69 enter a password.
70
71 -W, --password
72 Force createlang to prompt for a password before connecting to a
73 database.
74
75 This option is never essential, since createlang will automatically
76 prompt for a password if the server demands password
77 authentication. However, createlang will waste a connection attempt
78 finding out that the server wants a password. In some cases it is
79 worth typing -W to avoid the extra connection attempt.
80
82 PGDATABASE, PGHOST, PGPORT, PGUSER
83 Default connection parameters
84
85 This utility, like most other PostgreSQL utilities, also uses the
86 environment variables supported by libpq (see Section 31.14,
87 “Environment Variables”, in the documentation).
88
90 Most error messages are self-explanatory. If not, run createlang with
91 the --echo option and see the respective SQL command for details. Also,
92 any default connection settings and environment variables used by the
93 libpq front-end library will apply.
94
96 Use droplang(1) to remove a language.
97
99 To install the language pltcl into the database template1:
100
101 $ createlang pltcl template1
102
103 Note that installing the language into template1 will cause it to be
104 automatically installed into subsequently-created databases as well.
105
107 droplang(1), CREATE EXTENSION (CREATE_EXTENSION(7)), CREATE LANGUAGE
108 (CREATE_LANGUAGE(7))
109
110
111
112PostgreSQL 9.2.24 2017-11-06 CREATELANG(1)