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

NAME

6       createlang - define a new PostgreSQL procedural language
7
8

SYNOPSIS

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

DESCRIPTION

15       createlang  is  a  utility  for  adding a new programming language to a
16       PostgreSQL database.  createlang is just a wrapper  around  the  CREATE
17       LANGUAGE [create_language(7)] command.
18

OPTIONS

20       createlang accepts the following command-line arguments:
21
22       langname
23              Specifies  the name of the procedural programming language to be
24              defined.
25
26       [-d] dbname
27
28       [--dbname] dbname
29              Specifies to which database the language should be  added.   The
30              default is to use the database with the same name as the current
31              system user.
32
33       -e
34
35       --echo Display SQL commands as they are executed.
36
37       -l
38
39       --list Show a list of already installed languages in the  target  data‐
40              base.
41
42       createlang  also  accepts the following command-line arguments for con‐
43       nection parameters:
44
45       -h host
46
47       --host host
48              Specifies the host name of the machine on which  the  server  is
49              running.  If  the  value  begins with a slash, it is used as the
50              directory for the Unix domain socket.
51
52       -p port
53
54       --port port
55              Specifies the TCP port or local Unix domain socket  file  exten‐
56              sion on which the server is listening for connections.
57
58       -U username
59
60       --username username
61              User name to connect as.
62
63       -W
64
65       --password
66              Force password prompt.
67

ENVIRONMENT

69       PGDATABASE
70
71       PGHOST
72
73       PGPORT
74
75       PGUSER Default connection parameters
76
77       This utility, like most other PostgreSQL utilities, also uses the envi‐
78       ronment variables supported by libpq (see in the documentation).
79

DIAGNOSTICS

81       Most error messages are self-explanatory. If not, run  createlang  with
82       the --echo option and see under the respective SQL command for details.
83       Also, any default connection settings and environment variables used by
84       the libpq front-end library will apply.
85

NOTES

87       Use droplang(1) to remove a language.
88

EXAMPLES

90       To install the language pltcl into the database template1:
91
92       $ createlang pltcl template1
93
94       Note  that  installing  the language into template1 will cause it to be
95       automatically installed into subsequently-created databases as well.
96

SEE ALSO

98       droplang(1), CREATE LANGUAGE [create_language(7)]
99
100
101
102Application                       2008-06-08                     CREATELANG(1)
Impressum