Commit Graph

192 Commits (cc3cc25532a00dd052a48cf757de7b1def1b95db)

Author SHA1 Message Date
Rahim Kanji 9e4b76d6d1 * Refactored PgSQL_Session::handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___PGSQL_QUERY_qpo.
6 months ago
Rahim Kanji 0bb5747291 Add Query Rewrite support for Extended Query Protocol
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 f715c546fa Added prepared statement map and connection status fields to PROXYSQL INTERNAL SESSION output
7 months ago
Rahim Kanji 27f1fed446 Handled DISCARD ALL, DISCARD PLANS, send rest of the varients to backend
7 months ago
Rahim Kanji a29eaf1eb2 Moved warning_in_hg from Base_Session to MySQL_Session
7 months ago
Rahim Kanji 8021121cfa Fixed PgSQL_Session::handler___status_NONE_or_default
7 months ago
Rahim Kanji 4d195adc89 Renamed Multiplex status from MYSQL to PGSQL
7 months ago
René Cannaò 471ddfc7aa
Merge pull request #5060 from sysown/v3.0_session_param_reset_connection
7 months ago
Rahim Kanji 070d4ca18d Added DEALLOCATE <stmt_name> and DEALLOCATE ALL support
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 50243ef283 Corrected RESET/DEFAULT logic
7 months ago
Rahim Kanji 1bcd09044b Refactor Connection Reset Handling
7 months ago
Rahim Kanji 7c71fe1a05 Prevent overwrite of named statements
7 months ago
Rahim Kanji 0de642559d Avoid crash when mirroring is set for PostgreSQL: show warning instead
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 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
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 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
Rahim Kanji 4d0618c296 Added Close statement handling
8 months ago
Rahim Kanji a741598a8d Added Describe message handling
8 months ago
Rahim Kanji 97b3bb16e3 Fixed RequestEnd
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 c71aa550df Added names (alias of client_encoding)
10 months ago
Rahim Kanji 979b3a81f4 Added PgSQL_ExplicitTxnStateMgr in session
10 months 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.
10 months ago
René Cannaò 6df3d6b84b
Merge pull request #4899 from sysown/v3.0_refactor_connection_info_param
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ò e17477e297
Merge pull request #4871 from sysown/v3.0-4803_20250313
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
René Cannaò 2551d350e9 Port to 3.0 of in-memory query logging
12 months ago
Rahim Kanji 055e748673 Fixed DateStyle 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
1 year ago
Rahim Kanji e0ced2e14c Fixed extra_float_digits variable position
1 year ago
Rahim Kanji 427f20072b Tracking new variables
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 bcc20f8214 Moved few members and methods to PgSQL_Connection
1 year ago
Rahim Kanji 99d9708eeb Removed dead code
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 d2c333dcfd Special handling of PostgreSQL DateStyle in ProxySQL
1 year ago
Rahim Kanji 35b2dd593d Separate implementation of SET statement parser for MySQL and PostgreSQL
1 year ago
Rahim Kanji 0e1392322f RESET oaramter and DEFAULT parameter value handling (not fully tested yet)
1 year ago
Rahim Kanji 06e496b7c3 Added tracking of parameters:
1 year ago
Rahim Kanji b4e9060f71 Modified Set Parser
1 year ago
Rahim Kanji f0316c7d50 Since notices can reorder packets, it is important to account for this when calculating the result set size
1 year ago
Rahim Kanji abbe02d99f Implemented logic to store results with notices in the Query Cache
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 c4a8b0ec9b Added FAST FORWARD support for PostgreSQL
1 year ago
Rahim Kanji e64a4349d4 Few fixes
1 year ago
Rahim Kanji 967386d7d3 Added the SESSION_FORWARD_TYPE enum to define the type of session forwarding
1 year ago
Rahim Kanji 79c7f13768 Clean up
1 year ago
Rahim Kanji 6d614a4b99 Merge branch 'v3.0'
1 year ago
René Cannaò 85d8445b1a
Merge pull request #4726 from sysown/v3.0-postgres_read_only
1 year ago
Rahim Kanji 616a8e0e23 Implemented handling of COPY OUT
1 year ago
Javier Jaramago Fernández 100630fba5 Second iteration on PostgreSQL monitoring POC
1 year ago
Rahim Kanji 5206747a7d Fixed warning
1 year ago
Rahim Kanji 851a573f30 If query results needs to be cached, the pgsql_thread___query_cache_size_MB setting takes precedence over pgsql_thread___threshold_resultset_size
1 year ago
Rahim Kanji 720441af20 Refactored and Optimized Query Cache with PgSQL Support
1 year ago
Rahim Kanji 20bc367a7a Fixed PgSQL Query Rewrite, Error message and Ok message
1 year ago
Rahim Kanji ea3ce3c75c Commenting Query Cache code for PgSQL Session
1 year ago
Rahim Kanji 8d62aae2f6
Merge branch 'v3.0' into v3.0_unsupported_features_error
1 year ago
Rahim Kanji 1d217455f9
Merge branch 'v3.0' into v3.0_md5_auth_support
1 year ago
Rahim Kanji 5f218441a3 Return an error if feature is not supported, instead of crashing (assert)
1 year ago
Rahim Kanji a520a15537 Added MD5 authentication method
1 year ago
René Cannaò dd67530af4 Adding some documentation
1 year ago
René Cannaò 04abd43a57 Initial commit with PostgreSQL support
1 year ago
René Cannaò d4bd93672e
Merge pull request #79 from sysown/v2.x_refactore_query_processor
1 year ago
Rahim Kanji e723082a1b Refactored Query Processor Architecture
1 year ago
René Cannaò b64b087aab Some code cleanup
1 year ago
René Cannaò 115eef2ea3 Some code cleanup
1 year ago
Rahim Kanji 672e7a5ac5 Fixed num_rows count
1 year ago
Rahim Kanji 5bf827d8e4 Removed type selector
2 years ago
Rahim Kanji 3112a56da4 Added 'stats_pgsql_client_host_cache' and
2 years ago
Rahim Kanji 2525f6df18 Added transaction status in write_ReadyForQuery
2 years ago
Rahim Kanji e939cf088e Added 'stats_pgsql_errors' and 'stats_pgsql_errors_reset' tables
2 years ago
Rahim Kanji 43d3ec82c8 Added stats_pgsql_processlist table
2 years ago