]> git.evergreen-ils.org Git - working/Evergreen.git/commit
A tested version of the PostgreSQL extension.
authorSwenyu Duan <dsy@sina.com>
Mon, 4 Jun 2012 02:45:21 +0000 (22:45 -0400)
committerSwenyu Duan <dsy@sina.com>
Sat, 21 Jul 2012 02:29:10 +0000 (22:29 -0400)
commitb25b3882cfdca920426627fabdd145a2e7293c2a
tree237d1ae6916e380a4c98e489ec31db6a63d9dbe8
parent20614d25425ea9defb1678456e8ba46a744a75dc
A tested version of the PostgreSQL extension.
Now the extension contains two C implemented functions
(naco_normalize and search_normalize). To add the extension to PostgreSQL,
a upgrade sql script is included in the
Open-ILS/src/sql/Pg/upgrage/XXXX.schema.create_extension.sql. This script
drop the plperlu function of naco_nomalize and search_normalize and create
a extension which will add two C version of the two functions.
The extension depend on the ICU4C lib. The environment variable ICU_DATA must
be set up to the right ICU data path before you use the extension.
The extension has been tested in debian and windows environment(50 cases in
/Open-ILS/tests/naco_normalize.t has passed). The source file in this extension
is debian/linux version of the extension while the windows version has some
difference.

Signed-off-by: Swenyu Duan <dsy@sina.com>
Open-ILS/src/sql/Pg/extensions/c_functions--1.0.sql
Open-ILS/src/sql/Pg/extensions/makefile
Open-ILS/src/sql/Pg/extensions/normalize.functions_in_c.c
Open-ILS/src/sql/Pg/extensions/xml.functions_in_c.c [new file with mode: 0755]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.create_extension.sql [new file with mode: 0644]
Open-ILS/tests/naco_normalize.t