Commit Graph

4875 Commits (ade0130e67e88b9052d0dc4e76d48d98d3328485)

Author SHA1 Message Date
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
5 months ago
Rene Cannao 0b2bc1bf22 Fix SQL injection vulnerability in Read_Global_Variables_from_configfile
5 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
6 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
Rahim Kanji ef2b0cb1ed Corrected advancement of current pointer
9 months ago
Rahim Kanji 8655ff8e0d Cleanup
9 months ago
Rahim Kanji 1135a34d38 Merge branch 'v3.0_qp_mem_leak_fix' into v3.0_extended_query_protocol
9 months ago
Rahim Kanji 87ad15b01c * Removed autocommit_on_hostgroup from PostgreSQL modules
9 months ago
Javier Jaramago Fernández b7b4864729 Fix table definition for 'pgsql_replication_hostgroups'
10 months ago
Rahim Kanji 48ba491cb7 Add support for unnamed Describe Portal and improve extended query handling
10 months ago
Rahim Kanji d3fec0cac7 Deallocate client_addr and proxy_addr memory in __delete_query_rule
10 months ago
Rahim Kanji bc6f95a1fb Removed previous_default_client_encoding variable
10 months ago
Rahim Kanji 7cde1dcad6 Added comments
10 months ago
Rahim Kanji f9448948cd Set end state for fetch result to indicate that it originates from a simple query or statement execution
10 months ago
Rahim Kanji d3592020ac * Created a separate file for Extended Query messages to reduce clutter in PgSQL_Protocol.
10 months ago
Rahim Kanji 3cff4f9dca * Added sticky backend support for extended query frames: all messages in a single frame will now use the same backend connection.
10 months ago
Rahim Kanji d5fc1fefff Renamed pending_query to extended_query_frame
10 months ago
Rahim Kanji f350102f72 Code cleanup
10 months ago
Rahim Kanji 8bb248cef5 Added Bind and Execute support
10 months ago
Javier Jaramago Fernández 25d5681c61 Fix potential overflow for 'sqlite3_status' memory metrics
10 months ago
Rahim Kanji 4d0618c296 Added Close statement handling
10 months ago
Rahim Kanji a741598a8d Added Describe message handling
10 months ago
Javier Jaramago Fernández 6f2798abe0 Fix memory leak in 'ProxySQL_Admin::stats___mysql_global' - Closes #4976
10 months ago
Zuofei Wang 241f17eb98 fix mysql binary logging 0 parameters
10 months ago
Rahim Kanji 2a9f67295f Removed warning tracking code from PgSQL_Connection
10 months ago
Rahim Kanji 97b3bb16e3 Fixed RequestEnd
10 months ago
Rahim Kanji ebe6ac9ab1 Add get_transaction_status_char()
10 months ago
Rahim Kanji 0401308140 Few improvements
10 months ago
Rahim Kanji 58c18846c8 Added set_is_client method
10 months ago
Rahim Kanji 24fecc1f6e Add PostgreSQL extended query (prepared statement) support in ProxySQL
10 months ago
René Cannaò 7490af1783 Group Replication support for MySQL 8.4 and 9.x
11 months ago
Rahim Kanji 026f458f7c Removed last_insert_id from PostgreSQL modules
11 months ago
Rahim Kanji d5451970dc Added comments
12 months ago
Rahim Kanji 7c46f6c48c Improved parser
12 months ago
Rahim Kanji 700e8c21ae Switched PQ error verbosity to formatted mode.
12 months ago
René Cannaò 2c26a42897
Merge pull request #4819 from sysown/v3.0-ff_conns_eof_caps_match
12 months ago
René Cannaò 66322d05cf
Merge pull request #4851 from sysown/v3.0-ReadySet1
12 months ago
René Cannaò 988d4049ac
Merge pull request #4941 from sysown/v3.0-4935
12 months ago
René Cannaò b888cb89b9 Readyset: always use proxy_warning() when changing status
12 months ago
René Cannaò f9575b7ee9 Addressing minor issue on Readyset Monitoring
12 months ago
René Cannaò e5b30282b7 Adding info/warning message when ReadySet server change status
12 months ago
René Cannaò d641ca89be First POC for integration with ReadySet
12 months ago
René Cannaò edc84ea14b
Merge pull request #4922 from sysown/v3.0-4861_fixes1
12 months ago
René Cannaò d622fcfd4d
Merge pull request #4932 from sysown/v3.0-4918
12 months ago
Javier Jaramago Fernández f7c5756328 Fix losing database info on first logging for 'caching_sha2_password'
12 months ago
René Cannaò 216b31feae Added new event_type PROXYSQL_METADATA
12 months ago
Rahim Kanji 0adf56eff1 Improved set parser. SET LOCAL will now lock on hostgroup.
12 months ago
Rahim Kanji 7c7cbd0bc1 Few improvements
12 months ago
Rahim Kanji 9559703a02 Removed extra semicolon
12 months ago
Rahim Kanji c71aa550df Added names (alias of client_encoding)
12 months ago
Javier Jaramago Fernández 5c3a063775 Fix digest comment removal for queries over 'query_digests_max_query_length'
12 months ago
Rahim Kanji 9910a18e84 Some optimisation
1 year ago
Rahim Kanji 979b3a81f4 Added PgSQL_ExplicitTxnStateMgr in session
1 year ago
Rahim Kanji 190e369658 Added Transaction State flag in SQLite3_to_Postgres
1 year ago
Rahim Kanji d90bf4ac73 Optimized savepoint detection
1 year ago
Rahim Kanji c6fd3cef9c Added reorder_dynamic_variables_idx flag for server connection variables
1 year ago
Rahim Kanji d0952275ad Added PgSQL_ExplicitTxnStateMgr in MakeFile
1 year ago
Rahim Kanji 2f9bb83dda Added Abort (alias of Rollback)
1 year ago
Rahim Kanji ae1f3126a2 Added explicit transaction state manager
1 year ago
René Cannaò 9737e0630a Add variable mysql-eventslog_stmt_parameters #4923
1 year ago
René Cannaò 97304ffa91 prepared statements logging: use HEX for STRING type
1 year ago
René Cannaò 65f79a07d2 Changes on write_query_format_1() for datetime
1 year ago
René Cannaò cbb8505ca1 Improvement in prepared statements logging
1 year ago
Rahim Kanji d113bcb193 Use PG_EVENT_WRITE status for PgSQL
1 year ago
Rahim Kanji 4969bd8301 PQconnectPoll can file descriptor (FD) during the connection process. We need to check whether FD has changed and, if so, update it in the thread's poll array.
1 year ago
Rahim Kanji 857e501ca3 Added update_fd_at_index method
1 year ago
Javier Jaramago Fernández 6db52ea942 Fix query digests for certain comments of particular size
1 year ago
Rahim Kanji 6f6d241bb1 Removed gtid related code
1 year ago
René Cannaò 77247a1bd8
Merge pull request #4895 from sysown/v3.0-4861-mysql-logging_prepared_statement_parameters
1 year ago
René Cannaò eba0022a3b
Merge pull request #4917 from sysown/v3.0_read_only_action_deprecated
1 year ago
René Cannaò aff752980b
Merge pull request #4914 from msysyamamoto/fix/mysql_status_output
1 year ago
René Cannaò e88692c172 Deprecate read_only_action()
1 year ago
Masayasu Yamamoto f06d769be1 fix: swap username and schemaname
1 year ago
Javier Jaramago Fernández 811874bad1 Merge branch 'v3.0' of github.com:sysown/proxysql into v3.0-ff_conns_eof_caps_match
1 year ago
René Cannaò dd58ea0b0a
Merge pull request #4908 from sysown/v3.0-4727
1 year ago
René Cannaò 6df3d6b84b
Merge pull request #4899 from sysown/v3.0_refactor_connection_info_param
1 year ago
Rahim Kanji 982be8b08a Code cleanup
1 year ago
René Cannaò a39580ffe1 Several fixes on prepared statements parameters logging
1 year ago
Javier Jaramago Fernández 7955dd21a8 Fix MySQL 8.4 replication lag monitoring - Closes #4727
1 year ago
Yashwant Sahu 1545fd244c Removed range check.
1 year ago
Yashwant Sahu d7ec497afd Now taking effective timeout taking as minimum of global timeout and session timeout
1 year ago
Yashwant Sahu 2b5bd110a1 Using mysql_thread___server_version directly
1 year ago
René Cannaò c48c3310a6 Check if database file exists before checking if it is writable
1 year ago
Yashwant Sahu b589e58de6 Using global mysql version
1 year ago
René Cannaò bf3cca8639 exit if database file is not writable
1 year ago
Yashwant Sahu abe16e6692 Parsing and setting wait timeout for session
1 year ago
Rahim Kanji c2f2ae5aa4 * Updated code to use pgsql_tracked_variables[idx] consistently, removing
1 year ago
Rahim Kanji b8ffb7d56e Fixed connection parameter validation
1 year ago
Rahim Kanji db442ba8cf Treat client_encoding as normal server parameter/variable.
1 year ago
René Cannaò be0fbeedc8 Adding documention for write_query_format_2_json()
1 year ago
René Cannaò 39031f614b Uses 0 params in write_query_format_1()
1 year ago
René Cannaò 579f04de30 Inline documentation in write_query_format_1()
1 year ago
Rahim Kanji fbb9500cb9 Refactored connection parameters
1 year ago
Yashwant Sahu df287b2024 Added handling of SELECT @@version and SELECT VERSION() without backend
1 year ago
René Cannaò ad190e9b56 WIP for logging of prepared statements parameters
1 year ago
René Cannaò f47b0e6f6c Changed to MySQL_Event
1 year ago
René Cannaò e17477e297
Merge pull request #4871 from sysown/v3.0-4803_20250313
1 year ago
René Cannaò ba95ad2382 In get_password() replaced a proxy_info() with proxy_debug()
1 year ago
René Cannaò ae077452fc Removed a redundant and erroneous RequestEnd()
1 year ago
René Cannaò 30794f3d6d
Merge pull request #4887 from sysown/v3.0_shutdown_debug
1 year ago
René Cannaò c6b8485d24 Avoid crash on slow shutdown
1 year ago
René Cannaò d3f06c537f Merge branch 'v3.0' into v3.0-ff_conns_eof_caps_match
1 year ago
René Cannaò a876b1f055
Merge pull request #4881 from sysown/v3.0-ci_fixes_172
1 year ago
René Cannaò 6ab22f4870
Merge pull request #4875 from sysown/v3.0_improve_copy_stdin
1 year ago