From 2e83e6bd74ee8d4d119edf8272406f23e6c546cf Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 27 Apr 2018 13:42:03 -0400 Subject: Adjust hints and docs to suggest CREATE EXTENSION not CREATE LANGUAGE. The core PLs have been extension-ified for seven years now, and we can reasonably hope that all out-of-core PLs have been too. So adjust a few places that were still recommending CREATE LANGUAGE as the user-level way to install a PL. Discussion: https://postgr.es/m/CA+TgmoaJTUDMSuSCg4k08Dv8vhbrJq9nP3ZfPbmysVz_616qxw@mail.gmail.com --- doc/src/sgml/ref/create_transform.sgml | 4 ++-- doc/src/sgml/ref/do.sgml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/create_transform.sgml b/doc/src/sgml/ref/create_transform.sgml index 17cb1932cfe..4bce36b41a7 100644 --- a/doc/src/sgml/ref/create_transform.sgml +++ b/doc/src/sgml/ref/create_transform.sgml @@ -157,7 +157,7 @@ CREATE [ OR REPLACE ] TRANSFORM FOR type_name LANGUAG CREATE TYPE hstore ...; -CREATE LANGUAGE plpythonu ...; +CREATE EXTENSION plpythonu; Then create the necessary functions: @@ -176,7 +176,7 @@ CREATE TRANSFORM FOR hstore LANGUAGE plpythonu ( TO SQL WITH FUNCTION plpython_to_hstore(internal) ); - In practice, these commands would be wrapped up in extensions. + In practice, these commands would be wrapped up in an extension. diff --git a/doc/src/sgml/ref/do.sgml b/doc/src/sgml/ref/do.sgml index b9a6f9a6fd6..a3a4877e80f 100644 --- a/doc/src/sgml/ref/do.sgml +++ b/doc/src/sgml/ref/do.sgml @@ -81,7 +81,7 @@ DO [ LANGUAGE lang_name ] The procedural language to be used must already have been installed - into the current database by means of CREATE LANGUAGE. + into the current database by means of CREATE EXTENSION. plpgsql is installed by default, but other languages are not. -- cgit v1.2.3