Commit Graph

4875 Commits (ade0130e67e88b9052d0dc4e76d48d98d3328485)

Author SHA1 Message Date
Rene Cannao 60d4a7378c Implement automatic MCP server start/stop and add environment variable support
3 months ago
Rene Cannao 5a85ef04f6 Fix MCP variables persistence and add DISK command support
3 months ago
Rene Cannao 4aedacd83b [skip-ci] Remove deprecated read_only_action implementations from MySQL and PgSQL HostGroups managers
3 months ago
Rene Cannao b70b07ead7 Skip checksum generation for MCP until feature is complete
3 months ago
Rene Cannao 2e7109d894 Fix lock ordering in flush_mcp_variables___database_to_runtime
3 months ago
Rene Cannao 2874c9ad54 Fix flush_mcp_variables___database_to_runtime to populate runtime_global_variables
3 months ago
Rene Cannao ef07831780 Add MCP module to admin bootstrap and SHOW MCP VARIABLES command
3 months ago
Rene Cannao 28742554b5 Use relative catalog path instead of absolute path
3 months ago
Rene Cannao 06aa6d6ef7 Add comprehensive Doxygen documentation for connection pool
3 months ago
Rene Cannao 4eab519848 Implement MySQL connection pool for MySQL_Tool_Handler
3 months ago
Rene Cannao 221ff23991 Add MySQL exploration MCP tools with SQLite catalog
3 months ago
Rene Cannao b032c3f690 Fix boolean literal handling in SET command for MCP variables
3 months ago
Rene Cannao 81c53896bc Fix MCP module TAP test failures
3 months ago
Rene Cannao 245e61ee86 Make MCP_Threads_Handler a standalone independent class
3 months ago
Rene Cannao 87fff9e046 Add MCP (Model Context Protocol) module skeleton
3 months ago
Rene Cannao 33a87c66a7 Fix critical issues identified by gemini-code-assist
3 months ago
Rene Cannao db2485be37 Add comprehensive doxygen documentation to GenAI async module
3 months ago
Rene Cannao 8405027124 Integrate GenAI async event handling into main MySQL session loop
3 months ago
Rene Cannao 0ff2e38e22 Implement async GenAI module with socketpair-based non-blocking architecture
4 months ago
Rene Cannao bbad8ab4f3 Fix GenAI variable naming and add comprehensive TAP tests
4 months ago
Rene Cannao a82f58e22b Refactor GenAI module for autonomous JSON query processing
4 months ago
Rene Cannao cc3e97b7b8 Merge EMBED and RERANK into unified GENAI: query syntax
4 months ago
Rene Cannao 39939f598b Add experimental GenAI RERANK: query support for MySQL
4 months ago
Rene Cannao 253591d262 Add experimental GenAI EMBED: query support for MySQL
4 months ago
Rene Cannao b5598d8d53 Add comprehensive ProxySQL_Poll usage documentation throughout codebase
4 months ago
René Cannaò 9c3f6b0aa5
Merge pull request #5286 from sysown/v3.0-poll_doc
4 months ago
Rene Cannao 0699c7ba11 Add comprehensive ProxySQL_Poll usage documentation throughout codebase
4 months ago
René Cannaò e6cbdcad7f
Merge pull request #5276 from sysown/v3.0_fork
4 months ago
Rene Cannao 1da9e384d2 Add poll() fallback for GenAI module when epoll is not available
4 months ago
Rene Cannao 960704066d Implement real GenAI module with embedding and rerank support
4 months ago
Rahim Kanji 860657f8fa use_ssl value from pgsql_users is properly assigned to the session
4 months ago
Rahim Kanji 556b1023c4 Removed change_user_auth_switch flag
4 months ago
Rene Cannao 59f0b8b1fa Fix GenAI module admin commands - correct character check
4 months ago
René Cannaò ef872c7f48
Merge pull request #5280 from sysown/v3.0-timezone-parser-fix
4 months ago
René Cannaò 591e1bca6b
Merge pull request #5277 from sysown/v3.0_5272
4 months ago
Rahim Kanji 5a7e7b30e7 Fix extended query Bind handling when a single parameter format is provided
4 months ago
Rene Cannao c476f56f97 Add initial GenAI module placeholder
4 months ago
Rene Cannao 6e9abed581 Fix timezone parsing to support 3-component IANA names and hyphens
4 months ago
Rene Cannao 8c90bda52a Address gemini-code-assist review comments for SSL keylog documentation
4 months ago
Rene Cannao b39e193f4f Fix critical issues in close_all_non_term_fd() per code review
4 months ago
Rene Cannao fc73ec1c50 Code review improvements: Add enum and refactor SELECT VERSION() handling
4 months ago
Rene Cannao 442635b721 Add comprehensive documentation for SSL/TLS key logging feature
4 months ago
Rene Cannao 366164ab26 Fix #5272: Add mysql-select_version_forwarding variable for SELECT VERSION()
4 months ago
Rene Cannao 2448b12a56 Fix critical bugs in close_all_non_term_fd() for fork/exec safety
4 months ago
René Cannaò af23187865
Merge pull request #5270 from sysown/v3.0_restapi_improvement
4 months ago
Rahim Kanji 79df69332d Refactor find_script() to use parameterized prepared statements (via execute_prepared()) for safer SQL execution.
4 months ago
Rahim Kanji 14aef13827 Add method to execute already prepared SQLite3 statements, supporting
4 months ago
Rahim Kanji 01a5b23b22 refactor connection pool put_connection to use mmsd and improve debug handling
4 months ago
Rene Cannao 01d654692d Integrate sqlite-rembed for text embedding generation
4 months ago
Rene Cannao d55947b49f Add comprehensive documentation for sqlite-vec integration
4 months ago
Rene Cannao fbd0d9732b Add sqlite-vec static extension for vector search in ProxySQL
4 months ago
René Cannaò faa64a570d
Merge pull request #5259 from sysown/v3.0_mysql_monitor_cur_cmd_cmnt_fix
4 months ago
Javier Jaramago Fernández 5c8a32a0b0 Merge branch 'v3.0' of github.com:sysown/proxysql into v3.0-handle_unexp_ping
4 months ago
Rahim Kanji 91e20648f2 Fixed an issue where cur_cmd_cmnt was shared across threads
4 months ago
Javier Jaramago Fernández 6fea828e86 Improve logging in unexpected COM_PING packet handling
4 months ago
René Cannaò 88edaac61b
Merge pull request #5258 from sysown/misc251219
4 months ago
René Cannaò 0f7ff1f374
Merge branch 'v3.0' into v3.0_pgsql-query-digest-gen-5253
4 months ago
René Cannaò 2667540fcc
Merge pull request #5237 from sysown/v3.0_pgsql-monitor-sslsupport-5205
4 months ago
Javier Jaramago Fernández d0e88599ee Add special handling for unexpected COM_PING packets
4 months ago
Rene Cannao efe0d4fe61 Add extensive doxygen documentation for vacuum_stats and stats_pgsql_stat_activity
4 months ago
Rahim Kanji 5e75264bb3 Updated TAP test
4 months ago
Rahim Kanji 5b3805ad7a Refactored comment handling
4 months ago
Rahim Kanji e70fcbf021 * Add dedicated handling for double-quoted PostgreSQL identifiers
4 months ago
René Cannaò 6ee087c73c
Merge pull request #5250 from sysown/v3.0-issue5248
4 months ago
Rahim Kanji fd53642f12 Added pgsql-query_digests_stages_test-t to groups.json
4 months ago
Rahim Kanji 39728b2dc8 Add missing pgsql_tokenizer.cpp
4 months ago
Rahim Kanji 42864e8867 Improved Tokenizer for PostgreSQL
4 months ago
Rene Cannao 2987242d4f Fix cache_empty_result=0 not caching non-empty resultsets (issue #5248)
4 months ago
René Cannaò 5a314d2364
Merge pull request #4889 from sysown/v3.0_get_server_version
4 months ago
René Cannaò 8cf3e59ead
Merge pull request #5247 from sysown/v3.0-issue5246
4 months ago
Rene Cannao 0b2bc1bf22 Fix SQL injection vulnerability in Read_Global_Variables_from_configfile
4 months ago
Rahim Kanji fae283cf7e Add SSL and non-SSL connection OK metrics for PostgreSQL monitor connections
5 months ago
Rene Cannao 6c97d3d244 Add extensive Doxygen documentation for ProxySQL_Config and Read_Global_Variables_from_configfile
5 months ago
Rene Cannao 7ebdf561ca Fix automatic prefix stripping to work with libconfig lookup
5 months ago
Rene Cannao b4683569d6 Add automatic prefix stripping for mysql_variables, pgsql_variables, and admin_variables config parsing
5 months ago
Rene Cannao ec1247f2a9 Add Doxygen docs for MySQL_Data_Stream::check_data_flow()
5 months ago
Rene Cannao 4044a40794 Skip bidirectional data check for permanent fast-forward sessions
5 months ago
Rahim Kanji f507903743 Added nested comments support for PostgreSQL
5 months ago
Rahim Kanji 895c814c77 Added utility functions to support pgsql query digest testing
5 months ago
Rahim Kanji 285fb1b4e1 Add PostgreSQL dialect support: dollar-quoted strings, identifier quoting, and dialect-specific comment rules
5 months ago
René Cannaò b73160ef5f
Merge pull request #4901 from sysown/v3.0_wait_timeout
5 months ago
René Cannaò 0d55ab5ea2
Merge branch 'v3.0' into v3.0_get_server_version
5 months ago
Rene Cannao 5a7b22181f Fix metrics collection for wait_timeout counters
5 months ago
René Cannaò 65dbe904f0
Merge pull request #5199 from sysown/v3.0_refactor_monitoring_ping
5 months ago
Rene Cannao fbf5f2d762 Improve wait_timeout warning messages with detailed connection information
5 months ago
Rene Cannao dc4694d656 Refactor idle session scanning and improve test precision
5 months ago
Rene Cannao 0c5e75a064 Fix wait_timeout timeout calculations and add proper newline characters
5 months ago
Rene Cannao df515f91fa session: Add wait_timeout to proxysql internal session JSON
5 months ago
Rene Cannao 0a9dc9dd29 session: Add input validation for client wait_timeout with silent clamping
5 months ago
Rene Cannao 86cc7cd3da session: Fix wait_timeout member variable declaration and usage
5 months ago
René Cannaò b641c0d627
Merge pull request #5232 from sysown/fix/issue-4855
5 months ago
René Cannaò 0f719d3e7b
Merge pull request #5240 from sysown/v3.0-5062
5 months ago
Rene Cannao 5485bb02f4 Improve fast forward replication CLIENT_DEPRECATE_EOF validation
5 months ago
René Cannaò 3c4e09fec0
Merge pull request #5225 from sysown/v3.0_refactor_prepared_statement_cache_design_5211
5 months ago
Rahim Kanji 7205f424a2 Add SSL support for backend connections in PGSQL monitor
5 months ago
Rahim Kanji 9c0e14a5d1 Replace rand() with lock-free Xoshiro128++ PRNG
5 months ago
René Cannaò d188715a7d
Merge branch 'v3.0' into fix/issue-4855
5 months ago
René Cannaò ae30eea64e
Merge branch 'v3.0' into v3.0_get_server_version
5 months ago
René Cannaò 27714335ab
Merge pull request #5228 from sysown/v3.0-5212
5 months ago
Rene Cannao a577491f42 Refactor issue 4855 fix: Use sqlite3_total_changes64 difference approach
5 months ago
Rene Cannao 05960b5ddb Fix issue 4855: Reset affected_rows to 0 for DDL queries in Admin interface
5 months ago
René Cannaò 588b0a0ae6
Merge branch 'v3.0' into v3.0_wait_timeout
5 months ago
René Cannaò 199d8bb7f0
Merge branch 'v3.0' into v3.0_get_server_version
5 months ago
Rahim Kanji 1a48aadf5e Code cleanup
5 months ago
Rene Cannao 9a55e97429 docs: Add comprehensive Doxygen documentation for GTID refactoring
5 months ago
Rene Cannao 6ed82ef8cb Fix crash in TCP keepalive warnings for issue #5212
5 months ago
Rene Cannao cf454b8ef2 Add TCP keepalive warnings for issue #5212
5 months ago
Rahim Kanji 27923c19c8 Use emplace instead of insert
5 months ago
Wazir Ahmed 50c60284e6 gtid: Refactor reconnect logic & prevent `events_count` reset
5 months ago
Rahim Kanji 187edfe1a4 Change assert to warning
5 months ago
Rahim Kanji c0f99c0e15 Refactor: Improved Prepared-Statement Cache Design (Lock-Free Hot Path) #5211
5 months ago
Rene Cannao ee824c0b97 Removing debugging code
5 months ago
Rene Cannao 3329a671e5 Add extensive documentation for fast forward grace close feature
5 months ago
Rene Cannao ae93966603 Add TAP test for fast forward grace close feature
5 months ago
Rene Cannao 44aa606caa Implement fast forward grace close feature to prevent data loss
5 months ago
Rahim Kanji d84444724a Replaced use of the generic write_generic() helper with direct packet construction for selected PostgreSQL protocol messages to reduce overhead and improve performance.
6 months ago
Rahim Kanji e744c2bbb7 Optimize transaction command parsing to avoid unnecessary tokenization
6 months ago
Rahim Kanji 7c665b9f78 Checking the data stream on both ends doesn’t apply to frontend connections, since response data is buffered during extended queries.
6 months ago
Rahim Kanji 24e02e95d5 Changing monitor ping poll() timeout to 10ms
6 months ago
Rahim Kanji 6a80c3f288 Implemented explicit task memory ownership management in Monitor_Poll.
6 months ago
Rahim Kanji 50fae0b02a Current check on file descriptors (fd) is not reliable or necessary
6 months ago
Rahim Kanji 1c3c42959c Improve ping accuracy
6 months ago
Rahim Kanji 7a3a5c71df Optimize hot path: replace std::string with char[] to avoid heap
6 months ago
Javier Jaramago Fernández 64b16172c7 Change 'COM_STMT_EXECUTE' params length decoding
6 months ago
Javier Jaramago Fernández e35973b226 Add boundary checks in 'MySQL_Protocol::get_binds_from_pkt'
6 months ago
René Cannaò 4fa3bf6a91
Merge pull request #5191 from sysown/v3.0-fix_proclist_use_after_free
6 months ago
René Cannaò dfd46fee4b
Merge pull request #5150 from proton-lisandro-pin/ignore_min_gtid
6 months ago
René Cannaò 8be91071ef
Merge pull request #5190 from sysown/v3.0_default_interface_global_var_5189
6 months ago
René Cannaò c06e15fd74
Merge pull request #5192 from sysown/v3.0_add_delay_watchdog
6 months ago
Rene Cannao f803a1d419 Increase sid on caching_sha2 full authentication
6 months ago
Lisandro Pin 6cb522283d Implement a ignore_min_gtid_annotation global variable for ProxySQL
6 months ago
Rahim Kanji 48928ce04e Ensure default mysql-interfaces=0.0.0.0:6033 and pgsql-interfaces=0.0.0.0:6133 are set
6 months ago
Rahim Kanji 86c17f04d7 Replace single sleep with looped delay for simulated watchdog test
6 months ago
Rahim Kanji 3c79800a45 Add delay - WatchDog test
6 months ago
Javier Jaramago Fernández 4b28bb6ced Fix heap-after-use between 'PROXYSQL INTERNAL SESSION' and 'SHOW PROCESSLIST'
6 months ago
Rahim Kanji 9eb934e7f0 Buffer response until Extended Query frame completes; send early only if resultset threshold is reached.
6 months ago
Rahim Kanji 9fa3d75fb3 Backport PQsendPipelineSync from PostgreSQL 17 and update code to use it
6 months ago
René Cannaò 4a6ba68357
Merge pull request #5173 from sysown/v3.0_admin_cmd_5170
6 months ago
René Cannaò a44dee127d
Merge pull request #5174 from sysown/v3.0_optimise_extended_query_response
6 months ago
Javier Jaramago Fernández 2668de77c2 Fix compilation warning for 'strncpy' due string truncation
6 months ago
Javier Jaramago Fernández c0978f9371 Fix potential 'use-after-free' by 'SHOW PROCESSLIST' (PgSQL)
6 months ago
Javier Jaramago Fernández 67624b8569 Fix compilation warning for 'strncpy' due string truncation
6 months ago
Javier Jaramago Fernández 639f9d0c74 Fix potential 'use-after-free' by 'SHOW PROCESSLIST'
6 months ago
Wazir Ahmed 8d1b5b597c Revert "gtid: Refactor reconnect logic & prevent events_count reset"
6 months ago
Rahim Kanji 8291361bc1 Removed unnecessary writeout()
6 months ago
Rahim Kanji 38befb845f Fixed PROXYSQL STOP
6 months ago
Rahim Kanji 67d383de4e Resolved issues with admin PROXYSQL PAUSE/RESUME commands
6 months ago
René Cannaò 5018cb66d9
Merge pull request #5168 from sysown/v3.0-debug_log_pass
6 months ago
René Cannaò c6cbce34b1
Merge pull request #5117 from wazir-ahmed/gtid-reconn
6 months ago
René Cannaò 360646b7d5
Merge pull request #5165 from sysown/crash-sqlite-max-len
6 months ago
Wazir Ahmed 5219d4be93 processlist: Prevent crash due to SQLITE_TOOBIG
6 months ago
René Cannaò 7022833213
Merge pull request #5163 from sysown/v3.0_assert_to_warning
6 months ago
Javier Jaramago Fernández 4304b995a3 Improve debug message with context dump (passwords) during auth handshake
6 months ago
René Cannaò 436bcccc62
Merge pull request #5158 from sysown/v3.0.3-makefiles_cleanup
6 months ago
Miro Stauder d020f577b2 reduce duplication in makefiles, use include for common stuff
6 months ago
René Cannaò 562e98d551
Merge pull request #5130 from wazir-ahmed/stats-schema
6 months ago
Rahim Kanji ed20d09b8a Replaced std::get_if with std::visit
6 months ago
Rahim Kanji 91c674495a Few fixes
6 months ago
René Cannaò ccf72b606c
Merge pull request #5134 from wazir-ahmed/mysqldump
6 months ago
René Cannaò 3b4369bba9
Merge pull request #5113 from wazir-ahmed/load-from-config-validation
6 months ago
René Cannaò 9c7111d9e6
Merge pull request #5085 from wazir-ahmed/intercept-ssl-version
6 months ago
Rahim Kanji 288b0da189 verify_server_variables -> Change assert to warning
6 months ago
Keith Brings e4745f8ea0
Revert "Include "information_schema_stats_expiry" as a known setting"
6 months ago
René Cannaò ecad6f9249
Merge pull request #5160 from sysown/v3.0_disable_pgsql_prometheus_5159
6 months ago
René Cannaò abafaccbc0
Merge pull request #5156 from sysown/v3.0_pgsql_stat_activity_issue_4682
6 months ago
René Cannaò 73c15ba3ef
Merge pull request #5153 from sysown/v3.0_transaction_alias_support_5152
6 months ago
René Cannaò 01862a247a
Merge pull request #5149 from sysown/v3.0_track_search_path_param_5148
6 months ago
René Cannaò 413b0121a1
Merge pull request #5146 from sysown/v3.0_parameter_status_case_sensitive_issue_5145
6 months ago
René Cannaò 42f6d9d74f
Merge pull request #5144 from sysown/v3.0_datestyle-parser-tweak
6 months ago
René Cannaò 2c9cea0014
Merge pull request #5143 from sysown/v3.0_fix-describe-portal-nodata-empty-query
6 months ago
René Cannaò c5a0a0011f
Merge pull request #5137 from sysown/v3.0_pgsql_query_cancel_terminate_issue_5136
6 months ago
René Cannaò e5aba4db42
Merge pull request #5154 from sysown/v3.0.3-upgrade_deps
6 months ago
Rahim Kanji cb2062c1d1 Few fixes
6 months ago
Keith Brings aaefac0ca4
Merge pull request #5142 from sysown/v3.0_bind_fmt_bug_fix_5140
6 months ago
Keith Brings 9382dec4eb
Merge pull request #5129 from Confushion/include_settings_information_schema_stats_expiry
6 months ago
Rahim Kanji 5bfb6e216c Few fixes
6 months ago
Rahim Kanji e6d0338959 Turning off Prometheus metrics collection for PostgreSQL modules in ProxySQL
6 months ago
Rahim Kanji 818025a3b3 Separate query cache metrics for MySQL and PostgreSQL
6 months ago
Rahim Kanji 0292b780e9 Fixed typo
6 months ago
Rahim Kanji fc4d7f76a0 Added 'SHOW FULL PGSQL ACTIVITY' and 'SHOW PGSQL ACTIVITY' handling
6 months ago
Rahim Kanji f3ea179384 Add backend PID/state to stats_pgsql_processlist and create pg_stat_activity-style view
6 months ago
Rahim Kanji 81d4c3ad74 Added get_pg_backend_state
7 months ago
Rahim Kanji 45271572ec Add support for PostgreSQL transaction command aliases and ROLLBACK AND CHAIN
7 months ago
Miro Stauder a0f2a9b211 update clickhouse-cpp to v2.6.0
7 months ago
Rahim Kanji 901fe53c6d Refactored and optimized pgsql_variable_validate_search_path
7 months ago
Rahim Kanji 83bec8d477 Refactored remove_quotes function
7 months ago
Rahim Kanji 8f8a8c29e3 Code cleanup: Removed is_select_NOT_for_update from PostgreSQL modules
7 months ago
Rahim Kanji b005c2dd8c Add tracking for PostgreSQL search_path parameter
7 months ago
Rahim Kanji dc6db358f4 Few fixes
7 months ago
Rahim Kanji 03b63f6857 Fix ParameterStatus capitalization for DateStyle, TimeZone, and IntervalStyle
7 months ago
Rahim Kanji d4b2de9e26 Align DateStyle parsing with PostgreSQL
7 months ago
Rahim Kanji 67842ff03c Send NoData in response to Describe (Portal) before Execute (empty
7 months ago
Rahim Kanji 9931fbf1d6 Replace 0xFFFFFFFF with PGSQL_PARAM_NULL constant
7 months ago
Rahim Kanji 8060f98c28 Improve Parser
7 months ago
Rahim Kanji 84389b71b9 refactor(conninfo): add append_conninfo_param helper
7 months ago
Rahim Kanji 9cb605f4fb Replaced rand() with random()
7 months ago
Rahim Kanji 1e988c665e Removed admin_handler_command_kill_connection
7 months ago
Rahim Kanji d09fe4d014 Add pgsql-kill_backend_connection_when_disconnect support
7 months ago
Rahim Kanji 3a46324d5d Fixed Debug logs
7 months ago
Rahim Kanji b3e96b05b5 Added KILL PGSQL CONNECTION support
7 months ago
Rahim Kanji 4d91452fc5 Implement backend query cancellation for PostgreSQL #5136
7 months ago
Wazir Ahmed b6d796c9f2 Improve `mysqldump` compatibility
7 months ago
René Cannaò a71c863d08
Merge pull request #5122 from wazir-ahmed/config-log-msg
7 months ago
René Cannaò e1b7afe282
Merge pull request #5099 from wazir-ahmed/clock-monotonic-raw
7 months ago
René Cannaò 4639b9705a
Merge pull request #5133 from sysown/v3.0_extended_query_pgsql_query_rules_5132
7 months ago
René Cannaò 9290a5ceec
Merge pull request #5124 from sysown/v3.0_postgres_query_logging_issue_5123
7 months ago
Rahim Kanji 2702c2092f Fixed typo
7 months ago
Rahim Kanji 9e9fdc23c2 Modify extended query handling in ProxySQL so that query rules are applied at Parse, Describe, and Execute stages, but hostgroup selection is performed only on the first message in the message pipeline. Ensures that all subsequent messages in the same pipeline use the same backend connection, maintaining consistent routing while applying relevant query rules.
7 months ago
Rahim Kanji 9b0366a89a Improved PostgreSQL Logger
7 months ago
Wazir Ahmed 80744b4488 Remove `stats` schema name from the query in stats user session
7 months ago
Menno van Gangelen 23874c4c00
Include "information_schema_stats_expiry" as a known setting
7 months ago
Rahim Kanji a89291c9a9 Added query logging support for PostgreSQL
7 months ago
Wazir Ahmed 2b72e723e8 Add INFO log when values from configuration file are ignored
7 months ago
Rahim Kanji 692109f965 Fixed typo
7 months ago
Rahim Kanji 23a764eaac Preserve implicit transactions with pipeline + FLUSH #5118
7 months ago
Wazir Ahmed 0a70fd515f gtid: Refactor reconnect logic & prevent `events_count` reset
7 months ago
Wazir Ahmed 7194437d77 Add `PROXYSQL SET CONFIG FILE` command
8 months ago
Wazir Ahmed 0a336de048 Add validation for `LOAD * FROM CONFIG`
8 months ago
Rahim Kanji ff50bb4ec1 Ensure PgSQL_Errors_statsvdestructor is invoked on delete #5112
8 months ago
Rahim Kanji 205f970ffa Append NoData for DESCRIBE(Portal) on SET/RESET/DISCARD/DEALLOCATE
8 months ago
Rahim Kanji 031d362aab Add STMT prefix to ASYC DESCRIBE status
8 months ago
Rahim Kanji 7d5fe54230 Refactor: unify result handling for Parse and Describe
8 months ago
Rahim Kanji 0391a8d4bb Intercept LISTEN command and return "not supported" #5109
8 months ago
René Cannaò 0e54455026
Merge pull request #5104 from sysown/v3.0_issue_5101
8 months ago
Rahim Kanji 2745f5ffb7 Merge remote-tracking branch 'Master/v3.0_issue_5101' into v3.0_extended_query_protocol_phase_2
8 months ago
Rahim Kanji e291573810 Improved regex pattern
8 months ago
Rahim Kanji 77d030b2f2 Merge branch 'v3.0_issue_5101' into v3.0_extended_query_protocol_phase_2
8 months ago
Rahim Kanji 86e2453972 Updated SET parsing regex pattern to allow optional spaces after commas in values
8 months ago
Rahim Kanji c6138656b6 Fixed multiplex disabled due to CREATE SEQUENCE
8 months ago
Rahim Kanji 226cb8d225 Merge remote-tracking branch 'Master/v3.0_issue_5102' into v3.0_extended_query_protocol_phase_2
8 months ago
Rahim Kanji 0d26349117 Merge remote-tracking branch 'Master/v3.0_issue_5101' into v3.0_extended_query_protocol_phase_2
8 months ago
Rahim Kanji 31503d42e3 Merge remote-tracking branch 'Master/v3.0_issue_5100' into v3.0_extended_query_protocol_phase_2
8 months ago
Rahim Kanji 1b137714dd Updated SET parsing regex pattern to allow optional spaces after commas in values
8 months ago
Rahim Kanji a69a4437d6 If the startup connection includes untracked session parameters (passed via options=), the connection must be destroyed instead of returned to the pool.
8 months ago
Rahim Kanji 43e5b55c1c Added integer_datetimes in ProxySQL startup parameters status, hardcoded to on.
8 months ago
Wazir Ahmed 8d29742e20 `QueryInfo::end_time` should always be greater than or equal to `start_time`
8 months ago
Juan Manuel Fernández García-Minguillán f561d83ba2 Avoid usage of deleted connection
8 months ago
Juan Manuel Fernández García-Minguillán 172bf9f48d Fix int overflow if the first server is invalid
8 months ago
Juan Manuel Fernández García-Minguillán 8554742131 Avoid send close in ssl connections
8 months ago
Wazir Ahmed daf1570c5d Replace `CLOCK_MONOTONIC` with `CLOCK_MONOTONIC_RAW`
8 months ago
Rahim Kanji 1b47a1d9ea Fixed Describe Portal returning NoData
8 months ago
Rahim Kanji abd9fcb743 Add PgSQL prepared statement related stats
8 months ago
Rahim Kanji 38841bf189 Remove DESCRIBE statement cache option
8 months ago
Rahim Kanji 9a5fa148c8 Inject implicit Sync if simple query arrives before extended query cycle is completed
8 months ago
Rahim Kanji be2ae45950 Merge branch 'v3.0' into 'v3.0_extended_query_protocol_phase_2'
8 months ago
Rahim Kanji abd19113c0 Fix RequestEnd: avoid updating internal state when query failed on backend
8 months ago
Rahim Kanji 96c989a854 * Replaced virtual RequestEnd method with CRTP (static polymorphism)
8 months ago
Rahim Kanji 8d8577b0ad Ensure PgSQL_Threads_Handler and PgSQL_HostGroups_Manager objects are released when ProxySQL shuts down or restarts.
8 months ago
Rahim Kanji c7ce5a8298 Ensure PgSQL_Threads_Handler and PgSQL_HostGroups_Manager objects are released when ProxySQL shuts down or restarts.
8 months ago
Wazir Ahmed aa80a1f9c8 Handle `SHOW STATUS LIKE 'Ssl_version'` in ProxySQL without any backend
8 months ago
Rahim Kanji 515cf12ded Reject COPY FROM STDIN in extended query mode
8 months ago
Rahim Kanji 7a1852fb92 Skip Describe Portal results unless client explicitly requests it
8 months ago
Rahim Kanji 3dd401f81a Queue client packets during active query execution
8 months ago
Rahim Kanji fff2a91381 Fix omission of ReadyForQuery after error with pending extended-query messages
8 months ago
Rahim Kanji 8a3bab5002 Ensure consistent handling of NoData packets in PQsendQueryPrepared
8 months ago
Rahim Kanji 42400a1e8a Commented multi_pkt code
8 months ago
René Cannaò 0d2e9ef0df
Merge pull request #5074 from wazir-ahmed/fix-multipart-crash
8 months ago
René Cannaò b5fa8ca1ae
Merge pull request #5044 from sysown/v3.0_extended_query_protocol
8 months ago
Rahim Kanji 9e4b76d6d1 * Refactored PgSQL_Session::handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___PGSQL_QUERY_qpo.
8 months ago
Rahim Kanji 0bb5747291 Add Query Rewrite support for Extended Query Protocol
8 months ago
Rahim Kanji 2d569f3b95 Added support to terminate running queries on timeout
8 months ago
Wazir Ahmed 0a0336ecd1 fix: REST API server crash due to malformed multipart POST request
9 months ago
Evgeny Kuzin 949eda1ccd
generate postgres metrics in addition to mysql metrics
9 months ago
Rahim Kanji 58eac30ff3 Fixed SSL STATUS in PgSQL_Data_Stream
9 months ago
Rahim Kanji f715c546fa Added prepared statement map and connection status fields to PROXYSQL INTERNAL SESSION output
9 months ago
Rahim Kanji 4d3dc7b7e3 Fixed DISCARD ALL tag
9 months ago
Rahim Kanji 0ddc6e9b93 * Implemented status tracking for LOCK TABLE and pg_advisory_xact_lock, with automatic reset on transaction end
9 months ago
Rahim Kanji 27f1fed446 Handled DISCARD ALL, DISCARD PLANS, send rest of the varients to backend
9 months ago
Rahim Kanji a29eaf1eb2 Moved warning_in_hg from Base_Session to MySQL_Session
9 months ago
Evgeny Kuzin 2b44aaa58c
add protocol labels for shared metrics between mysql and psql
9 months ago
Rahim Kanji 8021121cfa Fixed PgSQL_Session::handler___status_NONE_or_default
9 months ago
Rahim Kanji 4d195adc89 Renamed Multiplex status from MYSQL to PGSQL
9 months ago
Rahim Kanji 441504190d Moved sess_STMTs_meta and SLDH from Base_Session to MySQL_Session
9 months ago
René Cannaò afb1865107
Merge pull request #5043 from sysown/v3.0-pgsql_mon_table_fix
9 months ago
René Cannaò 471ddfc7aa
Merge pull request #5060 from sysown/v3.0_session_param_reset_connection
9 months ago
Rahim Kanji 070d4ca18d Added DEALLOCATE <stmt_name> and DEALLOCATE ALL support
9 months ago
Rahim Kanji 099597d2d8 Added client_close_all
9 months ago
Rahim Kanji bfc1484923 Added SET statement tracking tests
9 months ago
Rahim Kanji 02eb58db79 Added SET statement tracking support
9 months ago
Wazir Ahmed 97eb19c0f0 fix: Close idle session based on effective timeout
9 months ago
Rahim Kanji ce94a7080a Merge branch v3.0_session_param_reset_connection into v3.0_extended_query_protocol
9 months ago
Rahim Kanji 249b3d8725 * Replace C-style array with std::array in PgSQL_Connection
9 months ago
Rahim Kanji 50243ef283 Corrected RESET/DEFAULT logic
9 months ago
Rahim Kanji 1bcd09044b Refactor Connection Reset Handling
9 months ago
Rahim Kanji 5e30bef674 Few fixes
9 months ago
Rahim Kanji 344ba25777 Add Watchdog PROXYSQLTEST covering MySQL and PgSQL threads
9 months ago
Rahim Kanji e4c0f5ccd8 Refactored Watchdog and integrated PostgreSQL thread monitoring into its loop.
9 months ago
Rahim Kanji 28931cd00d * Replaced malloc with std::vector for safer memory management.
9 months ago
Rahim Kanji 3619fa5d21 Added pgsql-max_stmts_per_connection variable
9 months ago
Rahim Kanji 7c71fe1a05 Prevent overwrite of named statements
9 months ago
Rahim Kanji 0de642559d Avoid crash when mirroring is set for PostgreSQL: show warning instead
9 months ago
Rahim Kanji 4ebff4c0cc Added support for protocol-supplied (out-of-band) parameter typing (argument-based)
9 months ago
Rahim Kanji a8a2799187 Improved locks
9 months ago
Rahim Kanji 703a5f35f5 Added stats_pgsql_prepared_statements_info table
9 months ago
Rahim Kanji dd1c7441f3 * Use C++17 if-initializers for map lookups
9 months ago
Rahim Kanji b989fc2bad Refined Bind Message parameter format, value handling, and result format iterator
9 months ago
Rahim Kanji 06383750b3 Fixed SonarQube warnings where applicable
9 months ago
Rahim Kanji bc87d0d901 * For a Describe Portal message, peek at the next message in the extended query frame. If it is an Execute message, indicating that client is sending a Bind/Describe/Execute sequence
9 months ago
René Cannaò 431fda06b4
Merge pull request #5007 from zuofei/fix-mysql-logging
9 months ago
René Cannaò 87f8355684
Merge pull request #5006 from sysown/v3.0-4976
9 months ago