diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-04-16 22:07:36 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-04-16 22:07:36 +0200 |
commit | 8463572beae5c5e8df59e12107a8cecee3ea8680 (patch) | |
tree | ffb3c7560f5d778f786ed55e4c8529dd72e82274 /src/exchangedb/spi/README.md | |
parent | ade7586c3069b57a33ca94da291f64e6ee27ea44 (diff) | |
download | exchange-8463572beae5c5e8df59e12107a8cecee3ea8680.tar.xz |
fix SPI build
Diffstat (limited to 'src/exchangedb/spi/README.md')
-rw-r--r-- | src/exchangedb/spi/README.md | 48 |
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" |