diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-01-30 17:15:42 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-01-30 17:15:42 -0500 |
| commit | d002f16c6ec38f76d1ee97367ba6af3000d441d0 (patch) | |
| tree | b80bd65c8c77003acb47c27c6a18a084ae5d3b7c /src/test/regress/parallel_schedule | |
| parent | 511ae628f31b4e791cd5c7836e46cb84dcf145fd (diff) | |
| download | postgresql-d002f16c6ec38f76d1ee97367ba6af3000d441d0.tar.gz | |
Add a regression test script dedicated to exercising system views.
Quite a few of our built-in system views were not exercised anywhere
in the regression tests. This is perhaps not so exciting for the ones
that are simple projections/joins of system catalogs, but for the ones
that are wrappers for set-returning C functions, the omission translates
directly to lack of test coverage for those functions.
In many cases, the reason for the omission is that the view doesn't have
much to do with any specific SQL feature, so there's no natural place to
test it. To remedy that, invent a new script sysviews.sql that's dedicated
to testing SRF-based views. Move a couple of tests that did fit this
charter into the new script, and add simple "count(*)" based tests of
other views within the charter. That's enough to ensure we at least
exercise the main code path through the SRF, although it does little to
prove that the output is sane.
More could be done here, no doubt, and I hope someone will think about
how we can test these views more thoroughly. But this is a starting
point.
Discussion: https://postgr.es/m/19359.1485723741@sss.pgh.pa.us
Diffstat (limited to 'src/test/regress/parallel_schedule')
| -rw-r--r-- | src/test/regress/parallel_schedule | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/regress/parallel_schedule b/src/test/regress/parallel_schedule index e9b2bad6fd..edeb2d6bc7 100644 --- a/src/test/regress/parallel_schedule +++ b/src/test/regress/parallel_schedule @@ -89,7 +89,7 @@ test: brin gin gist spgist privileges init_privs security_label collate matview # ---------- # Another group of parallel tests # ---------- -test: alter_generic alter_operator misc psql async dbsize misc_functions tsrf +test: alter_generic alter_operator misc psql async dbsize misc_functions sysviews tsrf # rules cannot run concurrently with any test that creates a view test: rules psql_crosstab amutils |
