forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd002f16
committed
Add a regression test script dedicated to exercising system views.
Quite a few of our built-in system views were not exercised anywherein the regression tests. This is perhaps not so exciting for the onesthat are simple projections/joins of system catalogs, but for the onesthat are wrappers for set-returning C functions, the omission translatesdirectly to lack of test coverage for those functions.In many cases, the reason for the omission is that the view doesn't havemuch to do with any specific SQL feature, so there's no natural place totest it. To remedy that, invent a new script sysviews.sql that's dedicatedto testing SRF-based views. Move a couple of tests that did fit thischarter into the new script, and add simple "count(*)" based tests ofother views within the charter. That's enough to ensure we at leastexercise the main code path through the SRF, although it does little toprove that the output is sane.More could be done here, no doubt, and I hope someone will think abouthow we can test these views more thoroughly. But this is a startingpoint.Discussion:https://postgr.es/m/19359.1485723741@sss.pgh.pa.us1 parent511ae62 commitd002f16
File tree
8 files changed
+163
-70
lines changed- src/test/regress
- expected
- sql
8 files changed
+163
-70
lines changedLines changed: 0 additions & 16 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 | 1 |
| |
18 | 2 |
| |
19 | 3 |
| |
|
Lines changed: 113 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 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + |
Lines changed: 0 additions & 35 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2603 | 2603 |
| |
2604 | 2604 |
| |
2605 | 2605 |
| |
2606 |
| - | |
2607 |
| - | |
2608 |
| - | |
2609 |
| - | |
2610 |
| - | |
2611 |
| - | |
2612 |
| - | |
2613 |
| - | |
2614 |
| - | |
2615 |
| - | |
2616 |
| - | |
2617 |
| - | |
2618 |
| - | |
2619 |
| - | |
2620 |
| - | |
2621 |
| - | |
2622 |
| - | |
2623 |
| - | |
2624 |
| - | |
2625 |
| - | |
2626 |
| - | |
2627 |
| - | |
2628 |
| - | |
2629 |
| - | |
2630 |
| - | |
2631 |
| - | |
2632 |
| - | |
2633 |
| - | |
2634 |
| - | |
2635 |
| - | |
2636 |
| - | |
2637 |
| - | |
2638 |
| - | |
2639 |
| - | |
2640 |
| - | |
2641 | 2606 |
| |
2642 | 2607 |
| |
2643 | 2608 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
89 | 89 |
| |
90 | 90 |
| |
91 | 91 |
| |
92 |
| - | |
| 92 | + | |
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
123 | 123 |
| |
124 | 124 |
| |
125 | 125 |
| |
| 126 | + | |
126 | 127 |
| |
127 | 128 |
| |
128 | 129 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 |
| - | |
3 | 1 |
| |
4 | 2 |
| |
5 | 3 |
| |
|
Lines changed: 48 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 | + |
Lines changed: 0 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
469 | 469 |
| |
470 | 470 |
| |
471 | 471 |
| |
472 |
| - | |
473 |
| - | |
474 |
| - | |
475 |
| - | |
476 |
| - | |
477 |
| - | |
478 |
| - | |
479 |
| - | |
480 |
| - | |
481 |
| - | |
482 |
| - | |
483 |
| - | |
484 |
| - | |
485 |
| - | |
486 |
| - | |
487 |
| - | |
488 | 472 |
| |
489 | 473 |
| |
490 | 474 |
| |
|
0 commit comments
Comments
(0)