Re: alter role

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stijn De Weirdt <sdeweird(at)vub(dot)ac(dot)be>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: alter role
Date: 2006-01-21 17:54:34
Message-ID: 18532.1137866074@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Stijn De Weirdt <sdeweird(at)vub(dot)ac(dot)be> writes:
> i am looking for a way to list the attributes for a given role. i looked into the docs but didn't find anything directly usable.

Look at the queries issued by psql for "\du"

> on a related problem, what actually happens when you issue a
> "ALTER ROLE someone SOME_ATTRIBUTES" if that user is connected to the db?
> (ie when do the changes happen and (for me more intersting) does something happen at all when the attributes are the same as the current ones?)

AFAIR, those changes will propagate when you commit, or at worst at the
user's next transaction start. I'm not sure if that code tries to
optimize out no-op catalog updates ... look in backend/commands/user.c
to find out.

regards, tom lane

In response to

  • alter role at 2006-01-21 11:48:36 from Stijn De Weirdt

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2006-01-22 00:23:33 Re: PostgreSQL Lite Version
Previous Message Jaime Casanova 2006-01-21 16:50:55 Re: Transferring DATA directory