Re: [PATCH] Add regress test for pg_read_all_stats role - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [PATCH] Add regress test for pg_read_all_stats role
Date
Msg-id 20180802193811.GC2247@paquier.xyz
Whole thread Raw
In response to [PATCH] Add regress test for pg_read_all_stats role  (Alexandra Ryzhevich <aryzhevich@google.com>)
Responses Re: [PATCH] Add regress test for pg_read_all_stats role
List pgsql-hackers
On Thu, Aug 02, 2018 at 06:25:14PM +0100, Alexandra Ryzhevich wrote:
> I have noticed that there is no regression tests for default monitoring
> roles such as pg_read_all_stats.

A bug has been recently fixed for that, see 0c8910a0, so having more
coverage would be welcome, now your patch has a couple of problems.
25fff40 is the original commit which has introduced pg_read_all_stats.

Your patch has a couple of problems by the way:
- database creation is costly, those should not be part of the main
regression test suite.
- Any roles created should use "regress_" as prefix.
- You should look also at negative tests which trigger "must be
superuser or a member of pg_read_all_settings", like say a "SHOW
stats_temp_directory" with a non-privileged user.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Expression errors with "FOR UPDATE" and postgres_fdw withpartition wise join enabled.
Next
From: Arthur Zakirov
Date:
Subject: Re: [HACKERS] Bug in to_timestamp().