Re: Upgrade and Single User

From: Tom Browder <tom(dot)browder(at)gmail(dot)com>
To: Bartosz Dmytrak <bdmytrak(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Upgrade and Single User
Date: 2012-09-21 15:03:06
Message-ID: CAFMGiz_sFA0DUu7oV3Reofa+gk8iSpx03aLsxAkQh897eFZt4g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, Sep 21, 2012 at 9:38 AM, Bartosz Dmytrak <bdmytrak(at)gmail(dot)com> wrote:
>
>
> 2012/9/19 Tom Browder <tom(dot)browder(at)gmail(dot)com>
>>
>> I want to upgrade my existing installation and would like to ensure
>> the db is not modified until I get the new installation running.
>>
>> Is there any way to restart into a single user mode so that a
>> pg_dumpall works as the superuser? Or am I limited to a stop, fiddle
>> with pg_hba.conf, restart, pg_dumpall, etc.?
>>
>> Thanks,
>>
>> -To
>> m
>>
>
> Hi
> according to doc
> (http://www.postgresql.org/docs/9.2/static/auth-pg-hba-conf.html):
> "If you edit the file on an active system, you will need to signal the
> postmaster (using pg_ctl reload or kill -HUP)"
>
> so, again according to doc
> (http://www.postgresql.org/docs/9.2/static/app-pg-ctl.html):
> "reload mode simply sends the postgres process a SIGHUP signal, causing it
> to reread its configuration files (postgresql.conf, pg_hba.conf, etc.). This
> allows changing of configuration-file options that do not require a complete
> restart to take effect."
>
> One advise:
> 1. change pg_hba.conf;
> 2. kill all user sessions (or kindly ask them to disconect);
> 3. reload configuration;
> 4. You're ready to updgrade.

Thanks, Bartek, that's what I was afraid of.

It would be nice to have such a postgres mode though for just such
things as an upgrade.

Best,

-Thanks

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Kupershmidt 2012-09-21 17:42:39 Re: Upgrade and Single User
Previous Message Bartosz Dmytrak 2012-09-21 14:44:34 Re: Issue with PERFORM