Commit Graph

119 Commits (fa74de3cf257dfd7c14c17403928d8b785c43df6)

Author SHA1 Message Date
Rahim Kanji 700e8c21ae Switched PQ error verbosity to formatted mode.
9 months ago
Rahim Kanji d90bf4ac73 Optimized savepoint detection
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
Rahim Kanji db442ba8cf Treat client_encoding as normal server parameter/variable.
11 months ago
Rahim Kanji b368b281ee Added pg_advisory_xact_lock* detection
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 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 31ed94e82e * Added async_send_simple_command: This method is introduced to execute
1 year ago
Rahim Kanji abbe02d99f Implemented logic to store results with notices in the Query Cache
1 year ago
Rahim Kanji f16f553995 Added PostgreSQL notice handler
1 year ago
Rahim Kanji 395a977e68 Merge branch 'v3.0'
1 year ago
Rahim Kanji ba8dc5f69f Removed the assertion. Instead, disconnect the client session and backend if COPY FROM STDIN bypasses the initial checks and lands here
1 year ago
Rahim Kanji c4a8b0ec9b Added FAST FORWARD support for PostgreSQL
1 year ago
Rahim Kanji 6d614a4b99 Merge branch 'v3.0'
1 year ago
Rahim Kanji 3b5671267f Implemented overflow-safe multiplication for mysql_thread___threshold_resultset_size and pgsql_thread___threshold_resultset_size
1 year ago
Rahim Kanji 616a8e0e23 Implemented handling of COPY OUT
1 year ago
Rahim Kanji 3102d97591 Cleanup
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 c7f7705cde Code cleanup
1 year ago
Rahim Kanji 720441af20 Refactored and Optimized Query Cache with PgSQL Support
1 year ago
Rahim Kanji 391e4867fe Add support for escaping single quotes and backslashes in connection
1 year ago
Rahim Kanji 5f218441a3 Return an error if feature is not supported, instead of crashing (assert)
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ò 115eef2ea3 Some code cleanup
1 year 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 9cfe5b1761 Added stats_pgsql_connection_pool & stats_pgsql_connection_pool_reset tables
2 years ago
Rahim Kanji c35a6a24cf Added stats_pgsql_global table
2 years ago
Rahim Kanji e31dd5661f Moved few methods from PgSQL_Connection.h to PgSQL_Connection.cpp
2 years ago
Rahim Kanji f9ed50650f Updated set_dbname implementation for PostgreSQL
2 years ago
Rahim Kanji 5039c93e28 Code Cleanup
2 years ago
Rahim Kanji 991031c938 Increased resultset buffer size to exact 16K
2 years ago
Rahim Kanji 5c4a3ed2aa Merge remote-tracking branch 'remotes/Master_POSTGRES/v2.x_postgres' into v2.x_postgres_reset_connection
2 years ago
Rahim Kanji 03c08d2e1f Introduced a new function in libpq, PShandleRowData, to handle incoming
2 years ago
Rahim Kanji c51a746f96 If a result returned by a backend server is bigger than 'pgsql-threshold_resultset_size', ProxySQL will start sending the result to the PgSQL client that was requesting the result in order to limit its memory footprint.
2 years ago
Rahim Kanji de20402c10 Process all data in the buffer before receiving additional data from the socket
2 years ago
Rene Cannao 82443e037b Fix encoding in PgSQL_Connection.cpp
2 years ago
Rahim Kanji 2d26a3ff75 Removed few placeholder code
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 e66a540368 Removed few placeholder code
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
Rahim Kanji bd842d4f76 Ensure writeout is called only after all multi-statement results are fetched and processed
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 836755c105 Fixes for various not initialized variables
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 102cc26e1f Added SSL mode for connections to PostgreSQL Server
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
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