aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorJoseph <Joseph.xu@efrei.net>2023-03-27 08:57:29 -0400
committerJoseph <Joseph.xu@efrei.net>2023-03-27 09:55:00 -0400
commit6af9fd66fbfe30dba89bc530a0a272db2d23a17e (patch)
treead4fe1c182d82fed47040aab654b5f5e123f8945 /src/exchangedb
parentcb87b6f646888bf62af31e8b23bb642de9a57344 (diff)
New spi files
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/.gitignore6
-rw-r--r--src/exchangedb/spi/own_test.c8
-rwxr-xr-xsrc/exchangedb/spi/own_test.sobin76824 -> 76824 bytes
-rw-r--r--src/exchangedb/spi/own_test.sql2
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
index fda70c9d0..09ae99597 100755
--- a/src/exchangedb/spi/own_test.so
+++ b/src/exchangedb/spi/own_test.so
Binary files differ
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(