From e0135e8423335cd6fef23b9f003e918c8ce9d893 Mon Sep 17 00:00:00 2001 From: Jelte Fennema-Nio Date: Tue, 7 Jan 2025 18:03:36 +0100 Subject: [PATCH] Fix formatting --- include/pgduckdb/logger.hpp | 20 +++++++++---------- include/pgduckdb/pgduckdb_utils.hpp | 2 +- .../pgduckdb/scan/postgres_table_reader.hpp | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/pgduckdb/logger.hpp b/include/pgduckdb/logger.hpp index e6a108fe..67ae9ce8 100644 --- a/include/pgduckdb/logger.hpp +++ b/include/pgduckdb/logger.hpp @@ -41,16 +41,16 @@ namespace pgduckdb { #define pd_prevent_errno_in_scope() #endif -#define pd_ereport_domain(elevel, domain, ...) \ - do { \ - pd_prevent_errno_in_scope(); \ - static_assert(elevel >= DEBUG5 && elevel <= WARNING_CLIENT_ONLY, "Invalid error level"); \ - if (message_level_is_interesting(elevel)) { \ - std::lock_guard lock(GlobalProcessLock::GetLock()); \ - if (errstart(elevel, domain)) \ - __VA_ARGS__, errfinish(__FILE__, __LINE__, __func__); \ - } \ - } while(0) +#define pd_ereport_domain(elevel, domain, ...) \ + do { \ + pd_prevent_errno_in_scope(); \ + static_assert(elevel >= DEBUG5 && elevel <= WARNING_CLIENT_ONLY, "Invalid error level"); \ + if (message_level_is_interesting(elevel)) { \ + std::lock_guard lock(GlobalProcessLock::GetLock()); \ + if (errstart(elevel, domain)) \ + __VA_ARGS__, errfinish(__FILE__, __LINE__, __func__); \ + } \ + } while (0) #define TEXTDOMAIN NULL diff --git a/include/pgduckdb/pgduckdb_utils.hpp b/include/pgduckdb/pgduckdb_utils.hpp index 192865ae..dfe74c1a 100644 --- a/include/pgduckdb/pgduckdb_utils.hpp +++ b/include/pgduckdb/pgduckdb_utils.hpp @@ -101,7 +101,7 @@ __PostgresFunctionGuard__(const char *func_name, FuncArgs... args) { throw duckdb::Exception(duckdb::ExceptionType::EXECUTOR, message); } -#define PostgresFunctionGuard(FUNC, ...) \ +#define PostgresFunctionGuard(FUNC, ...) \ pgduckdb::__PostgresFunctionGuard__(__func__, ##__VA_ARGS__) duckdb::unique_ptr DuckDBQueryOrThrow(duckdb::ClientContext &context, const std::string &query); diff --git a/include/pgduckdb/scan/postgres_table_reader.hpp b/include/pgduckdb/scan/postgres_table_reader.hpp index 76dfbd67..f4424bf1 100644 --- a/include/pgduckdb/scan/postgres_table_reader.hpp +++ b/include/pgduckdb/scan/postgres_table_reader.hpp @@ -20,7 +20,7 @@ class PostgresTableReader { private: MinimalTuple GetNextWorkerTuple(); int ParallelWorkerNumber(Cardinality cardinality); - const char * ExplainScanPlan(QueryDesc *query_desc); + const char *ExplainScanPlan(QueryDesc *query_desc); bool CanTableScanRunInParallel(Plan *plan); bool MarkPlanParallelAware(Plan *plan);