Commit Graph

2054 Commits (ade0130e67e88b9052d0dc4e76d48d98d3328485)

Author SHA1 Message Date
René Cannaò 360646b7d5
Merge pull request #5165 from sysown/crash-sqlite-max-len
4 months ago
Wazir Ahmed 5219d4be93 processlist: Prevent crash due to SQLITE_TOOBIG
4 months ago
René Cannaò 7022833213
Merge pull request #5163 from sysown/v3.0_assert_to_warning
4 months ago
Javier Jaramago Fernández 4304b995a3 Improve debug message with context dump (passwords) during auth handshake
4 months ago
René Cannaò 436bcccc62
Merge pull request #5158 from sysown/v3.0.3-makefiles_cleanup
4 months ago
Miro Stauder d020f577b2 reduce duplication in makefiles, use include for common stuff
4 months ago
René Cannaò 562e98d551
Merge pull request #5130 from wazir-ahmed/stats-schema
4 months ago
Rahim Kanji 91c674495a Few fixes
4 months ago
René Cannaò ccf72b606c
Merge pull request #5134 from wazir-ahmed/mysqldump
4 months ago
René Cannaò 3b4369bba9
Merge pull request #5113 from wazir-ahmed/load-from-config-validation
4 months ago
René Cannaò ecad6f9249
Merge pull request #5160 from sysown/v3.0_disable_pgsql_prometheus_5159
4 months ago
René Cannaò abafaccbc0
Merge pull request #5156 from sysown/v3.0_pgsql_stat_activity_issue_4682
4 months ago
René Cannaò 73c15ba3ef
Merge pull request #5153 from sysown/v3.0_transaction_alias_support_5152
4 months ago
René Cannaò 01862a247a
Merge pull request #5149 from sysown/v3.0_track_search_path_param_5148
4 months ago
René Cannaò 413b0121a1
Merge pull request #5146 from sysown/v3.0_parameter_status_case_sensitive_issue_5145
4 months ago
René Cannaò c5a0a0011f
Merge pull request #5137 from sysown/v3.0_pgsql_query_cancel_terminate_issue_5136
4 months ago
Rahim Kanji cb2062c1d1 Few fixes
4 months ago
Rahim Kanji f88b781905 Removed pending_connect
4 months ago
Keith Brings aaefac0ca4
Merge pull request #5142 from sysown/v3.0_bind_fmt_bug_fix_5140
4 months ago
Rahim Kanji 5bfb6e216c Few fixes
4 months ago
Rahim Kanji 818025a3b3 Separate query cache metrics for MySQL and PostgreSQL
4 months ago
Rahim Kanji 0292b780e9 Fixed typo
4 months ago
Rahim Kanji f3ea179384 Add backend PID/state to stats_pgsql_processlist and create pg_stat_activity-style view
4 months ago
Rahim Kanji 81d4c3ad74 Added get_pg_backend_state
4 months ago
Rahim Kanji 45271572ec Add support for PostgreSQL transaction command aliases and ROLLBACK AND CHAIN
5 months ago
Rahim Kanji 83bec8d477 Refactored remove_quotes function
5 months ago
Rahim Kanji 8f8a8c29e3 Code cleanup: Removed is_select_NOT_for_update from PostgreSQL modules
5 months ago
Rahim Kanji b005c2dd8c Add tracking for PostgreSQL search_path parameter
5 months ago
Rahim Kanji 03b63f6857 Fix ParameterStatus capitalization for DateStyle, TimeZone, and IntervalStyle
5 months ago
Rahim Kanji 9931fbf1d6 Replace 0xFFFFFFFF with PGSQL_PARAM_NULL constant
5 months ago
Rahim Kanji 8060f98c28 Improve Parser
5 months ago
Rahim Kanji 944b0efcaf Fixed extended query message parser
5 months ago
Miro Stauder 5e7ab935ac fix new compiler issue in btree.h
5 months ago
Rahim Kanji 4d91452fc5 Implement backend query cancellation for PostgreSQL #5136
5 months ago
Wazir Ahmed b6d796c9f2 Improve `mysqldump` compatibility
5 months ago
René Cannaò e1b7afe282
Merge pull request #5099 from wazir-ahmed/clock-monotonic-raw
5 months ago
René Cannaò 18b07a0066
Merge pull request #5120 from sysown/v3.0_clang_compilation_fix
5 months ago
René Cannaò 9290a5ceec
Merge pull request #5124 from sysown/v3.0_postgres_query_logging_issue_5123
5 months ago
Rahim Kanji 9b0366a89a Improved PostgreSQL Logger
5 months ago
Wazir Ahmed 80744b4488 Remove `stats` schema name from the query in stats user session
5 months ago
Rahim Kanji a89291c9a9 Added query logging support for PostgreSQL
5 months ago
Rahim Kanji a7df0d3b3c Fixed clang compilation
5 months ago
Rahim Kanji 23a764eaac Preserve implicit transactions with pipeline + FLUSH #5118
5 months ago
Wazir Ahmed 0a70fd515f gtid: Refactor reconnect logic & prevent `events_count` reset
5 months ago
Wazir Ahmed 0a336de048 Add validation for `LOAD * FROM CONFIG`
6 months ago
Rahim Kanji ff50bb4ec1 Ensure PgSQL_Errors_statsvdestructor is invoked on delete #5112
6 months ago
Rahim Kanji 205f970ffa Append NoData for DESCRIBE(Portal) on SET/RESET/DISCARD/DEALLOCATE
6 months ago
Rahim Kanji 031d362aab Add STMT prefix to ASYC DESCRIBE status
6 months ago
Rahim Kanji 7d5fe54230 Refactor: unify result handling for Parse and Describe
6 months ago
Wazir Ahmed 8d29742e20 `QueryInfo::end_time` should always be greater than or equal to `start_time`
6 months ago
Wazir Ahmed daf1570c5d Replace `CLOCK_MONOTONIC` with `CLOCK_MONOTONIC_RAW`
6 months ago
Rahim Kanji 38841bf189 Remove DESCRIBE statement cache option
6 months ago
Rahim Kanji 9a5fa148c8 Inject implicit Sync if simple query arrives before extended query cycle is completed
6 months ago
Rahim Kanji be2ae45950 Merge branch 'v3.0' into 'v3.0_extended_query_protocol_phase_2'
6 months ago
Rahim Kanji abd19113c0 Fix RequestEnd: avoid updating internal state when query failed on backend
6 months ago
Rahim Kanji 96c989a854 * Replaced virtual RequestEnd method with CRTP (static polymorphism)
6 months ago
Rahim Kanji 8d8577b0ad Ensure PgSQL_Threads_Handler and PgSQL_HostGroups_Manager objects are released when ProxySQL shuts down or restarts.
6 months ago
Rahim Kanji c7ce5a8298 Ensure PgSQL_Threads_Handler and PgSQL_HostGroups_Manager objects are released when ProxySQL shuts down or restarts.
6 months ago
Rahim Kanji 7a1852fb92 Skip Describe Portal results unless client explicitly requests it
6 months ago
Rahim Kanji 8a3bab5002 Ensure consistent handling of NoData packets in PQsendQueryPrepared
6 months ago
Rahim Kanji 42400a1e8a Commented multi_pkt code
6 months ago
René Cannaò b5fa8ca1ae
Merge pull request #5044 from sysown/v3.0_extended_query_protocol
6 months ago
Rahim Kanji 9e4b76d6d1 * Refactored PgSQL_Session::handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___PGSQL_QUERY_qpo.
6 months ago
Rahim Kanji 2d569f3b95 Added support to terminate running queries on timeout
6 months ago
Rahim Kanji 58eac30ff3 Fixed SSL STATUS in PgSQL_Data_Stream
7 months ago
Rahim Kanji 0ddc6e9b93 * Implemented status tracking for LOCK TABLE and pg_advisory_xact_lock, with automatic reset on transaction end
7 months ago
Rahim Kanji a29eaf1eb2 Moved warning_in_hg from Base_Session to MySQL_Session
7 months ago
Rahim Kanji 4d195adc89 Renamed Multiplex status from MYSQL to PGSQL
7 months ago
Rahim Kanji 441504190d Moved sess_STMTs_meta and SLDH from Base_Session to MySQL_Session
7 months ago
René Cannaò afb1865107
Merge pull request #5043 from sysown/v3.0-pgsql_mon_table_fix
7 months ago
Rahim Kanji 070d4ca18d Added DEALLOCATE <stmt_name> and DEALLOCATE ALL support
7 months ago
Rahim Kanji 099597d2d8 Added client_close_all
7 months ago
Rahim Kanji 02eb58db79 Added SET statement tracking support
7 months ago
Rahim Kanji ce94a7080a Merge branch v3.0_session_param_reset_connection into v3.0_extended_query_protocol
7 months ago
Rahim Kanji 249b3d8725 * Replace C-style array with std::array in PgSQL_Connection
7 months ago
Rahim Kanji 50243ef283 Corrected RESET/DEFAULT logic
7 months ago
Rahim Kanji 1bcd09044b Refactor Connection Reset Handling
7 months ago
Rahim Kanji 344ba25777 Add Watchdog PROXYSQLTEST covering MySQL and PgSQL threads
7 months ago
Rahim Kanji 28931cd00d * Replaced malloc with std::vector for safer memory management.
7 months ago
Rahim Kanji 3619fa5d21 Added pgsql-max_stmts_per_connection variable
7 months ago
Rahim Kanji 4ebff4c0cc Added support for protocol-supplied (out-of-band) parameter typing (argument-based)
7 months ago
Rahim Kanji a8a2799187 Improved locks
7 months ago
Rahim Kanji 703a5f35f5 Added stats_pgsql_prepared_statements_info table
7 months ago
Rahim Kanji b989fc2bad Refined Bind Message parameter format, value handling, and result format iterator
7 months ago
Rahim Kanji 06383750b3 Fixed SonarQube warnings where applicable
7 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
7 months ago
Rahim Kanji 87ad15b01c * Removed autocommit_on_hostgroup from PostgreSQL modules
7 months ago
Javier Jaramago Fernández b7b4864729 Fix table definition for 'pgsql_replication_hostgroups'
8 months ago
Rahim Kanji 48ba491cb7 Add support for unnamed Describe Portal and improve extended query handling
8 months ago
Rahim Kanji 7cde1dcad6 Added comments
8 months ago
Rahim Kanji f9448948cd Set end state for fetch result to indicate that it originates from a simple query or statement execution
8 months ago
Rahim Kanji d3592020ac * Created a separate file for Extended Query messages to reduce clutter in PgSQL_Protocol.
8 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.
8 months ago
Rahim Kanji d5fc1fefff Renamed pending_query to extended_query_frame
8 months ago
Rahim Kanji f350102f72 Code cleanup
8 months ago
Rahim Kanji 8bb248cef5 Added Bind and Execute support
8 months ago
Javier Jaramago Fernández 25d5681c61 Fix potential overflow for 'sqlite3_status' memory metrics
8 months ago
Rahim Kanji 4d0618c296 Added Close statement handling
8 months ago
Rahim Kanji a741598a8d Added Describe message handling
8 months ago
Javier Jaramago Fernández 6f2798abe0 Fix memory leak in 'ProxySQL_Admin::stats___mysql_global' - Closes #4976
8 months ago
Rahim Kanji 2a9f67295f Removed warning tracking code from PgSQL_Connection
8 months ago
Rahim Kanji 58c18846c8 Added set_is_client method
8 months ago
Rahim Kanji 24fecc1f6e Add PostgreSQL extended query (prepared statement) support in ProxySQL
8 months ago
Rahim Kanji 026f458f7c Removed last_insert_id from PostgreSQL modules
9 months ago
Rahim Kanji d5451970dc Added comments
9 months ago
Rahim Kanji 700e8c21ae Switched PQ error verbosity to formatted mode.
9 months ago
René Cannaò 2c26a42897
Merge pull request #4819 from sysown/v3.0-ff_conns_eof_caps_match
10 months ago
René Cannaò 66322d05cf
Merge pull request #4851 from sysown/v3.0-ReadySet1
10 months ago
René Cannaò 988d4049ac
Merge pull request #4941 from sysown/v3.0-4935
10 months ago
René Cannaò f9575b7ee9 Addressing minor issue on Readyset Monitoring
10 months ago
René Cannaò d641ca89be First POC for integration with ReadySet
10 months ago
René Cannaò edc84ea14b
Merge pull request #4922 from sysown/v3.0-4861_fixes1
10 months ago
Javier Jaramago Fernández 128fa60003 Remove non-required headers from 'proxysql_utils.h'
10 months ago
René Cannaò 216b31feae Added new event_type PROXYSQL_METADATA
10 months ago
Rahim Kanji 7c7cbd0bc1 Few improvements
10 months ago
Rahim Kanji afbd12767b Added newline
10 months ago
Rahim Kanji 979b3a81f4 Added PgSQL_ExplicitTxnStateMgr in session
10 months ago
Rahim Kanji 190e369658 Added Transaction State flag in SQLite3_to_Postgres
10 months ago
Rahim Kanji d90bf4ac73 Optimized savepoint detection
10 months ago
Rahim Kanji c6fd3cef9c Added reorder_dynamic_variables_idx flag for server connection variables
10 months ago
Rahim Kanji 33b8b2bd3d Added a static_assert to enforce a maximum thread name length of 16 characters at compile time
10 months ago
Rahim Kanji 2f9bb83dda Added Abort (alias of Rollback)
10 months ago
Rahim Kanji ae1f3126a2 Added explicit transaction state manager
10 months ago
René Cannaò 9737e0630a Add variable mysql-eventslog_stmt_parameters #4923
10 months ago
Rahim Kanji 857e501ca3 Added update_fd_at_index method
10 months ago
Rahim Kanji 6f6d241bb1 Removed gtid related code
10 months ago
René Cannaò 77247a1bd8
Merge pull request #4895 from sysown/v3.0-4861-mysql-logging_prepared_statement_parameters
10 months ago
René Cannaò e88692c172 Deprecate read_only_action()
10 months ago
Javier Jaramago Fernández 811874bad1 Merge branch 'v3.0' of github.com:sysown/proxysql into v3.0-ff_conns_eof_caps_match
11 months ago
René Cannaò dd58ea0b0a
Merge pull request #4908 from sysown/v3.0-4727
11 months ago
René Cannaò 6df3d6b84b
Merge pull request #4899 from sysown/v3.0_refactor_connection_info_param
11 months ago
Rahim Kanji 8a5dfc2ecb Added comment
11 months ago
Javier Jaramago Fernández 7955dd21a8 Fix MySQL 8.4 replication lag monitoring - Closes #4727
11 months ago
Rahim Kanji c2f2ae5aa4 * Updated code to use pgsql_tracked_variables[idx] consistently, removing
11 months ago
Rahim Kanji db442ba8cf Treat client_encoding as normal server parameter/variable.
11 months ago
Rahim Kanji fbb9500cb9 Refactored connection parameters
11 months ago
René Cannaò f47b0e6f6c Changed to MySQL_Event
11 months ago
René Cannaò e17477e297
Merge pull request #4871 from sysown/v3.0-4803_20250313
11 months ago
René Cannaò a16ef78f08 Fix incorrect table definition of stats_mysql_query_events
11 months ago
René Cannaò d3f06c537f Merge branch 'v3.0' into v3.0-ff_conns_eof_caps_match
11 months ago
René Cannaò 5415591966 Fix incorrect table definition of history_mysql_query_events
11 months ago
René Cannaò 6ab22f4870
Merge pull request #4875 from sysown/v3.0_improve_copy_stdin
11 months ago
René Cannaò ad193258b2
Merge pull request #4872 from sysown/v3.0_issue_4867
11 months ago
Rahim Kanji fa220398f6 Moved dynamic fast-forward logic (used for COPY ... FROM STDIN) to execute after session variables are set on the backend connection
11 months ago
Rahim Kanji 1c96ea9ee9 Fixed Swapped columns (PGSQL)
12 months ago
Rahim Kanji f1a39ff6cb Fixed Swapped columns
12 months ago
René Cannaò cb53db81ca Export MySQL_Logger metrics for v3.0
12 months ago
René Cannaò 2551d350e9 Port to 3.0 of in-memory query logging
12 months ago
Rahim Kanji f9232ae50d Merge remote-tracking branch 'Master/v3.0' into v3.0_session_parameter_tracking
12 months ago
Rahim Kanji c5fb8da375 Improved Session parameter value validator
12 months ago
Rahim Kanji 6603d48bb0 Optimized and simplified PostgreSQL variable Validator
12 months ago
Rahim Kanji a5b7063cf3 Add validation for PostgreSQL patameters/variables and default PostgreSQL variables
12 months ago
Rahim Kanji 41206d2ee7 Added enable_nestloop parameter
12 months ago
Rahim Kanji 427f20072b Tracking new variables
1 year ago
Rahim Kanji 465852eb0e Added t and f, representing the true and false flags, respectively.
1 year ago
Rahim Kanji 40be1158c2 Finally removed PgSQL_Connection_Placeholder class
1 year ago
Rahim Kanji 570e62b618 Removed MySQL Prepare Statement residual code
1 year ago
Rahim Kanji ac64bd5d21 Removed leftover MySQL prepared statement code
1 year ago
Rahim Kanji a22936164b Removed psql from PgSQL_Connection_Placeholder
1 year ago
Rahim Kanji 0e83dd9896 Moved more data members and methods to PgSQL_Connection class
1 year ago
Rahim Kanji bcc20f8214 Moved few members and methods to PgSQL_Connection
1 year ago
Rahim Kanji f6fb8bbf2e Moved connected_host_details struct to PgSQL_Connection
1 year ago
Rahim Kanji 1bb8d55fc6 Moved PgSQL_Variable and related methods from
1 year ago
Rahim Kanji 99d9708eeb Removed dead code
1 year ago
Rahim Kanji 3dcc015d28 Code cleanup
1 year ago
Rahim Kanji 7e9d6d1ed1 Code cleanup
1 year ago
Rahim Kanji 87838bec14 Refactored get_default_session_variable
1 year ago
Rahim Kanji e6ddae643b Now, default variables are set for all tracked variables
1 year ago
Rahim Kanji 5fb518dc90 Added some more variables
1 year ago
Rahim Kanji 65ec341b39 Added support for COPY ... FROM STDOUT
1 year ago
Rahim Kanji 85d05bbad1 Added full DateStyle default value
1 year ago
Rahim Kanji d2c333dcfd Special handling of PostgreSQL DateStyle in ProxySQL
1 year ago
Rahim Kanji 094ad7bb44 Code cleanup
1 year ago
Javier Jaramago Fernández d49a96dade Enforce 'CLIENT_DEPRECATE_EOF' capability match for fast-forward
1 year ago
Rahim Kanji a2b28383cf Added missing files
1 year ago
Rahim Kanji 35b2dd593d Separate implementation of SET statement parser for MySQL and PostgreSQL
1 year ago
René Cannaò 7ef5993c35 Revert "Enforce 'CLIENT_DEPRECATE_EOF' capability match for conn-pool"
1 year ago
René Cannaò b53b5b24cc
Merge pull request #4810 from sysown/v3.0-SetThreadName_optional
1 year ago
René Cannaò c2f1871adf Make set_thread_name() optional
1 year ago
Rahim Kanji 0e1392322f RESET oaramter and DEFAULT parameter value handling (not fully tested yet)
1 year ago
Rahim Kanji c7960f836b Added Parameter Status
1 year ago
Javier Jaramago Fernández 50ce205d21 Enforce 'CLIENT_DEPRECATE_EOF' capability match for conn-pool
1 year ago
Rahim Kanji 06e496b7c3 Added tracking of parameters:
1 year ago
Rahim Kanji 31ed94e82e * Added async_send_simple_command: This method is introduced to execute
1 year ago
Rahim Kanji b4e9060f71 Modified Set Parser
1 year ago
Yashwant Sahu ed30c5f1ea Merge branch 'v3.0' into v3.0_compression
1 year ago
Yashwant Sahu 2f3b2dacae Merge branch 'v3.0' into v3.0_compression
1 year ago
Rahim Kanji f16f553995 Added PostgreSQL notice handler
1 year ago
Rahim Kanji 794ec0f48d Merge remote-tracking branch 'Master/v3.0' into v3.0_dynamic_fast_forward
1 year ago
Yashwant Sahu a0db6c3a1f 1. Changed name to protocol_compression_level.
1 year ago
Yashwant Sahu a846447a22 Added MySQL compression level
1 year ago
Rahim Kanji 18f9f4514e Few fixes
1 year ago
Rahim Kanji 395a977e68 Merge branch 'v3.0'
1 year ago
Rahim Kanji f33fd02c37 Add COPY ... FROM STDIN detection regex
1 year ago
Rahim Kanji b906c08992 Added dynamic fast forward support
1 year ago
Rahim Kanji 5a37a1474a Added PGSQL_QUERY_RESULT_COPY_IN
1 year ago
Rahim Kanji 6679e59394 Added START_REPLICATION command
1 year ago
Rahim Kanji 7feaac3fcd Removed compression code
1 year ago
Rahim Kanji c4a8b0ec9b Added FAST FORWARD support for PostgreSQL
1 year ago
Rahim Kanji e64a4349d4 Few fixes
1 year ago