Postgresql-odbc [new] May 2026

curr = curr->next;

// In convert.c SQLRETURN convert_jsonb_to_c( const char *value, SQLSMALLINT target_type, void *target_value, SQLLEN *target_len) postgresql-odbc

I'll help you develop a feature for the PostgreSQL ODBC driver ( psqlodbc ). Since you haven't specified the exact feature, I'll provide a comprehensive guide for implementing a common feature, and you can let me know if you need something specific. 1. Adding a New Connection Parameter Here's how to add a new ODBC connection parameter: curr = curr->next; // In convert

// Add new parameter handling if (strcasecmp(keyword, "MyNewFeature") == 0) strncpy(ci->my_new_param, value, sizeof(ci->my_new_param) - 1); ci->my_new_feature_enabled = atoi(value); Adding a New Connection Parameter Here's how to

// Validate parameters if (!Parameter Adding support for a PostgreSQL data type (e.g., JSONB with better handling):

return SQL_SUCCESS; // In performance.c - new file for performance features typedef struct uint64_t query_start_time; uint64_t query_end_time; char last_query[4096]; int slow_query_threshold_ms; PerformanceMetrics; void start_query_trace(StatementInfo_ *stmt, const char *query) if (stmt->perf_metrics) stmt->perf_metrics->query_start_time = get_current_time_ms(); strncpy(stmt->perf_metrics->last_query, query, sizeof(stmt->perf_metrics->last_query) - 1);