X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 73DAED1B537 for ; Tue, 16 Sep 2003 13:12:10 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 03709-03 for ; Tue, 16 Sep 2003 10:12:03 -0300 (ADT) Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by svr1.postgresql.org (Postfix) with SMTP id 830C1D1B510 for ; Tue, 16 Sep 2003 10:11:58 -0300 (ADT) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Tue Sep 16 15:12:01 2003 +0200 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id PAA25047; Tue, 16 Sep 2003 15:12:00 +0200 (METDST) Message-ID: <3F670C20.CBCD7230@rodos.fzk.de> Date: Tue, 16 Sep 2003 15:12:00 +0200 From: Christoph Haller X-Mailer: Mozilla 4.77 [en] (X11; U; HP-UX B.10.20 9000/780) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org, tarabas1978@yahoo.com Subject: Re: Replicate database Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char 9C hex) in message header 'Received' Received: \234by rodos.fzk.de... ^ X-Spam-Status: No, hits=1.0 tagged_above=0.0 required=5.0 tests=RCVD_IN_ORBS, RCVD_IN_OSIRUSOFT_COM, USER_AGENT_MOZILLA_XM X-Spam-Level: * X-Archive-Number: 200309/34 X-Sequence-Number: 4452 > > Is there a way to replicate one-off(a copy of > duplicate) of an existing Postgres database. > Pretty late reply, hopefully not too late. Using the --template template option of the createdb command should do the trick. Refer to the manual for details. Regards, Christoph