pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Andreas Lange <andreas.lange@liu.se>
To: pgsql-bugs@postgresql.org
Subject: Re: Cannot dump 8.4.8 database using later versions
Date: Tue, 15 Nov 2011 09:36:18 +0100
Message-ID: <4EC22482.5010402@liu.se> (raw)
In-Reply-To: <4EC1B5BD.9010901@agliodbs.com>
References: <201111142313.pAENDep01085@momjian.us>
<4EC1B5BD.9010901@agliodbs.com>
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
view thread (11+ messages) latest in thread
Message-ID: <4EC22482.5010402@liu.se> Permalink: ../4EC22482.5010402@liu.se/ Also on: postgresql.org/message-id/4EC22482.5010402@liu.se ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-bugs@postgresql.org Cc: andreas.lange@liu.se Subject: Re: Cannot dump 8.4.8 database using later versions In-Reply-To: <4EC22482.5010402@liu.se> References: <201111142313.pAENDep01085@momjian.us> <4EC1B5BD.9010901@agliodbs.com> <4EC22482.5010402@liu.se> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox