From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stijn De Weirdt <sdeweird@vub.ac.be>
Cc: pgsql-admin@postgresql.org
Subject: Re: alter role
Date: Sat, 21 Jan 2006 12:54:34 -0500
Message-ID: <18532.1137866074@sss.pgh.pa.us> (raw)
In-Reply-To: <20060121114836.C7E7C8D07@mach.vub.ac.be>
References: <20060121114836.C7E7C8D07@mach.vub.ac.be>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, sdeweird@vub.ac.be
Subject: Re: alter role
In-Reply-To: <18532.1137866074@sss.pgh.pa.us>
References: <20060121114836.C7E7C8D07@mach.vub.ac.be> <18532.1137866074@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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