pgsql: Propagate query IDs of utility statements in functions

2024-07-18 Thread Michael Paquier
Propagate query IDs of utility statements in functions For utility statements defined within a function, the query tree is copied to a PlannedStmt as utility commands do not require planning. However, the query ID was missing from the information passed down. This leads to plugins relying on the

pgsql: Propagate query IDs of utility statements in functions

2024-07-18 Thread Michael Paquier
Propagate query IDs of utility statements in functions For utility statements defined within a function, the query tree is copied to a PlannedStmt as utility commands do not require planning. However, the query ID was missing from the information passed down. This leads to plugins relying on the

pgsql: Propagate query IDs of utility statements in functions

2024-07-18 Thread Michael Paquier
Propagate query IDs of utility statements in functions For utility statements defined within a function, the query tree is copied to a PlannedStmt as utility commands do not require planning. However, the query ID was missing from the information passed down. This leads to plugins relying on the