exchange/src/exchangedb/spi
2023-04-04 17:26:51 +02:00
..
own_test.c -spelling, typos, indentation 2023-04-04 17:26:51 +02:00
own_test.control New spi files 2023-03-27 09:55:00 -04:00
own_test.sql New spi files 2023-03-27 09:55:00 -04:00
perf_own_test.c New spi files 2023-03-27 09:55:00 -04:00
pg_aggregate.c -spelling, typos, indentation 2023-04-04 17:26:51 +02:00
README.md New spi files 2023-03-27 09:55:00 -04:00

                       Server Programming Interface (SPI)

Dependencies:

These are the direct dependencies for running SPI functions :

Step 1: "postgresql-server-dev-" -- sudo apt-get install libpq-dev postgresql-server-dev-13

Step 2: To solve gssapi/gssapi.h, use the following command: apt-get install libkrb5-dev

Step 3: apt-cache search openssl | grep -- -dev apt-get install libssl-dev

Compile:

gcc -shared -o <file_name>.so <file_name>.c

CALL FUNCTIONS:

psql -c "SELECT <function_name>();" db_name

Structure:

usr/include/postgres/

usr/include/postgres/13/server/

make make install psql