Add search_path parameter to tracked ProxySQL variables list - PgSQL#5149
Add search_path parameter to tracked ProxySQL variables list - PgSQL#5149renecannao merged 5 commits intov3.0from
Conversation
Summary of ChangesHello @rahim-kanji, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request integrates the PostgreSQL Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly adds support for tracking the search_path PostgreSQL variable, which resolves an issue with session locking. The changes are well-structured, and the introduction of the PGTRACKED_VAR_OPT_NO_STRIP_VALUE option is a good way to handle variables with special value formats.
I've identified a few areas for improvement, mainly concerning the new validator for search_path and the logic for quote stripping. Addressing these will enhance the correctness and maintainability of the code. Additionally, the new regular expression for parsing SET statements is quite complex, and adding comments to explain it would be beneficial for future maintenance.
0ef1d4a to
901fe53
Compare
|




Summary
Add the PostgreSQL
search_pathparameter to the list of tracked ProxySQL variables. Previously, this parameter was not tracked, which leads to session being locked on a hostgroup.Closes #5148