diff options
author | Joseph <Joseph.xu@efrei.net> | 2023-03-27 08:57:29 -0400 |
---|---|---|
committer | Joseph <Joseph.xu@efrei.net> | 2023-03-27 09:55:00 -0400 |
commit | 6af9fd66fbfe30dba89bc530a0a272db2d23a17e (patch) | |
tree | ad4fe1c182d82fed47040aab654b5f5e123f8945 /src/exchangedb | |
parent | cb87b6f646888bf62af31e8b23bb642de9a57344 (diff) |
New spi files
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/.gitignore | 6 | ||||
-rw-r--r-- | src/exchangedb/spi/own_test.c | 8 | ||||
-rwxr-xr-x | src/exchangedb/spi/own_test.so | bin | 76824 -> 76824 bytes | |||
-rw-r--r-- | src/exchangedb/spi/own_test.sql | 2 |
4 files changed, 15 insertions, 1 deletions
diff --git a/src/exchangedb/.gitignore b/src/exchangedb/.gitignore index 264217a3d..fa833d81f 100644 --- a/src/exchangedb/.gitignore +++ b/src/exchangedb/.gitignore @@ -7,3 +7,9 @@ perf_select_refunds_by_coin-postgres exchange-0002.sql procedures.sql exchange-0003.sql +perf-exchangedb-reserves-in-insert-postgres +test-exchangedb-batch-reserves-in-insert-postgres +test-exchangedb-by-j-postgres +test-exchangedb-populate-link-data-postgres +test-exchangedb-populate-ready-deposit-postgres +test-exchangedb-populate-select-refunds-by-coin-postgres
\ No newline at end of file diff --git a/src/exchangedb/spi/own_test.c b/src/exchangedb/spi/own_test.c index 04798bfa7..10af02e31 100644 --- a/src/exchangedb/spi/own_test.c +++ b/src/exchangedb/spi/own_test.c @@ -530,6 +530,11 @@ pg_spi_update_y(PG_FUNCTION_ARGS) PG_RETURN_VOID(); } + + + + + Datum pg_spi_prepare_update(PG_FUNCTION_ARGS) { @@ -580,6 +585,9 @@ void _PG_fini(void) */ + + + Datum pg_spi_get_dep_ref_fees (PG_FUNCTION_ARGS) { /* Define plan to save */ diff --git a/src/exchangedb/spi/own_test.so b/src/exchangedb/spi/own_test.so Binary files differindex fda70c9d0..09ae99597 100755 --- a/src/exchangedb/spi/own_test.so +++ b/src/exchangedb/spi/own_test.so diff --git a/src/exchangedb/spi/own_test.sql b/src/exchangedb/spi/own_test.sql index 369c56a60..9fe42c0a4 100644 --- a/src/exchangedb/spi/own_test.sql +++ b/src/exchangedb/spi/own_test.sql @@ -137,7 +137,7 @@ CREATE OR REPLACE FUNCTION pg_spi_get_dep_ref_fees( ,IN wtid BYTEA ) RETURNS VOID - LANGUAGE c COST 100 + LANGUAGE c VOLATILE COST 100 AS '$libdir/own_test', 'pg_spi_get_dep_ref_fees'; CREATE OR REPLACE FUNCTION update_pg_spi_get_dep_ref_fees( |