mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +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:
@ -255,7 +255,7 @@ ExplainQuery(ParseState *pstate, ExplainStmt *stmt,
|
||||
|
||||
query = castNode(Query, stmt->query);
|
||||
if (IsQueryIdEnabled())
|
||||
jstate = JumbleQuery(query, pstate->p_sourcetext);
|
||||
jstate = JumbleQuery(query);
|
||||
|
||||
if (post_parse_analyze_hook)
|
||||
(*post_parse_analyze_hook) (pstate, query, jstate);
|
||||
|
Reference in New Issue
Block a user