Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DBBAA17A628 for ; Tue, 15 Nov 2011 04:42:39 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 56959-10 for ; Tue, 15 Nov 2011 08:42:33 +0000 (UTC) X-Greylist: delayed 00:05:59.20014 by SQLgrey-1.8.0-rc2 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 3D69017A627 for ; Tue, 15 Nov 2011 04:42:33 -0400 (AST) Received: from munin.unit.liu.se ([130.236.230.179]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RQEVM-0008WD-IU for pgsql-bugs@postgresql.org; Tue, 15 Nov 2011 08:36:33 +0000 Received: from localhost (localhost [127.0.0.1]) by munin.unit.liu.se (Postfix) with ESMTP id 9D101279996 for ; Tue, 15 Nov 2011 09:36:19 +0100 (CET) X-Virus-Scanned: amavisd-new at liu.se Received: from munin.unit.liu.se ([127.0.0.1]) by localhost (munin.unit.liu.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EkS35EtkkbWH for ; Tue, 15 Nov 2011 09:36:19 +0100 (CET) Received: from HC4.ad.liu.se (hc4.ad.liu.se [130.236.8.143]) by munin.unit.liu.se (Postfix) with ESMTP id 7EE68279967 for ; Tue, 15 Nov 2011 09:36:19 +0100 (CET) Received: from lap-71.ida.liu.se (130.236.182.102) by HC4.ad.liu.se (130.236.8.134) with Microsoft SMTP Server (TLS) id 8.3.213.0; Tue, 15 Nov 2011 09:36:19 +0100 Message-ID: <4EC22482.5010402@liu.se> Date: Tue, 15 Nov 2011 09:36:18 +0100 From: Andreas Lange User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 To: Subject: Re: Cannot dump 8.4.8 database using later versions References: <201111142313.pAENDep01085@momjian.us> <4EC1B5BD.9010901@agliodbs.com> In-Reply-To: <4EC1B5BD.9010901@agliodbs.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201111/107 X-Sequence-Number: 31702 On 2011-11-15 v46 01.43, Josh Berkus wrote: >>> ... somehow the query to dump the sequences is getting mangled. Any >>> clue how? >> Seems you have a sequence called "new"; seems we don't handle that >> well. > So, tested this some more. For some reason, 8.4's pg_dump would > recognize NEW as a reserved word and quote it before dumping. 9.0 and > later pg_dump does not. Any ideas? > Funny, I was about to write a bug report regarding this... 'new' was reserved in 8.4, but not in 9.0/9.1. It's reserved in SQL 1999, 2003 & 2008. (http://www.postgresql.org/docs/9.1/interactive/sql-keywords-appendix.html) You can have a 8.4 DB with a 'new' column and dump it with 8.4 tools. You can have a 9.x DB with a 'new' column and dump it with 9.x tools. However, it fails when you use 9.x pg_dump against 8.4 with a 'new' column. //Andreas