summaryrefslogtreecommitdiff
path: root/src/backenddb/plugin_merchantdb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-07-14 05:34:11 +0200
committerChristian Grothoff <christian@grothoff.org>2023-07-14 05:34:11 +0200
commit124add9b872df20a706b53ee13c80ebe68fc7715 (patch)
tree5abbccde9a3fe2893dbde919761a994a9195d7e0 /src/backenddb/plugin_merchantdb_postgres.c
parent86f9c6823ec9d92dfbbbc1220655c91b129020cf (diff)
downloadmerchant-124add9b872df20a706b53ee13c80ebe68fc7715.tar.gz
merchant-124add9b872df20a706b53ee13c80ebe68fc7715.tar.bz2
merchant-124add9b872df20a706b53ee13c80ebe68fc7715.zip
do all DB operations from downloading /keys in one shot
Diffstat (limited to 'src/backenddb/plugin_merchantdb_postgres.c')
-rw-r--r--src/backenddb/plugin_merchantdb_postgres.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
index 975fae93..f129b90b 100644
--- a/src/backenddb/plugin_merchantdb_postgres.c
+++ b/src/backenddb/plugin_merchantdb_postgres.c
@@ -5180,7 +5180,8 @@ postgres_connect (void *cls)
",end_date"
",master_sig)"
" VALUES "
- "($1, $2, $3, $4, $5, $6, $7, $8, $9)"),
+ "($1, $2, $3, $4, $5, $6, $7, $8, $9)"
+ " ON CONFLICT DO NOTHING"),
/* For postgres_insert_reserve() */
GNUNET_PQ_make_prepare ("insert_reserve",
"INSERT INTO merchant_reward_reserves"