Improve test coverage of ruleutils.c.
authorTom Lane <[email protected]>
Fri, 6 Dec 2019 22:40:24 +0000 (17:40 -0500)
committerTom Lane <[email protected]>
Fri, 6 Dec 2019 22:40:30 +0000 (17:40 -0500)
commit830d1c73b3f4524bc897ddab5c6c3b47840c915a
tree3d572dd3c0afea0228cbbeacfb3efff2d0c7b262
parent30d47723fd151641e89d18ce775f1a102ff07ae2
Improve test coverage of ruleutils.c.

While fooling around with the EXPLAIN improvements I've been working
on, I noticed that there were some large gaps in our test coverage
of ruleutils.c, according to the code coverage report.  This commit
just adds a few test cases to improve coverage of:
get_name_for_var_field()
get_update_query_targetlist_def()
isSimpleNode()
get_sublink_expr()
src/test/regress/expected/create_view.out
src/test/regress/expected/rules.out
src/test/regress/sql/create_view.sql
src/test/regress/sql/rules.sql