Skip to content

Commit 1f54eea

Browse files
committed
Enhance the document and fix minor nits.
1 parent b444ab2 commit 1f54eea

File tree

1 file changed

+35
-21
lines changed

1 file changed

+35
-21
lines changed

README.markdown

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Prerequisite
1515
All PostgreSQL headers need to be installed. Command (see `INSTALL` in the
1616
directory postgresql-7.x.y)
1717

18-
make install-all-headers
18+
make install-all-headers
1919

2020
Installation
2121
------------
@@ -24,52 +24,66 @@ Installation
2424
make
2525
make install
2626

27-
You may need to specify :
27+
You may need to specify some of the following extconf.rb options:
2828

2929
--with-pg-config=<location of the pg_config command of PostgreSQL>
3030

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+
3138
--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.
3442

3543
--with-suffix=<suffix to add>
3644

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`.
3848

39-
ruby extconf.rb --with-suffix=_geo
49+
--with-safe-level
4050

41-
will create `plruby_geo.so`
51+
Lowers the safe level which the plruby functions are run under.
52+
(default: 12; meaning the maximum)
4253

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)
4557

58+
--with-main-safe-level
4659

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.
4863

49-
ruby extconf.rb --with-pg-config=/usr/local/bin/pg_config
5064

5165
Test (and examples)
5266
-------------------
5367

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`.
5670

5771
make test
5872

59-
this will run the 2 commands :
73+
This will run the following two commands:
6074

6175
( cd test/plt; ./runtest )
6276
( cd test/plp; ./runtest )
6377

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.
6680

67-
Now create the PL/Ruby language in PostgreSQL
81+
Now you are ready to create the PL/Ruby language in PostgreSQL.
6882

6983
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.
7387

7488
The commands to create the new language are:
7589

@@ -107,5 +121,5 @@ Copying
107121

108122
* * *
109123

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)
111125
Akinori MUSHA <knu@idaemons.org> (current maintainer)

0 commit comments

Comments
 (0)