Re: v8.3.4 metadata changes while users active

From: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
To: Bosco Rama <postgres(at)boscorama(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: v8.3.4 metadata changes while users active
Date: 2012-04-05 16:16:21
Message-ID: 0AD01C53605506449BA127FB8B99E5E10C368C91@FMSMSX105.amr.corp.intel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'll be running this as "postgres"
Thanks for the help.
Hope others may find this useful.

-----Original Message-----
From: Bosco Rama [mailto:postgres(at)boscorama(dot)com]
Sent: Thursday, April 05, 2012 12:04 PM
To: Gauthier, Dave
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] v8.3.4 metadata changes while users active

Gauthier, Dave wrote:
> Hmmm.... This sounds like it might work.
> There are, in fact, only 2 users (roles). Lets call them "selectuser" and "moduser"
> So, as the DBA, I just...
>
> alter role selectuser connection limit 0;
> alter role moduser connection limit 0;
>
> Then kick everyone off (I usually use "pg_ctl kill TERM <procpid>" to do this)
>
> Make changes as the DBA
> Then...
>
> alter role selectuser connection limit -1;
> alter role moduser connection limit -1;
>
> Done !
>
> Correct?

Yep. That should work. The only reservation I'd bring up here is that you
should be doing this as a user other than one of those two users. Otherwise
you may lock yourself out of the DB. I assume you'll be doing this as either
a PG superuser (e.g. postgres) or a user distinct from the two above.

HTH

Bosco.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sébastien Lardière 2012-04-05 16:21:01 Re: BD impossible à recharger
Previous Message Bosco Rama 2012-04-05 16:04:25 Re: v8.3.4 metadata changes while users active