From 6af9fd66fbfe30dba89bc530a0a272db2d23a17e Mon Sep 17 00:00:00 2001 From: Joseph Date: Mon, 27 Mar 2023 08:57:29 -0400 Subject: New spi files --- src/exchangedb/spi/own_test.c | 8 ++++++++ src/exchangedb/spi/own_test.so | Bin 76824 -> 76824 bytes src/exchangedb/spi/own_test.sql | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src/exchangedb/spi') diff --git a/src/exchangedb/spi/own_test.c b/src/exchangedb/spi/own_test.c index 04798bfa..10af02e3 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 fda70c9d..09ae9959 100755 Binary files a/src/exchangedb/spi/own_test.so and b/src/exchangedb/spi/own_test.so differ diff --git a/src/exchangedb/spi/own_test.sql b/src/exchangedb/spi/own_test.sql index 369c56a6..9fe42c0a 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( -- cgit v1.2.3