Skip to content

New parser - #4

Open
Lepip wants to merge 10 commits into
mainfrom
new-parser
Open

New parser#4
Lepip wants to merge 10 commits into
mainfrom
new-parser

Conversation

@Lepip

@Lepip Lepip commented Jan 30, 2024

Copy link
Copy Markdown
Owner

Made the parser better, as well as added memorization of parsed guc "query_tag".

Comment thread src/parser.c Outdated
Comment thread src/parser.c
Comment thread src/parser.c Outdated
Comment thread src/parser.c Outdated
Comment thread src/parser.c Outdated
Comment thread src/query_tag.c Outdated
Comment thread src/query_tag.c Outdated
Comment thread src/query_tag.c Outdated
Comment thread src/query_tag.c Outdated
Comment thread src/query_tag.c Outdated
@Lepip
Lepip requested a review from Smyatkin-Maxim February 4, 2024 19:12
Comment thread src/query_tag.c
char *rgname = GetResGroupNameForId(current_resgroup_id());
char *rolename = GetUserNameFromId(GetUserId());
initStringInfo(&query);
initStringInfo(&cost_query);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pfree cost_query.data and query?

Comment thread src/query_tag.c
prev_planner_hook = standard_planner;
}
resgroup_assign_hook = resgroup_assign_by_query_tag;
planner_hook = kill_rules_manager;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleanup planner_hook in fini

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