summaryrefslogtreecommitdiff
path: root/src/exchangedb/spi/README.md
blob: 47eb37b94858c3d599a241c8e01928c18ffde996 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
                Server Programming Interface (SPI)


Overview
========

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
============

These are the direct dependencies for compiling the code:

# apt-get install libpq-dev postgresql-server-dev-13
# apt-get install libkrb5-dev
# apt-get install libssl-dev


Compilation
===========

$ make

Loading functions
=================

# make install
$ psql "$DB_NAME" < own_test.sql


Calling functions
==================

$ psql -c "SELECT $FUNCTION_NAME($ARGS);" "$DB_NAME"