pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
alter role
2+ messages / 2 participants
[nested] [flat]

* alter role
@ 2006-01-21 11:48 Stijn De Weirdt <sdeweird@vub.ac.be>
  2006-01-21 17:54 ` Re: alter role Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Stijn De Weirdt @ 2006-01-21 11:48 UTC (permalink / raw)
  To: pgsql-admin

hi all,

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.

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?)

many thanks

stijn




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: alter role
  2006-01-21 11:48 alter role Stijn De Weirdt <sdeweird@vub.ac.be>
@ 2006-01-21 17:54 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2006-01-21 17:54 UTC (permalink / raw)
  To: Stijn De Weirdt <sdeweird@vub.ac.be>; +Cc: pgsql-admin

Stijn De Weirdt <sdeweird@vub.ac.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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-01-21 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-21 11:48 alter role Stijn De Weirdt <sdeweird@vub.ac.be>
2006-01-21 17:54 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox