[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 52/124: drop functions after use
From: |
gnunet |
Subject: |
[taler-exchange] 52/124: drop functions after use |
Date: |
Tue, 17 Sep 2024 21:27:44 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to tag cg-aml-branch-compiles
in repository exchange.
commit afb8be370f353c5f1ab2ef166279d2fb8cc69860
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jun 3 21:17:47 2024 +0200
drop functions after use
---
src/exchangedb/exchange_do_create_tables.sql | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/exchangedb/exchange_do_create_tables.sql
b/src/exchangedb/exchange_do_create_tables.sql
index 938af2b17..58d28ca14 100644
--- a/src/exchangedb/exchange_do_create_tables.sql
+++ b/src/exchangedb/exchange_do_create_tables.sql
@@ -100,7 +100,10 @@ BEGIN
,rec.name
);
END IF;
-
+ EXECUTE FORMAT(
+ 'DROP FUNCTION exchange.create_table_%s'::text
+ ,rec.name
+ );
-- "alter" actions apply to master and partitions
WHEN 'alter'
THEN
@@ -109,6 +112,10 @@ BEGIN
'SELECT exchange.alter_table_%s ()'::text
,rec.name
);
+ EXECUTE FORMAT(
+ 'DROP FUNCTION exchange.alter_table_%s'::text
+ ,rec.name
+ );
-- Constrain action apply to master OR each partition
WHEN 'constrain'
THEN
@@ -141,6 +148,10 @@ BEGIN
END LOOP;
END IF;
END IF;
+ EXECUTE FORMAT(
+ 'DROP FUNCTION exchange.constrain_table_%s'::text
+ ,rec.name
+ );
-- Foreign actions only apply if partitioning is off
WHEN 'foreign'
THEN
@@ -153,12 +164,20 @@ BEGIN
,NULL
);
END IF;
+ EXECUTE FORMAT(
+ 'DROP FUNCTION exchange.foreign_table_%s'::text
+ ,rec.name
+ );
WHEN 'master'
THEN
EXECUTE FORMAT(
'SELECT exchange.master_table_%s ()'::text
,rec.name
);
+ EXECUTE FORMAT(
+ 'DROP FUNCTION exchange.master_table_%s'::text
+ ,rec.name
+ );
ELSE
ASSERT FALSE, 'unsupported action type: ' || rec.action;
END CASE; -- END CASE (rec.action)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-exchange] 85/124: set timeout also for curl request, (continued)
- [taler-exchange] 85/124: set timeout also for curl request, gnunet, 2024/09/17
- [taler-exchange] 105/124: fix kyc trigger SQL logic, gnunet, 2024/09/17
- [taler-exchange] 100/124: more parsing, config template, gnunet, 2024/09/17
- [taler-exchange] 110/124: add new CMDs for KYC info+start, gnunet, 2024/09/17
- [taler-exchange] 111/124: -fix bugs, gnunet, 2024/09/17
- [taler-exchange] 114/124: fix FTBFS, gnunet, 2024/09/17
- [taler-exchange] 101/124: add some first KYC commands for testing, gnunet, 2024/09/17
- [taler-exchange] 121/124: first test passes, party, gnunet, 2024/09/17
- [taler-exchange] 68/124: add kyc-upload logic to demultiplexer, gnunet, 2024/09/17
- [taler-exchange] 58/124: -more work on add decision, gnunet, 2024/09/17
- [taler-exchange] 52/124: drop functions after use,
gnunet <=
- [taler-exchange] 103/124: add logic to parse new_check field, gnunet, 2024/09/17
- [taler-exchange] 73/124: init kyc-info subsystem, gnunet, 2024/09/17
- [taler-exchange] 108/124: do not pass timeout in test, gnunet, 2024/09/17
- [taler-exchange] 98/124: add logic to parse measures from configuration, gnunet, 2024/09/17
- [taler-exchange] 113/124: wip, gnunet, 2024/09/17
- [taler-exchange] 107/124: -fix small bugs, gnunet, 2024/09/17