2 $Header: /cvsroot/pgsql/doc/src/sgml/ref/createlang.sgml,v 1.10 2000/11/11 23:01:38 petere Exp $
6 <refentry id="APP-CREATELANG">
8 <date>2000-11-11</date>
12 <refentrytitle id="APP-CREATELANG-TITLE"><application>createlang</application></refentrytitle>
13 <manvolnum>1</manvolnum>
14 <refmiscinfo>Application</refmiscinfo>
18 <refname id="createlang">createlang</refname>
19 <refpurpose>Add a new programming language to a <productname>Postgres</productname> database</refpurpose>
24 <command>createlang</command>
25 <arg rep="repeat"><replaceable>connection-options</replaceable></arg>
26 <arg><replaceable>langname</replaceable></arg>
27 <arg choice="plain"><replaceable>dbname</replaceable></arg>
29 <command>createlang</command>
30 <arg rep="repeat"><replaceable>connection-options</replaceable></arg>
31 <group choice="plain"><arg>--list</arg><arg>-l</arg></group>
32 <arg choice="plain"><replaceable>dbname</replaceable></arg>
35 <refsect2 id="R2-APP-CREATELANG-1">
40 <application>createlang</application> accepts the following command line arguments:
44 <term><replaceable class="parameter">langname</replaceable></term>
47 Specifies the name of the backend programming language to be defined.
48 <application>createlang</application> will prompt for
49 <replaceable class="parameter">langname</replaceable>
50 if it is not specified on the command line.
56 <term>-d, --dbname <replaceable class="parameter">dbname</replaceable></term>
59 Specifies which database the language should be added.
65 <term>-l, --list</term>
68 Shows a list of already installed languages in the target database
69 (which must be specified).
78 <application>createlang</application> also accepts
79 the following command line arguments for connection parameters:
83 <term>-h, --host <replaceable class="parameter">host</replaceable></term>
86 Specifies the hostname of the machine on which the
87 <application>postmaster</application>
94 <term>-p, --port <replaceable class="parameter">port</replaceable></term>
97 Specifies the Internet TCP/IP port or local Unix domain socket file
98 extension on which the <application>postmaster</application>
99 is listening for connections.
105 <term>-U, --username <replaceable class="parameter">username</replaceable></term>
108 Username to connect as.
114 <term>-W, --password</term>
117 Force password prompt.
126 <refsect2 id="R2-APP-CREATELANG-2">
131 Most error messages are self-explanatory. If not, run
132 <application>createlang</application> with the <option>--echo</option>
133 option and see under the respective <acronym>SQL</acronym> command
134 for details. Check also under <xref linkend="APP-PSQL" endterm="APP-PSQL-title">
135 for more possibilities.
140 <refsect1 id="R1-APP-CREATELANG-1">
146 <application>createlang</application> is a utility for adding a new
147 programming language to a <productname>Postgres</productname> database.
148 <application>createlang</application> currently accepts several
149 languages, <literal>plpgsql, pltcl, pltclu,</literal> and <literal>
153 Although backend programming languages can be added directly using
154 several <acronym>SQL</acronym> commands, it is recommended to use
155 <application>createlang</application> because it performs a number
156 of checks and is much easier to use. See
157 <xref linkend="sql-createlanguage" endterm="sql-createlanguage-title">
162 <refsect1 id="R1-APP-CREATELANG-2">
167 Use <xref linkend="app-droplang" endterm="app-droplang-title">
168 to remove a language.
172 <refsect1 id="R1-APP-CREATELANG-3">
177 To install <literal>pltcl</literal> into the database
178 <literal>template1</literal>:
180 <prompt>$ </prompt><userinput>createlang pltcl template1</userinput>
187 <!-- Keep this comment at the end of the file
192 sgml-minimize-attributes:nil
193 sgml-always-quote-attributes:t
196 sgml-parent-document:nil
197 sgml-default-dtd-file:"../reference.ced"
198 sgml-exposed-tags:nil
199 sgml-local-catalogs:"/usr/lib/sgml/catalog"
200 sgml-local-ecat-files:nil