aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-12-08 18:22:07 +0100
committerChristian Grothoff <christian@grothoff.org>2021-12-08 18:22:07 +0100
commit21951eacc23611464ada18c99dfb4633b9fcc1b0 (patch)
tree1ce576269b53232d549d079122d2890988ae3f97 /src/exchangedb/plugin_exchangedb_postgres.c
parent7e84b5570adeaa027f8c7861caf6af7943edcd0b (diff)
quick hack to see about improving melt serialization failures
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index 4f0bc243..33383df5 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 */