Re: alter role

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stijn De Weirdt <sdeweird@xxxxxxxxx> 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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux