forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdaa8365
committed
Reflect normalization of query strings for utilities in pg_stat_statements
Applying normalization changes how the following query strings arereflected in pg_stat_statements, by showing Const nodes with adollar-signed parameter as this is how such queries are structuredinternally once parsed:- DECLARE- EXPLAIN- CREATE MATERIALIZED VIEW- CREATE TABLE ASMore normalization could be done in the future depending on the partswhere query jumbling is applied (like A_Const nodes?), the changes beingreflected in the regression tests in majority created inde2aca2. Thisjust allows the basics to work for utility queries using Const nodes.Reviewed-by: Bertrand DrouvotDiscussion:https://postgr.es/m/Y+MRdEq9W9XVa2AB@paquier.xyz1 parentbe504a3 commitdaa8365
File tree
3 files changed
+29
-27
lines changed- contrib/pg_stat_statements
- expected
3 files changed
+29
-27
lines changedLines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
20 |
| - | |
| 19 | + | |
| 20 | + | |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
53 |
| - | |
| 52 | + | |
| 53 | + | |
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
59 |
| - | |
| 58 | + | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
|
Lines changed: 19 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
| |||
326 | 326 |
| |
327 | 327 |
| |
328 | 328 |
| |
329 |
| - | |
330 |
| - | |
331 |
| - | |
332 |
| - | |
333 |
| - | |
334 |
| - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
335 | 335 |
| |
336 | 336 |
| |
337 | 337 |
| |
| |||
354 | 354 |
| |
355 | 355 |
| |
356 | 356 |
| |
357 |
| - | |
358 |
| - | |
359 |
| - | |
360 |
| - | |
361 |
| - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
362 | 362 |
| |
363 | 363 |
| |
364 | 364 |
| |
| |||
508 | 508 |
| |
509 | 509 |
| |
510 | 510 |
| |
511 |
| - | |
512 |
| - | |
| 511 | + | |
| 512 | + | |
513 | 513 |
| |
514 | 514 |
| |
515 | 515 |
| |
516 | 516 |
| |
517 |
| - | |
| 517 | + | |
518 | 518 |
| |
519 | 519 |
| |
520 | 520 |
| |
521 | 521 |
| |
522 | 522 |
| |
523 |
| - | |
| 523 | + | |
524 | 524 |
| |
525 | 525 |
| |
526 | 526 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
836 | 836 |
| |
837 | 837 |
| |
838 | 838 |
| |
| 839 | + | |
839 | 840 |
| |
840 |
| - | |
| 841 | + | |
| 842 | + | |
841 | 843 |
| |
842 | 844 |
| |
843 | 845 |
| |
|
0 commit comments
Comments
(0)