From ba0c93a0f46ca70cae47a8817067c1e98482979f Mon Sep 17 00:00:00 2001
From: Tom Lane
Date: Sat, 5 Mar 2011 14:03:06 -0500
Subject: Convert createlang/droplang to use CREATE/DROP EXTENSION.
In createlang this is a one-line change. In droplang there's a whole
lot of cruft that can be discarded since the extension mechanism now
manages removal of the language's support functions.
Also, add deprecation notices to these two programs' reference pages,
since per discussion we may toss them overboard altogether in a release
or two.
---
doc/src/sgml/ref/createlang.sgml | 24 +++++++++++++++++-------
doc/src/sgml/ref/droplang.sgml | 24 ++++++++++++++----------
2 files changed, 31 insertions(+), 17 deletions(-)
(limited to 'doc')
diff --git a/doc/src/sgml/ref/createlang.sgml b/doc/src/sgml/ref/createlang.sgml
index 36bd318e1de..0bc1976c15e 100644
--- a/doc/src/sgml/ref/createlang.sgml
+++ b/doc/src/sgml/ref/createlang.sgml
@@ -12,7 +12,7 @@ PostgreSQL documentation
createlang
- define a new PostgreSQL procedural language
+ install a PostgreSQL procedural language
@@ -40,12 +40,22 @@ PostgreSQL documentation
Description
- createlang is a utility for adding a new
- programming language to a PostgreSQL database.
+ createlang is a utility for adding a
+ procedural language to a PostgreSQL database.
+
+
+
createlang is just a wrapper around the
-
- command.
+ SQL command.
+
+
+
+ createlang is deprecated and may be removed
+ in a future PostgreSQL release. Direct use
+ of the CREATE EXTENSION> command is recommended instead.
+
+
@@ -60,8 +70,7 @@ PostgreSQL documentation
langname
- Specifies the name of the procedural programming language to be
- defined.
+ Specifies the name of the procedural language to be installed.
@@ -273,6 +282,7 @@ PostgreSQL documentation
+
diff --git a/doc/src/sgml/ref/droplang.sgml b/doc/src/sgml/ref/droplang.sgml
index c9d034a4c14..810c78e5215 100644
--- a/doc/src/sgml/ref/droplang.sgml
+++ b/doc/src/sgml/ref/droplang.sgml
@@ -42,19 +42,22 @@ PostgreSQL documentation
droplang is a utility for removing an
- existing programming language from a
+ existing procedural language from a
PostgreSQL database.
- droplang can drop any procedural language,
- even those not supplied by the PostgreSQL> distribution.
+
- Although backend programming languages can be removed directly using
- several SQL commands, it is recommended to use
- droplang because it performs a number
- of checks and is much easier to use. See
-
- for more.
+ droplang is just a wrapper around the
+ SQL command.
+
+
+
+ droplang is deprecated and may be removed
+ in a future PostgreSQL release. Direct use
+ of the DROP EXTENSION> command is recommended instead.
+
+
@@ -69,7 +72,7 @@ PostgreSQL documentation
langname
- Specifies the name of the backend programming language to be removed.
+ Specifies the name of the procedural language to be removed.
@@ -277,6 +280,7 @@ PostgreSQL documentation
+
--
cgit v1.2.3