forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitde2aca2
committed
Expand regression tests of pg_stat_statements for utility queries
This commit adds more coverage for utility statements so as it ispossible to track down all the effects of query normalization done forall the queries that use either Const or A_Const nodes, which are thenodes where normalization makes the most sense as they apply toconstants (well, most of the time, really).This set of queries is extracted from an analysis done while looking atfull dumps of the regression database when applying different levels ofnormalization to either Const or A_Const nodes for utilities, as of aminimal set of these, for:- All relkinds (CREATE, ALTER, DROP)- Policies- Cursors- Triggers- Types- Rules- Statistics- CALL- Transaction statements (isolation level, options)- EXPLAIN- COPYNote that pg_stat_statements is not switched yet to show anynormalization for utilities, still it improves the default coverage ofthe query jumbling code (not by as much as enabling query jumbling onthe main regression test suite, though):- queryjumblefuncs.funcs.c: 36.8% => 48.5%- queryjumblefuncs.switch.c: 33.2% => 43.1%Reviewed-by: Bertrand DrouvotDiscussion:https://postgr.es/m/Y+MRdEq9W9XVa2AB@paquier.xyz1 parente8dbdb1 commitde2aca2
File tree
6 files changed
+774
-30
lines changed- contrib/pg_stat_statements
- expected
- sql
6 files changed
+774
-30
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
|
Lines changed: 70 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + |
0 commit comments
Comments
(0)