Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 5C4562E2E71 for ; Thu, 15 Nov 2007 00:14:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 96189-05 for ; Thu, 15 Nov 2007 00:14:31 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by postgresql.org (Postfix) with ESMTP id 0D3852E2B28 for ; Thu, 15 Nov 2007 00:14:31 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id lAF4EUsM075322 for ; Thu, 15 Nov 2007 00:14:30 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id lAF4CXWc075105 for pgsql-admin@postgresql.org; Thu, 15 Nov 2007 00:12:33 -0400 (AST) (envelope-from news) From: "Marc G. Fournier From": X-Newsgroups: pgsql.admin Subject: Upgrading a database with pg_dumpall / psql ... Date: Thu, 15 Nov 2007 04:12:33 +0000 (UTC) Organization: Hub.Org Networking Services Lines: 35 Message-ID: X-Complaints-To: usenet@news.hub.org User-Agent: nn/6.7.3 To: pgsql-admin@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/136 X-Sequence-Number: 27379 This is one of those 'stupid questions I hate to ask' ... I've rechecked the docs to make sure I haven't missed something stupid, and unless I'm blind, I haven't ... I'm trying to upgrade a database from 8.1 -> 8.2 ... on a seperate server, with 8.2 pg_dump already installed, I do: pg_dumpall -U pgsql -h > dump.sql Works great. Then I upgrade the 8.1 server to 8.2, initdb, and try and do the restore doing: psql -U pgsql -h template1 < dump.sql And get a whack of: invalid command \n invalid command \ invalid command \ni invalid command \ invalid command \n invalid command \n invalid command \. and other errors ... so I'm obviously missing something that is probably obvious to everyone else ... am I dumping wrong? If I use '--inserts', it, of course, works like a charm, its only when I try and use COPY ... -- ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664