aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/spi/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/spi/README.md')
-rw-r--r--src/exchangedb/spi/README.md48
1 files changed, 22 insertions, 26 deletions
diff --git a/src/exchangedb/spi/README.md b/src/exchangedb/spi/README.md
index ec6a9016a..47eb37b94 100644
--- a/src/exchangedb/spi/README.md
+++ b/src/exchangedb/spi/README.md
@@ -1,41 +1,37 @@
- Server Programming Interface (SPI)
+ Server Programming Interface (SPI)
-Dependencies:
-=============
+Overview
+========
-These are the direct dependencies for running SPI functions :
+This folder contains results from an experiment by Joseph Xu
+to use the Postgres SPI. They are not currently used at all
+by the GNU Taler exchange.
+Dependencies
+============
-Step 1:
-"postgresql-server-dev-<depends on your postgresql version>"
--- sudo apt-get install libpq-dev postgresql-server-dev-13
+These are the direct dependencies for compiling the code:
-Step 2:
-To solve gssapi/gssapi.h, use the following command:
-apt-get install libkrb5-dev
+# apt-get install libpq-dev postgresql-server-dev-13
+# apt-get install libkrb5-dev
+# apt-get install libssl-dev
-Step 3:
-apt-cache search openssl | grep -- -dev
-apt-get install libssl-dev
-Compile:
-========
-gcc -shared -o <file_name>.so <file_name>.c
+Compilation
+===========
-CALL FUNCTIONS:
-===============
+$ make
-psql -c "SELECT <function_name>();" db_name
+Loading functions
+=================
-Structure:
-==========
+# make install
+$ psql "$DB_NAME" < own_test.sql
-usr/include/postgres/
-usr/include/postgres/13/server/
+Calling functions
+==================
-make
-make install
-psql \ No newline at end of file
+$ psql -c "SELECT $FUNCTION_NAME($ARGS);" "$DB_NAME"