Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit50c956a

Browse files
committed
Remove createlang and droplang
They have been deprecated since PostgreSQL 9.1.Reviewed-by: Magnus Hagander <magnus@hagander.net>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
1 parent691b8d5 commit50c956a

21 files changed

+21
-1182
lines changed

‎doc/src/sgml/installation.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,17 +2256,17 @@ hosts=local4,bind4
22562256
memory management. You can have a server with many multiples of
22572257
gigabytes of RAM free, but still get out of memory or address
22582258
space errors when running applications. One example
2259-
is<command>createlang</command> failing with unusual errors.
2259+
isloading of extensions failing with unusual errors.
22602260
For example, running as the owner of the PostgreSQL installation:
22612261
<screen>
2262-
-bash-3.00$ createlang plperl template1
2263-
createlang: language installation failed:ERROR: could not load library "/opt/dbs/pgsql748/lib/plperl.so": A memory address is not in the address space for the process.
2262+
=# CREATE EXTENSION plperl;
2263+
ERROR: could not load library "/opt/dbs/pgsql/lib/plperl.so": A memory address is not in the address space for the process.
22642264
</screen>
22652265
Running as a non-owner in the group possessing the PostgreSQL
22662266
installation:
22672267
<screen>
2268-
-bash-3.00$ createlang plperl template1
2269-
createlang: language installation failed:ERROR: could not load library "/opt/dbs/pgsql748/lib/plperl.so": Bad address
2268+
=# CREATE EXTENSION plperl;
2269+
ERROR: could not load library "/opt/dbs/pgsql/lib/plperl.so": Bad address
22702270
</screen>
22712271
Another example is out of memory errors in the PostgreSQL server
22722272
logs, with every memory allocation near or greater than 256 MB
@@ -2284,7 +2284,7 @@ createlang: language installation failed: ERROR: could not load library "/opt/d
22842284
</para>
22852285

22862286
<para>
2287-
In the case of the <command>createlang</command> example, above,
2287+
In the case of the <literal>plperl</literal> example, above,
22882288
check your umask and the permissions of the binaries in your
22892289
PostgreSQL installation. The binaries involved in that example
22902290
were 32-bit and installed as mode 750 instead of 755. Due to the

‎doc/src/sgml/plperl.sgml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727

2828
<para>
2929
To install PL/Perl in a particular database, use
30-
<literal>CREATE EXTENSION plperl</>, or from the shell command line use
31-
<literal>createlang plperl <replaceable>dbname</></literal>.
30+
<literal>CREATE EXTENSION plperl</>.
3231
</para>
3332

3433
<tip>

‎doc/src/sgml/plpython.sgml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
<para>
1616
To install PL/Python in a particular database, use
17-
<literal>CREATE EXTENSION plpythonu</>, or from the shell command line use
18-
<literal>createlang plpythonu <replaceable>dbname</></literal> (but
17+
<literal>CREATE EXTENSION plpythonu</> (but
1918
see also <xref linkend="plpython-python23">).
2019
</para>
2120

‎doc/src/sgml/pltcl.sgml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@
6666
directory if Tcl support is specified in the configuration step of
6767
the installation procedure. To install <application>PL/Tcl</>
6868
and/or <application>PL/TclU</> in a particular database, use the
69-
<command>CREATE EXTENSION</> command or the
70-
<command>createlang</command> program, for example
71-
<literal>createlang pltcl <replaceable>dbname</></literal> or
72-
<literal>createlang pltclu <replaceable>dbname</></literal>.
69+
<command>CREATE EXTENSION</> command, for example
70+
<literal>CREATE EXTENSION pltcl</literal> or
71+
<literal>CREATE EXTENSION pltclu</literal>.
7372
</para>
7473
</sect1>
7574

‎doc/src/sgml/ref/allfiles.sgml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,8 @@ Complete list of usable sgml source files in this directory.
182182
<!-- applications and utilities -->
183183
<!ENTITY clusterdb SYSTEM "clusterdb.sgml">
184184
<!ENTITY createdb SYSTEM "createdb.sgml">
185-
<!ENTITY createlang SYSTEM "createlang.sgml">
186185
<!ENTITY createuser SYSTEM "createuser.sgml">
187186
<!ENTITY dropdb SYSTEM "dropdb.sgml">
188-
<!ENTITY droplang SYSTEM "droplang.sgml">
189187
<!ENTITY dropuser SYSTEM "dropuser.sgml">
190188
<!ENTITY ecpgRef SYSTEM "ecpg-ref.sgml">
191189
<!ENTITY initdb SYSTEM "initdb.sgml">

‎doc/src/sgml/ref/create_function.sgml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,6 @@ COMMIT;
847847
<member><xref linkend="sql-grant"></member>
848848
<member><xref linkend="sql-load"></member>
849849
<member><xref linkend="sql-revoke"></member>
850-
<member><xref linkend="app-createlang"></member>
851850
</simplelist>
852851
</refsect1>
853852

‎doc/src/sgml/ref/create_language.sgml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,21 +230,14 @@ CREATE [ OR REPLACE ] [ TRUSTED ] [ PROCEDURAL ] LANGUAGE <replaceable class="pa
230230
<title>Notes</title>
231231

232232
<para>
233-
The <xref linkend="app-createlang"> program is a simple wrapper around
234-
the <command>CREATE LANGUAGE</> command. It eases
235-
installation of procedural languages from the shell command line.
236-
</para>
237-
238-
<para>
239-
Use <xref linkend="sql-droplanguage">, or better yet the <xref
240-
linkend="app-droplang"> program, to drop procedural languages.
233+
Use <xref linkend="sql-droplanguage"> to drop procedural languages.
241234
</para>
242235

243236
<para>
244237
The system catalog <classname>pg_language</classname> (see <xref
245238
linkend="catalog-pg-language">) records information about the
246-
currently installed languages. Also,<command>createlang</command>
247-
has an option to list the installed languages.
239+
currently installed languages. Also,the <application>psql</application>
240+
command <command>\dL</command> lists the installed languages.
248241
</para>
249242

250243
<para>
@@ -325,8 +318,6 @@ CREATE LANGUAGE plsample
325318
<member><xref linkend="sql-droplanguage"></member>
326319
<member><xref linkend="sql-grant"></member>
327320
<member><xref linkend="sql-revoke"></member>
328-
<member><xref linkend="app-createlang"></member>
329-
<member><xref linkend="app-droplang"></member>
330321
</simplelist>
331322
</refsect1>
332323
</refentry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp