forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitba90eac
committed
pg_stat_statements: Expand tests for SET statements
There are many grammar flavors that depend on the parse nodeVariableSetStmt. This closes the gap in pg_stat_statements by providingtest coverage for what should be a large majority of them, improving morethe work begun inde2aca2. This will be used to ease theevaluation of a path towards more normalization of SET queries withquery jumbling.Note that SET NAMES (grammar from the standard, synonym of SETclient_encoding) is omitted on purpose, this could use UTF8 with aconditional script where UTF8 is supported, but that does not seem worththe maintenance cost for the sake of these tests.The author has submitted most of these in a TAP test (filled in anyholes I could spot), still queries in a SQL file of pg_stat_statementsis able to achieve the same goal while being easier to look at whentesting normalization patterns.Author: Greg Sabino Mullane, Michael PaquierDiscussion:https://postgr.es/m/CAKAnmmJtJY2jzQN91=2QAD2eAJAA-Per61eyO48-TyxEg-q0Rg@mail.gmail.com1 parentaac2c9b commitba90eac
File tree
2 files changed
+132
-10
lines changed- contrib/pg_stat_statements
- expected
- sql
2 files changed
+132
-10
lines changedLines changed: 87 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
| 69 | + | |
| 70 | + | |
70 | 71 |
| |
71 | 72 |
| |
72 | 73 |
| |
| |||
106 | 107 |
| |
107 | 108 |
| |
108 | 109 |
| |
109 |
| - | |
| 110 | + | |
| 111 | + | |
110 | 112 |
| |
111 | 113 |
| |
112 | 114 |
| |
| |||
551 | 553 |
| |
552 | 554 |
| |
553 | 555 |
| |
| 556 | + | |
| 557 | + | |
554 | 558 |
| |
555 | 559 |
| |
556 | 560 |
| |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
557 | 571 |
| |
558 | 572 |
| |
559 | 573 |
| |
| 574 | + | |
| 575 | + | |
560 | 576 |
| |
561 | 577 |
| |
562 | 578 |
| |
563 | 579 |
| |
564 | 580 |
| |
565 | 581 |
| |
566 | 582 |
| |
567 |
| - | |
| 583 | + | |
568 | 584 |
| |
| 585 | + | |
| 586 | + | |
569 | 587 |
| |
570 | 588 |
| |
571 | 589 |
| |
| 590 | + | |
| 591 | + | |
572 | 592 |
| |
573 | 593 |
| |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
574 | 608 |
| |
575 |
| - | |
576 |
| - | |
577 |
| - | |
578 |
| - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
579 | 615 |
| |
| 616 | + | |
580 | 617 |
| |
581 | 618 |
| |
582 | 619 |
| |
| 620 | + | |
| 621 | + | |
583 | 622 |
| |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
584 | 632 |
| |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
585 | 639 |
| |
586 | 640 |
| |
587 | 641 |
| |
| 642 | + | |
| 643 | + | |
588 | 644 |
| |
589 | 645 |
| |
590 | 646 |
| |
591 | 647 |
| |
592 |
| - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
593 | 651 |
| |
| 652 | + | |
| 653 | + | |
594 | 654 |
| |
595 | 655 |
| |
596 | 656 |
| |
| |||
664 | 724 |
| |
665 | 725 |
| |
666 | 726 |
| |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + |
Lines changed: 45 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 |
| - | |
| 50 | + | |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
| |||
277 | 278 |
| |
278 | 279 |
| |
279 | 280 |
| |
| 281 | + | |
| 282 | + | |
280 | 283 |
| |
281 | 284 |
| |
282 | 285 |
| |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
283 | 296 |
| |
284 | 297 |
| |
285 | 298 |
| |
| 299 | + | |
| 300 | + | |
286 | 301 |
| |
287 | 302 |
| |
288 | 303 |
| |
289 | 304 |
| |
290 | 305 |
| |
291 | 306 |
| |
292 | 307 |
| |
293 |
| - | |
| 308 | + | |
294 | 309 |
| |
| 310 | + | |
| 311 | + | |
295 | 312 |
| |
296 | 313 |
| |
297 | 314 |
| |
| 315 | + | |
| 316 | + | |
298 | 317 |
| |
299 | 318 |
| |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
300 | 333 |
| |
301 | 334 |
| |
| 335 | + | |
| 336 | + | |
302 | 337 |
| |
303 | 338 |
| |
304 | 339 |
| |
| |||
329 | 364 |
| |
330 | 365 |
| |
331 | 366 |
| |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + |
0 commit comments
Comments
(0)