Re: psql: Add role's membership options to the \du+ command - Mailing list pgsql-hackers

From Pavel Luzanov
Subject Re: psql: Add role's membership options to the \du+ command
Date
Msg-id d1779a39-bc47-f7f2-6ab6-8d37bf4529b1@postgrespro.ru
Whole thread Raw
In response to Re: psql: Add role's membership options to the \du+ command  (Pavel Luzanov <p.luzanov@postgrespro.ru>)
Responses Re: psql: Add role's membership options to the \du+ command  (Pavel Luzanov <p.luzanov@postgrespro.ru>)
List pgsql-hackers
I would suggest tweaking the test output to include regress_du_admin ...
I found (with a help of cfbot) difficulty with this. The problem is the bootstrap superuser name (oid=10). 
This name depends on the OS username. In my case it's pal, but in most cases it's postgres or something else. 
And the output of \du regress_du_admin can't be predicted:

\du regress_du_admin                            List of roles    Role name     | Attributes  |              Member of              
------------------+-------------+------------------------------------- regress_du_admin | Create role | regress_du_role0 from pal (a, i, s)+                  |             | regress_du_role1 from pal (a, i, s)+                  |             | regress_du_role2 from pal (a, i, s)


So, I decided not to include regress_du_admin in the test output.

Please, see version 5 attached. Only tests changed.

-----
Pavel Luzanov
Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Track IO times in pg_stat_io
Next
From: Amit Langote
Date:
Subject: Re: Eliminating SPI from RI triggers - take 2