Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id A8D829FB929 for ; Fri, 13 Apr 2007 20:47:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 66166-07 for ; Fri, 13 Apr 2007 20:47:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 0D1929FB6A4 for ; Fri, 13 Apr 2007 20:47:31 -0300 (ADT) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l3DNlYBq017230; Fri, 13 Apr 2007 16:47:34 -0700 Message-ID: <462016B3.5070703@commandprompt.com> Date: Fri, 13 Apr 2007 16:48:03 -0700 From: "Joshua D. Drake" User-Agent: Thunderbird 1.5.0.10 (X11/20070306) MIME-Version: 1.0 To: "Brooks, Jason" CC: pgsql-admin@postgresql.org Subject: Re: Restoring from older pg_dump files References: <796EF5B39103EE45A04CC2FFFCF130B9D80790@ala-mail08.corp.ad.wrs.com> In-Reply-To: <796EF5B39103EE45A04CC2FFFCF130B9D80790@ala-mail08.corp.ad.wrs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Fri, 13 Apr 2007 16:47:34 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/132 X-Sequence-Number: 25196 Brooks, Jason wrote: > Hello, > > I have a data file dumped from a pgsql database version 7.1.2. I am > having troubles restoring this data to a new database server version > 8.1.5. Are there some gotcha's involved, did the format change, or some > such? If you still have the 7.1.2 database use the 8.1.5 (you should be running 8.1.8) pg_dump to connect and make the backup. Then restore. J > > I have used the createdb command to make the basic database. it's when > I use the \i option in psql that I see invalid commands, syntax errors, > invalid roles, etc. > > The original file was created with pg_dump -cou. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Jason Brooks ~ (503) 641-3440 x1861 > Direct ~ (503) 924-1861 > Email to: jason.brooks@windriver.com > Twiki: http://twiki.wrs.com/do/view/Main/JasonBrooks > > Senior Systems Administration Analyst > Wind River Systems > 8905 SW Nimbus ~ Suite 255 > Beaverton, Or 97008 > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate PostgreSQL Replication: http://www.commandprompt.com/products/