mirror of
https://github.com/postgres/postgres.git
synced 2025-08-19 23:22:23 +03:00
Remove dependency to query text in JumbleQuery()
Since 3db72eb
, the query ID of utilities is generated using the Query
structure, making the use of the query string in JumbleQuery()
unnecessary. This commit removes the argument "querytext" from
JumbleQuery().
Reported-by: Joe Conway
Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/ZJlQAWE4COFqHuAV@paquier.xyz
This commit is contained in:
@@ -124,7 +124,7 @@ parse_analyze_fixedparams(RawStmt *parseTree, const char *sourceText,
|
||||
query = transformTopLevelStmt(pstate, parseTree);
|
||||
|
||||
if (IsQueryIdEnabled())
|
||||
jstate = JumbleQuery(query, sourceText);
|
||||
jstate = JumbleQuery(query);
|
||||
|
||||
if (post_parse_analyze_hook)
|
||||
(*post_parse_analyze_hook) (pstate, query, jstate);
|
||||
@@ -166,7 +166,7 @@ parse_analyze_varparams(RawStmt *parseTree, const char *sourceText,
|
||||
check_variable_parameters(pstate, query);
|
||||
|
||||
if (IsQueryIdEnabled())
|
||||
jstate = JumbleQuery(query, sourceText);
|
||||
jstate = JumbleQuery(query);
|
||||
|
||||
if (post_parse_analyze_hook)
|
||||
(*post_parse_analyze_hook) (pstate, query, jstate);
|
||||
@@ -203,7 +203,7 @@ parse_analyze_withcb(RawStmt *parseTree, const char *sourceText,
|
||||
query = transformTopLevelStmt(pstate, parseTree);
|
||||
|
||||
if (IsQueryIdEnabled())
|
||||
jstate = JumbleQuery(query, sourceText);
|
||||
jstate = JumbleQuery(query);
|
||||
|
||||
if (post_parse_analyze_hook)
|
||||
(*post_parse_analyze_hook) (pstate, query, jstate);
|
||||
|
Reference in New Issue
Block a user