Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DONOTMERGE] PostgreSQL: Initial commis to support Prepared Statements #4836

Draft
wants to merge 33 commits into
base: v3.0
Choose a base branch
from

Conversation

renecannao
Copy link
Contributor

No description provided.

Also adding new debug modules
process_mysql_query() extract queries at different offsets depending if:
* MySQL (COM_QUERY, COM_STMT_PREPARE, COM_STMT_EXECUTE)
* PostgreSQL (Simple query)
* PostgreSQL (PARSE)
Not working, just placeholders
PgSQL_Connection.cpp now includes extra header to access PostgreSQL internals.
To achieve that some postgres headers were modified, and ProxySQL code
needs to define PG_SYM_PROXYSQL (see PgSQL_Connection.cpp as example).
Use of PQsendQueryPrepared() instead of PQsendQueryParams() .
PQsendQueryParams() sends also a Parse packet , but we had the query already parsed .

Fixed how resultFormat is evaluated.

Hardcoded stmtName `proxysql_ps_1` : this is temporary
@renecannao renecannao changed the title PostgreSQL: Initial commis to support Prepared Statements [DONOTMERGE] PostgreSQL: Initial commis to support Prepared Statements Feb 19, 2025
@renecannao renecannao marked this pull request as draft February 20, 2025 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants