summaryrefslogtreecommitdiff
path: root/databases/postgresql74-plpython
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2004-10-10 12:56:31 +0000
committerjdolecek <jdolecek@pkgsrc.org>2004-10-10 12:56:31 +0000
commita143d162be14818073d8793db6cd8daefa33bff2 (patch)
treeb06790d367c10b1a0f503de2ee92ffb3c1a20d8e /databases/postgresql74-plpython
parentb18bfc7b0b28525db335da909c0f7be406400724 (diff)
downloadpkgsrc-a143d162be14818073d8793db6cd8daefa33bff2.tar.gz
suggest simplier way to enable PL/Python, using program createlang
Diffstat (limited to 'databases/postgresql74-plpython')
-rw-r--r--databases/postgresql74-plpython/MESSAGE9
1 files changed, 3 insertions, 6 deletions
diff --git a/databases/postgresql74-plpython/MESSAGE b/databases/postgresql74-plpython/MESSAGE
index c1a3dee898c..1a9562e28f8 100644
--- a/databases/postgresql74-plpython/MESSAGE
+++ b/databases/postgresql74-plpython/MESSAGE
@@ -1,5 +1,5 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.1.1.1 2004/10/10 12:38:21 jdolecek Exp $
+$NetBSD: MESSAGE,v 1.2 2004/10/10 12:56:31 jdolecek Exp $
Please see the PL/Python section of the PostgreSQL Programmer's Guide
(databases/postgresql-docs) for information on programming with
@@ -10,11 +10,8 @@ offer any way of restricting what users can do in it. Any DB user with
access to PL/Python can run arbitrary Python code under privileges
of the PostgreSQL server process.
-To configure PostgreSQL to enable PL/Python, run this as DBA:
+To enable PL/Python for database <dbname>, run following:
-CREATE FUNCTION plpython_call_handler() RETURNS language_handler AS
- '$libdir/plpython' LANGUAGE C;
-
-CREATE PROCEDURAL LANGUAGE plpythonu HANDLER plpython_call_handler;
+createlang plpythonu <dbname>
===========================================================================