Re: Create a separate test file for exercising system views
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgreSQL.org
Date: 2017-01-29T21:12:19Z
Lists: pgsql-hackers
Hi, On 2017-01-29 16:02:21 -0500, Tom Lane wrote: > I did not do anything about testing the various pg_stat_xxx views. > Those could be added later, or maybe they deserve their own home. > (In many cases, those would need something smarter than the basic > count(*) technique used here, because the C functions are invoked > in the view's SELECT list not in FROM, so the planner would throw > away those calls.) I've previously wished there were a portable equivalent of \o /dev/null that'd not be perfect, but it'd still exercise more than what we currently have. Alternatively casting the entire row to text should allow to use count(*) trickery in some of the cases at least. > Comments/objections? Sounds like a good idea here. Greetings, Andres Freund
Commits
-
Add a regression test script dedicated to exercising system views.
- d002f16c6ec3 10.0 landed