Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteF committed Jan 9, 2025
1 parent 68bb7a6 commit e0135e8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions include/pgduckdb/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::mutex> 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<std::mutex> lock(GlobalProcessLock::GetLock()); \
if (errstart(elevel, domain)) \
__VA_ARGS__, errfinish(__FILE__, __LINE__, __func__); \
} \
} while (0)

#define TEXTDOMAIN NULL

Expand Down
2 changes: 1 addition & 1 deletion include/pgduckdb/pgduckdb_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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__<decltype(&FUNC), &FUNC>(__func__, ##__VA_ARGS__)

duckdb::unique_ptr<duckdb::QueryResult> DuckDBQueryOrThrow(duckdb::ClientContext &context, const std::string &query);
Expand Down
2 changes: 1 addition & 1 deletion include/pgduckdb/scan/postgres_table_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e0135e8

Please sign in to comment.