Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C84E5475E8A for ; Thu, 10 Oct 2002 03:46:19 -0400 (EDT) Received: from gate-w.wettzell.ifag.de (gate-w.ifag.de [141.74.1.1]) by postgresql.org (Postfix) with ESMTP id 7C0F6475E4D for ; Thu, 10 Oct 2002 03:46:18 -0400 (EDT) Received: by gate-w.wettzell.ifag.de (8.11.6/8.11.6) id g9A7kI504751 for pgsql-admin@postgresql.org; Thu, 10 Oct 2002 07:46:18 GMT Received: (from localhost) by gate-w.wettzell.ifag.de (MSCAN) id 2/gate-w.wettzell.ifag.de/smtp-gw/mscan; Thu Oct 10 07:46:18 2002 Message-ID: <3DA53046.8080007@wettzell.ifag.de> Date: Thu, 10 Oct 2002 09:46:14 +0200 From: Reiner Dassing Organization: BKG-Wettzell User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 X-Accept-Language: de, de-de, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Upgrade to new version Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/66 X-Sequence-Number: 5924 Hello all! I would like to ask what would be the best procedure to upgrade to a new version of PostgreSQL in a production system when there is a 'initdb' necessary? Situation: We are running PostgreSQL in a production system. There are about 1000 selects and about 100 inserts per minute. To upgrade to PostgreSQL 7.2.3 there is an 'initdb' necessary. The straight forward approach is to shut down the PostgreSQL server and restore the saved databases. But, this approach is not possible for us. We need a "smooth" switch over with a downtime of maximum 5 minutes. It is possible to set up an other filesystem and another PostgreSQL server with another port number to initdb the database and restore the databases and tables backuped at a given time. But meanwhile some new inserts (well a lot of them) did happen in the existing databases. How should the missed inserts be transferred to the new PostgreSQL server? What would you recommend for this switch? Thank you for your discussion! -- -- Mit freundlichen Gruessen / With best regards Reiner Dassing