2 $Header: /cvsroot/pgsql/doc/src/sgml/ref/createlang.sgml,v 1.9 2000/11/04 21:09:41 momjian Exp $
6 <refentry id="APP-CREATELANG">
8 <refentrytitle id="APP-CREATELANG-TITLE">
9 <application>createlang</application>
11 <refmiscinfo>Application</refmiscinfo>
14 <refname id="createlang">
15 <application>createlang</application>
18 Add a new programming language to a <productname>Postgres</productname> database
23 <date>1999-12-05</date>
26 createlang [ <replaceable class="parameter">connection options</replaceable> ] [ <replaceable class="parameter">langname</replaceable> [ <replaceable class="parameter">dbname</replaceable> ] ]
27 createlang [ <replaceable class="parameter">connection options</replaceable> ] --list|-l [ <replaceable class="parameter">dbname</replaceable> ]
30 <refsect2 id="R2-APP-CREATELANG-1">
35 <application>createlang</application> accepts the following command line arguments:
39 <term><replaceable class="parameter">langname</replaceable></term>
42 Specifies the name of the backend programming language to be defined.
43 <application>createlang</application> will prompt for
44 <replaceable class="parameter">langname</replaceable>
45 if it is not specified on the command line.
51 <term>-d, --dbname <replaceable class="parameter">dbname</replaceable></term>
54 Specifies which database the language should be added.
60 <term>-l, --list</term>
63 Shows a list of already installed languages in the target database
64 (which must be specified).
73 <application>createlang</application> also accepts
74 the following command line arguments for connection parameters:
78 <term>-h, --host <replaceable class="parameter">host</replaceable></term>
81 Specifies the hostname of the machine on which the
82 <application>postmaster</application>
89 <term>-p, --port <replaceable class="parameter">port</replaceable></term>
92 Specifies the Internet TCP/IP port or local Unix domain socket file
93 extension on which the <application>postmaster</application>
94 is listening for connections.
100 <term>-U, --username <replaceable class="parameter">username</replaceable></term>
103 Username to connect as.
109 <term>-W, --password</term>
112 Force password prompt.
121 <refsect2 id="R2-APP-CREATELANG-2">
123 <date>1998-10-04</date>
129 Most error messages are self-explanatory. If not, run
130 <application>createlang</application> with the <option>--echo</option>
131 option and see under the respective <acronym>SQL</acronym> command
132 for details. Check also under <xref linkend="APP-PSQL" endterm="APP-PSQL-title">
133 for more possibilities.
138 <refsect1 id="R1-APP-CREATELANG-1">
140 <date>1999-12-05</date>
147 <application>createlang</application> is a utility for adding a new
148 programming language to a <productname>Postgres</productname> database.
149 <application>createlang</application> currently accepts several
150 languages, <literal>plpgsql, pltcl, pltclu,</literal> and <literal>
154 Although backend programming languages can be added directly using
155 several <acronym>SQL</acronym> commands, it is recommended to use
156 <application>createlang</application> because it performs a number
157 of checks and is much easier to use. See
158 <xref linkend="sql-createlanguage" endterm="sql-createlanguage-title">
163 <refsect1 id="R1-APP-CREATELANG-2">
168 Use <xref linkend="app-droplang" endterm="app-droplang-title">
169 to remove a language.
173 <refsect1 id="R1-APP-CREATELANG-3">
178 To install <literal>pltcl</literal>:
180 $ createlang pltcl dbname
186 <!-- Keep this comment at the end of the file
191 sgml-minimize-attributes:nil
192 sgml-always-quote-attributes:t
195 sgml-parent-document:nil
196 sgml-default-dtd-file:"../reference.ced"
197 sgml-exposed-tags:nil
198 sgml-local-catalogs:"/usr/lib/sgml/catalog"
199 sgml-local-ecat-files:nil