@@ -15,7 +15,7 @@ Prerequisite
15
15
All PostgreSQL headers need to be installed. Command (see ` INSTALL ` in the
16
16
directory postgresql-7.x.y)
17
17
18
- make install-all-headers
18
+ make install-all-headers
19
19
20
20
Installation
21
21
------------
@@ -24,52 +24,66 @@ Installation
24
24
make
25
25
make install
26
26
27
- You may need to specify :
27
+ You may need to specify some of the following extconf.rb options :
28
28
29
29
--with-pg-config=<location of the pg_config command of PostgreSQL>
30
30
31
+ Specifies the location of pg_config.
32
+ e.g. --with-pg-config=/usr/local/bin/pg_config
33
+
34
+ --with-greenplum
35
+
36
+ Builds plruby for Greenplum instead of PostgreSQL.
37
+
31
38
--disable-conversion
32
- by default plruby try to convert a postgres type to a ruby class
33
- This option give the possibility to disable all conversions
39
+
40
+ By default plruby tries to convert a postgres type to a ruby class.
41
+ This option gives the possibility to disable all conversions.
34
42
35
43
--with-suffix=<suffix to add>
36
44
37
- For example
45
+ Specifies a suffix to add to the extension module file.
46
+ e.g. ` ruby extconf.rb --with-suffix=_geo ` will create
47
+ ` plruby_geo.so ` .
38
48
39
- ruby extconf.rb --with-suffix=_geo
49
+ --with-safe-level
40
50
41
- will create ` plruby_geo.so `
51
+ Lowers the safe level which the plruby functions are run under.
52
+ (default: 12; meaning the maximum)
42
53
43
- --with-greenplum
44
- To build plruby for Greenplum istead of PostgreSQL
54
+ --with-timeout=<seconds>
55
+
56
+ Sets the timeout for each function call. (default: none)
45
57
58
+ --with-main-safe-level
46
59
47
- * Example usage*
60
+ Lowers the safe level which the main thread waiting for timeouts is
61
+ run under. (default: 3) This option is read only when --with-timeout
62
+ is given.
48
63
49
- ruby extconf.rb --with-pg-config=/usr/local/bin/pg_config
50
64
51
65
Test (and examples)
52
66
-------------------
53
67
54
- WARNING : if plruby was compiled without --disable-conversion
55
- you must ** FIRST** run ` make install ` before ` make test `
68
+ WARNING: if plruby was compiled without --disable-conversion you
69
+ must ** FIRST** run ` make install ` before ` make test ` .
56
70
57
71
make test
58
72
59
- this will run the 2 commands :
73
+ This will run the following two commands :
60
74
61
75
( cd test/plt; ./runtest )
62
76
( cd test/plp; ./runtest )
63
77
64
- The database ` plruby_test ` is created and then destroyed. Don't use it if
65
- such a database exist on your system .
78
+ The database ` plruby_test ` is created and then destroyed. Don't use
79
+ it if you have such a database .
66
80
67
- Now create the PL/Ruby language in PostgreSQL
81
+ Now you are ready to create the PL/Ruby language in PostgreSQL.
68
82
69
83
Since the ` pg_language ` system catalog is private to each database,
70
- the new language can be created only for individual databases,
71
- or in the template1 database. In the latter case, it is
72
- automatically available in all newly created databases.
84
+ the new language can be created only for individual databases, or in
85
+ the template1 database. In the latter case, it is automatically
86
+ available in all newly created databases.
73
87
74
88
The commands to create the new language are:
75
89
@@ -107,5 +121,5 @@ Copying
107
121
108
122
* * *
109
123
110
- Guy Decoux < ts@moulon.inra.fr > (original author, deceased in July 2008)
124
+ Guy Decoux < ts@moulon.inra.fr > (original author, deceased in July 2008)
111
125
Akinori MUSHA < knu@idaemons.org > (current maintainer)
0 commit comments