Commit Graph

200 Commits (09d0dcb808be361e17e0fa6a1dfcf511e3c528be)

Author SHA1 Message Date
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
Rahim Kanji 380651128a Merge remote-tracking branch 'Master_POSTGRES/v2.x_proxysql_internal_session' into v2.x_stats_table
2 years ago
Rahim Kanji e46b8a8dde Handled commit and rollback command with and without semicolon
2 years ago
Rahim Kanji c35a6a24cf Added stats_pgsql_global table
2 years ago
Rahim Kanji f9ed50650f Updated set_dbname implementation for PostgreSQL
2 years ago
Rahim Kanji 2020b3f0be Handled 'PROXYSQL INTERNAL SESSION' command for PostgreSQL session
2 years ago
Rahim Kanji 991031c938 Increased resultset buffer size to exact 16K
2 years ago
Rahim Kanji fb0d8c0b69 Merge remote-tracking branch 'remotes/Master_POSTGRES/v2.x_postgres' into v2.x_postgres_backend
2 years ago
Rahim Kanji db3fe26590 PgSQL_Thread will now reset connections independently, eliminating the
2 years ago
Rahim Kanji 880d654011 Changing database on the same connection is not supported in PostgreSQL. If a connection with a different database is needed, a new connection will be created; otherwise, a connection with the same database (and username) will be selected from the connection pool.
2 years ago
Rahim Kanji d01e883638 Renamed 'schemaname' to 'dbname' in PgSQL_Connection_userinfo
2 years ago
Rahim Kanji 058be0d9ae * Reset the connection if there is a mismatch between client and server
2 years ago
Rahim Kanji a22aeca394 Reset Session Implementation
2 years ago
Rahim Kanji 0331ca7ff7 Merge remote-tracking branch 'Master_POSTGRES/v2.x_postgres' into v2.x_postgres_backend
2 years ago
Rene Cannao cbc50d4494 More template for Session
2 years ago
Rene Cannao 43a2c526e6 Remove dead code
2 years ago
Rene Cannao 982ad5be0c Template of Session::update_expired_conns()
2 years ago
Rahim Kanji bd842d4f76 Ensure writeout is called only after all multi-statement results are fetched and processed
2 years ago
Rahim Kanji 3e90cccb7d Merge remote-tracking branch 'Master_POSTGRES/v2.x_postgres' into v2.x_postgres_backend
2 years ago
Rene Cannao 0481ab5936 Adding some timers for debugging purposes
2 years ago
Rahim Kanji b01792cae9 Added multi-statement support
2 years ago
Rene Cannao 8c09f3caec Code cleanup after use of template in Base_Session
2 years ago
Rene Cannao f7e923bfe6 Template for housekeeping_before_pkts()
2 years ago
Rene Cannao 48eff16cdc Template for handler_special_queries_STATUS()
2 years ago
Rene Cannao 80928395cc Template for reset_all_backends()
2 years ago
Rene Cannao 7563659198 Template for has_any_backend()
2 years ago
Rene Cannao 14c0ee023b Disable autocommit from PgSQL_Session()
2 years ago
Rene Cannao 63573e3ca3 Removed handler_SetAutocommit from PgSQL_Session()
2 years ago
Rene Cannao 66b7c103af Moving return_proxysql_internal() to Base_Session
2 years ago
Rene Cannao 649c985384 Using template for writeout()
2 years ago
Rene Cannao ae1e088d82 Initial work to write Base_Session
2 years ago
Rahim Kanji 27e1e4fb7a Many improvements and bug fixes
2 years ago
Rahim Kanji 65fc633cf5 Generic error handling, transaction detection and handling, bug fixes
2 years ago
Rahim Kanji ef61c367a3 Added support for handling commands and errors
2 years ago
Rahim Kanji a2516654cf Added PgSQL Thread variables.
2 years ago
Rahim Kanji 06a32365cc Merge remote-tracking branch 'Master_POSTGRES/v2.x_postgres' into v2.x_postgres_backend
2 years ago
Rahim Kanji dcbe140199 Route query to PostgreSQL backend server
2 years ago
René Cannaò fde8ace076 Removed json.hpp from include files
2 years ago
René Cannaò c903a45633 Second attempt to use Base_Thread
2 years ago
René Cannaò 5f9ec09b21 Set fileeconding on PgSQL_Session.cpp
2 years ago
Rahim Kanji 962e8c03e9 Added SSL connection support for PostgreSQL connection.
2 years ago
Rahim Kanji ebf20b6a60 * Added PostgreSQL configuration (port: 6034 Admin and 6035: PostgreSQL client connections)
2 years ago
Rahim Kanji e029d39007 Initial PostgreSQL commit
2 years ago