Re: db "hot switch" - Mailing list pgsql-general

From Andreas Rust
Subject Re: db "hot switch"
Date
Msg-id 5.2.0.4.0.20030214131823.01d222c0@mail.webnova.de
Whole thread Raw
In response to db "hot switch"  (Pablo Varasa <pvarasa@prisacom.com>)
Responses Re: db "hot switch"
List pgsql-general
At 12:39 14.02.03, you wrote:
>         Hi all,
>
>         I want to actualize my postgresql version stopping the server
>the minimum time possible. I was thinking in turn the database to
>read-only state (selects will work normally), make a dump, restore the
>dump in the new installation and stop the server only the time needed to
>stop old postmaster and load the new one. The problem is that i don't
>know how to set readonly state. In mysql for example i left only select
>privilege on all users (first i backup users), but in pgsql i can't
>revoke or grant privileges to all users on *all databases* easily and i
>don't know how to backup only users without a pg_dumpall.
>
>         ¿Any suggestions? Thnx in advance

I recommend you compile your new postgres version with a different prefix path,
run the newly compiled postmaster on a port other than 5432 or even only
locally.
(with a different socket).

Whenever you got the new postmaster up and running just restore the dump you
create from your original postgres (do that dump after you saw your new
postmaster is running fine).
As soon as your postgres restore is complete, take down the old postmaster
and run the new one.

l8r


     Andreas Rust     -   webnova GmbH
     rust@webnova.de  -   www.webnova.de
     Tel:  +49 (0)234 - 912 96 10
     Fax:  +49 (0)234 - 912 96 15
+:----------------------------------------------------------:+
       Internet Solutions & Creative Design


pgsql-general by date:

Previous
From: Deepa
Date:
Subject: Diff between Primary key and non primary key select
Next
From: P G
Date:
Subject: What is the default timeout setting for connections to the db?