From 6af9fd66fbfe30dba89bc530a0a272db2d23a17e Mon Sep 17 00:00:00 2001 From: Joseph Date: Mon, 27 Mar 2023 08:57:29 -0400 Subject: [PATCH] New spi files --- src/exchangedb/.gitignore | 6 ++++++ src/exchangedb/spi/own_test.c | 8 ++++++++ src/exchangedb/spi/own_test.so | Bin 76824 -> 76824 bytes src/exchangedb/spi/own_test.sql | 2 +- 4 files changed, 15 insertions(+), 1 deletion(-) 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 fda70c9d0896756a7915d4b81b1cab58fbc661eb..09ae99597ba0f40cd2dcde4e7cea30fd6f6eccc8 100755 GIT binary patch delta 1618 zcmXw33rt&87(VCR4k)FhuuDsM6;|$Tq2tkQfn+czjV2i5g35$VCRgpqMBWrAkI{mQ z8aJopL_6oEWb>76PDViu#yt#1qmE<`6Ie{PB{~*DwmILMF@9$kZt{Ki{@?%KbN+MA zfBt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h{0zG%P6oCVj}wEZdM?!Y46PAIyTVg=baE-cpw2mk46Dv9W~Q5u#rt_@o~BF2rs?{c9=2 zGClG-GWiKmW0pbOp-0Zf6LJYqd&Tch>5=is=O(t;vlB$MFiV}oR(Qhq!g_kaD09Jh zX2IAhj9m-HcOtA@H`F;9Mul!DiG(Br>I*`w)WvoP&4BwIGsI_^;ZJO>)N`}L?GocW z#|%rVR|us)?5{Gt&zR8EHMVIgQ$fFpdN*v*6D-fCKDn9*>x55gw}Is zZ4qjHN38}vUF%TVSjrS?Ab=Ar0@Poz!L*(KQJaH0x7TUljyf+Y`~SVic!%v=OD163yjE3Uw&?#BY@d1e$j)F!^SM5qg@BBhJ$1~B4VfS#RAl0_f64q+C^wW8nfEo}<5^WAM4c%sdV zUiB}&oqT(HIr`a|c8#i0=iV^ODrT{+%Wg5Y-oR?a4)&cYTx?(pKO2_wEQ{@^K$|~_ zg{iG9SxmhbGqwPzybz%ooJM57jl~^A=tCKVtO4BjA&zFUI59HoDRbWzjmORm=jUzB zJtX`~`MO9k8ux*S2EG>YqH$X~HE>I(7w!8!d>8WAE-%`8VV6ezQQkG>pwrPk16hew z;XNPzOp~L*q1jk|X4J?l#$5DV^rbQHwv!{tblgT~dvS0pX=(3AxwM#8_Wmwj=X!l! GI`co=5o%um 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(