summaryrefslogtreecommitdiff
path: root/src/pl/plperl/eloglvl.c
diff options
context:
space:
mode:
authorJoe Conway <mail@joeconway.com>2004-07-01 20:50:22 +0000
committerJoe Conway <mail@joeconway.com>2004-07-01 20:50:22 +0000
commit1732cb0dbe5ac3c1024c9f034438ae332a2ad859 (patch)
tree392eb7397f5806ecfb771d28f9345959d139b25e /src/pl/plperl/eloglvl.c
parentb6197fe06939d35f67abee1ebe62690d43199783 (diff)
plperl update from Andrew Dunstan, deriving (I believe) from Command Prompt's
plperlNG. Review and minor cleanup/improvements by Joe Conway. Summary of new functionality: - Shared data space and namespace. There is a new global variable %_SHARED that functions can use to store and save data between invocations of a function, or between different functions. Also, all trusted plperl function now share a common Safe container (this is an optimization, also), which they can use for storing non-lexical variables, functions, etc. - Triggers are now supported - Records can now be returned (as a hash reference) - Sets of records can now be returned (as a reference to an array of hash references). - New function spi_exec_query() provided for performing db functions or getting data from db. - Optimization for counting hash keys (Abhijit Menon-Sen) - Allow return of 'record' and 'setof record'
Diffstat (limited to 'src/pl/plperl/eloglvl.c')
-rw-r--r--src/pl/plperl/eloglvl.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/pl/plperl/eloglvl.c b/src/pl/plperl/eloglvl.c
deleted file mode 100644
index 3baf0279017..00000000000
--- a/src/pl/plperl/eloglvl.c
+++ /dev/null
@@ -1,45 +0,0 @@
-#include "postgres.h"
-
-/*
- * This kludge is necessary because of the conflicting
- * definitions of 'DEBUG' between postgres and perl.
- * we'll live.
- */
-
-#include "eloglvl.h"
-
-int
-elog_DEBUG(void)
-{
- return DEBUG2;
-}
-
-int
-elog_LOG(void)
-{
- return LOG;
-}
-
-int
-elog_INFO(void)
-{
- return INFO;
-}
-
-int
-elog_NOTICE(void)
-{
- return NOTICE;
-}
-
-int
-elog_WARNING(void)
-{
- return WARNING;
-}
-
-int
-elog_ERROR(void)
-{
- return ERROR;
-}