diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-08 18:22:07 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-08 18:22:07 +0100 |
commit | 21951eacc23611464ada18c99dfb4633b9fcc1b0 (patch) | |
tree | 1ce576269b53232d549d079122d2890988ae3f97 /src/exchangedb | |
parent | 7e84b5570adeaa027f8c7861caf6af7943edcd0b (diff) | |
download | exchange-21951eacc23611464ada18c99dfb4633b9fcc1b0.tar.gz exchange-21951eacc23611464ada18c99dfb4633b9fcc1b0.tar.bz2 exchange-21951eacc23611464ada18c99dfb4633b9fcc1b0.zip |
quick hack to see about improving melt serialization failures
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 4f0bc243d..33383df59 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -798,7 +798,8 @@ prepare_statements (struct PostgresClosure *pg) ",noreveal_index " ") SELECT $1, known_coin_id, $3, $4, $5, $6" " FROM known_coins" - " WHERE coin_pub=$2", + " WHERE coin_pub=$2" + " ON CONFLICT DO NOTHING", 6), /* Used in #postgres_get_melt() to fetch high-level information about a melt operation */ |