diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-11-24 12:23:55 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-11-24 12:23:55 +0100 |
commit | c2bb6551cf453115884d35e2c440fc44797addf2 (patch) | |
tree | eefaa1c62fb7c9556ad31b9766bfdcb04d875ea8 /src/exchangedb/shard-0002-part.sql | |
parent | 0429b0cede718e3306e088993023dbe3b47c3382 (diff) |
starting point for NG exchange DB schema
Diffstat (limited to 'src/exchangedb/shard-0002-part.sql')
-rw-r--r-- | src/exchangedb/shard-0002-part.sql | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/exchangedb/shard-0002-part.sql b/src/exchangedb/shard-0002-part.sql new file mode 100644 index 000000000..439d672a6 --- /dev/null +++ b/src/exchangedb/shard-0002-part.sql @@ -0,0 +1,31 @@ +-- +-- This file is part of TALER +-- Copyright (C) 2014--2022 Taler Systems SA +-- +-- TALER is free software; you can redistribute it and/or modify it under the +-- terms of the GNU General Public License as published by the Free Software +-- Foundation; either version 3, or (at your option) any later version. +-- +-- TALER is distributed in the hope that it will be useful, but WITHOUT ANY +-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR +-- A PARTICULAR PURPOSE. See the GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License along with +-- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> +-- + +CREATE OR REPLACE FUNCTION setup_shard2( + shard_idx INTEGER +) +RETURNS VOID +LANGUAGE plpgsql +AS $$ +DECLARE + shard_suffix VARCHAR; +BEGIN + + shard_suffix = shard_idx::varchar; + + PERFORM create_table_wire_targets(shard_suffix); +END +$$; |