Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 46 lines (39 sloc) 0.883 kb
20686ce @itagaki-takahiro EXTENSION support for 9.1 and 9.2.
itagaki-takahiro authored
1 #include "pg_config.h"
2 #if PG_VERSION_NUM < 90100
fe151aa @itagaki-takahiro Support inline statements (DO statements in 9.0).
itagaki-takahiro authored
3 -- adjust this setting to control where the objects get created.
4 SET search_path = public;
5
6 BEGIN;
20686ce @itagaki-takahiro EXTENSION support for 9.1 and 9.2.
itagaki-takahiro authored
7 #endif
fe151aa @itagaki-takahiro Support inline statements (DO statements in 9.0).
itagaki-takahiro authored
8
9 CREATE FUNCTION plv8_call_handler() RETURNS language_handler
10 AS 'MODULE_PATHNAME' LANGUAGE C;
11
20686ce @itagaki-takahiro EXTENSION support for 9.1 and 9.2.
itagaki-takahiro authored
12 #if PG_VERSION_NUM >= 90000
fe151aa @itagaki-takahiro Support inline statements (DO statements in 9.0).
itagaki-takahiro authored
13 CREATE FUNCTION plv8_inline_handler(internal) RETURNS void
14 AS 'MODULE_PATHNAME' LANGUAGE C;
20686ce @itagaki-takahiro EXTENSION support for 9.1 and 9.2.
itagaki-takahiro authored
15 #endif
16
fe151aa @itagaki-takahiro Support inline statements (DO statements in 9.0).
itagaki-takahiro authored
17 CREATE FUNCTION plv8_call_validator(oid) RETURNS void
18 AS 'MODULE_PATHNAME' LANGUAGE C;
19
20686ce @itagaki-takahiro EXTENSION support for 9.1 and 9.2.
itagaki-takahiro authored
20 DELETE FROM pg_pltemplate WHERE tmplname = 'plv8';
fe151aa @itagaki-takahiro Support inline statements (DO statements in 9.0).
itagaki-takahiro authored
21 INSERT INTO pg_pltemplate (
22 tmplname,
23 tmpltrusted,
24 tmpldbacreate,
25 tmplhandler,
20686ce @itagaki-takahiro EXTENSION support for 9.1 and 9.2.
itagaki-takahiro authored
26 #if PG_VERSION_NUM >= 90000
27 tmplinline,
28 #endif
fe151aa @itagaki-takahiro Support inline statements (DO statements in 9.0).
itagaki-takahiro authored
29 tmplvalidator,
30 tmpllibrary)
31 SELECT
32 'plv8',
33 true,
34 false,
35 'plv8_call_handler',
20686ce @itagaki-takahiro EXTENSION support for 9.1 and 9.2.
itagaki-takahiro authored
36 #if PG_VERSION_NUM >= 90000
37 'plv8_inline_handler',
38 #endif
fe151aa @itagaki-takahiro Support inline statements (DO statements in 9.0).
itagaki-takahiro authored
39 'plv8_call_validator',
40 'MODULE_PATHNAME'
41 ;
42
20686ce @itagaki-takahiro EXTENSION support for 9.1 and 9.2.
itagaki-takahiro authored
43 #if PG_VERSION_NUM < 90100
fe151aa @itagaki-takahiro Support inline statements (DO statements in 9.0).
itagaki-takahiro authored
44 COMMIT;
20686ce @itagaki-takahiro EXTENSION support for 9.1 and 9.2.
itagaki-takahiro authored
45 #endif
Something went wrong with that request. Please try again.