summaryrefslogtreecommitdiff
path: root/src/mintdb/plugin_mintdb_postgres.c
diff options
context:
space:
mode:
authorFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-07-31 15:49:40 +0200
committerFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-07-31 15:49:40 +0200
commit48d08a4ddad16bdce6e4cf1b153c21efeb2cd6c8 (patch)
treef2bc8077dc8b7aea2b2aa827b5511d1ba447d480 /src/mintdb/plugin_mintdb_postgres.c
parentc6d7c6adb2075422087f8f6b1159f28a00bab276 (diff)
downloadexchange-48d08a4ddad16bdce6e4cf1b153c21efeb2cd6c8.tar.gz
exchange-48d08a4ddad16bdce6e4cf1b153c21efeb2cd6c8.tar.bz2
exchange-48d08a4ddad16bdce6e4cf1b153c21efeb2cd6c8.zip
index for reserves table
Diffstat (limited to 'src/mintdb/plugin_mintdb_postgres.c')
-rw-r--r--src/mintdb/plugin_mintdb_postgres.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
index 20d65bc92..163420b2e 100644
--- a/src/mintdb/plugin_mintdb_postgres.c
+++ b/src/mintdb/plugin_mintdb_postgres.c
@@ -244,6 +244,9 @@ postgres_create_tables (void *cls,
",current_balance_curr VARCHAR("TALER_CURRENCY_LEN_STR") NOT NULL"
",expiration_date INT8 NOT NULL"
")");
+ /* index on reserves table */
+ SQLEXEC_INDEX ("CREATE INDEX reserves_reserve_pub_index ON "
+ "reserves (reserve_pub)");
/* reserves_in table collects the transactions which transfer funds
into the reserve. The rows of this table correspond to each
incoming transaction. */