X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F1BC95E46CF for ; Tue, 24 Aug 2004 11:47:08 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 07800-03 for ; Tue, 24 Aug 2004 14:47:10 +0000 (GMT) Received: from mail1.virtual-email.net (Mail2.virtual-email.net [213.228.203.184]) by svr1.postgresql.org (Postfix) with ESMTP id 568665E46EB for ; Tue, 24 Aug 2004 11:46:59 -0300 (ADT) Received: from mail2.virtual-email.net ([213.228.203.173] RDNS failed) by mail1.virtual-email.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 24 Aug 2004 15:47:03 +0100 Received: from mail4.virtual-email.net ([213.228.203.171]) by mail2.virtual-email.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 24 Aug 2004 15:47:03 +0100 thread-index: AcSJ6Te6883iZmH8RuWUn4n6g0oz/g== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.132 Received: from albourne.com ([213.207.142.99]) by mail4.virtual-email.net with Microsoft SMTPSVC(6.0.3790.0); Tue, 24 Aug 2004 15:46:49 +0100 Message-ID: <412B54E7.9050106@albourne.com> Date: Tue, 24 Aug 2004 17:47:03 +0300 From: "Antonis Antoniou" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Edgars" Cc: Subject: Re: pg dump restore References: <412B1800.2010909@inbox.lv> In-Reply-To: <412B1800.2010909@inbox.lv> Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 24 Aug 2004 14:46:49.0219 (UTC) FILETIME=[2F997D30:01C489E9] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/229 X-Sequence-Number: 14624 Edgars wrote: > Hi all! > > such an easy question - i've dumped one of my postgresql databases in > one file names 'first'. So now i want to put the structure of this old > DB to another one named 'second'. How should i proceed with this? I think your question is not clear If the 'first' is a database name then you will have to create a new database (createdb) 'second'. http://www.postgresql.org/docs/7.4/static/backup.html