commit 6af9fd66fbfe30dba89bc530a0a272db2d23a17e
parent cb87b6f646888bf62af31e8b23bb642de9a57344
Author: Joseph <Joseph.xu@efrei.net>
Date: Mon, 27 Mar 2023 08:57:29 -0400
New spi files
Diffstat:
4 files changed, 16 insertions(+), 1 deletion(-)
diff --git 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
@@ -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 differ.
diff --git 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(