Regression test CREATE USER/ROLE usage

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Regression test CREATE USER/ROLE usage
Дата
Msg-id 20160410174259.GX10850@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: In pg_dump, include pg_catalog and extension ACLs, if changed  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Regression test CREATE USER/ROLE usage  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom,

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> broken that way as rowsecurity.sql, which is (still) creating roles
> named "alice" and "bob", but it's not acceptable like this.

Attached is a patch to fix all of the role usage in rowsecurity.sql
(I believe, feel free to let me know if there's anything else).  In
particular, all of the roles are changed to begin with 'regress_', and
they are all now created with NOLOGIN.

I'll plan to push this in the next day or so.

I'll also work up a patch for the rest of the CREATE USER/ROLE usage in
the core regression tests.

This will result in a bit of not-strictly-necessary code churn, but
having consistency in the code base really is valuable where we have an
agreed upon policy as to what all the tests should be doing, for new
(and even old) developers to follow.

Comments and concerns welcome, of course.

Thanks!

Stephen

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Bloom index contrib module
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Regression test CREATE USER/ROLE usage