From cf2e37cd876651e799893e8fe5babb51a9e12dd7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 27 Nov 2022 21:21:04 +0100 Subject: more work on SQL refactoring --- src/exchangedb/pg_create_tables.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/exchangedb/pg_create_tables.h') diff --git a/src/exchangedb/pg_create_tables.h b/src/exchangedb/pg_create_tables.h index 7fb7a56fa..58f5aae73 100644 --- a/src/exchangedb/pg_create_tables.h +++ b/src/exchangedb/pg_create_tables.h @@ -29,9 +29,16 @@ * Create the necessary tables if they are not present * * @param cls the `struct PostgresClosure` with the plugin-specific state + * @param support_partitions true to enable partitioning support (disables foreign key constraints) + * @param num_partitions number of partitions to create, + * (0 to not actually use partitions, 1 to only + * setup a default partition, >1 for real partitions) * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure */ enum GNUNET_GenericReturnValue -TEH_PG_create_tables (void *cls); +TEH_PG_create_tables (void *cls, + bool support_partitions, + uint32_t num_partitions); + #endif -- cgit v1.2.3