Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXXzm-00075x-VR for pgsql-hackers@arkaria.postgresql.org; Wed, 01 May 2013 14:26:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UXXzm-0005gT-Ga for pgsql-hackers@arkaria.postgresql.org; Wed, 01 May 2013 14:26:58 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXXzl-0005gO-QF for pgsql-hackers@postgresql.org; Wed, 01 May 2013 14:26:57 +0000 Received: from 173-164-140-181-sfba.hfc.comcastbusiness.net ([173.164.140.181] helo=fetter.org) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXXzj-00081h-5A for pgsql-hackers@postgresql.org; Wed, 01 May 2013 14:26:57 +0000 Received: by fetter.org (Postfix, from userid 500) id 00B0E300354; Wed, 1 May 2013 07:26:53 -0700 (PDT) Date: Wed, 1 May 2013 07:26:53 -0700 From: David Fetter To: Tom Lane Cc: Adrian.Vondendriesch@credativ.de, PG Hackers Subject: Re: [BUGS] BUG #8128: pg_dump (>= 9.1) failed while dumping a scheme named "old" from PostgreSQL 8.4 Message-ID: <20130501142653.GB16330@fetter.org> References: <15639.1367366007@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15639.1367366007@sss.pgh.pa.us> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Tue, Apr 30, 2013 at 07:53:27PM -0400, Tom Lane wrote: > Adrian.Vondendriesch@credativ.de writes: > > [ recent pg_dump fails against an 8.4 server if "old" is used as a > > name ] > > Yeah. The reason for this is that "old" was considered a reserved > word in 8.4 and before, but since 9.0 it is not reserved (indeed it > isn't a keyword at all anymore), so 9.0 and later pg_dump don't > think they need to quote it in commands. According to SQL:2003 and SQL:2008 (and the draft standard, if that matters) in section 5.2 of Foundation, both NEW and OLD are reserved words, so we're going to need to re-reserve them to comply. Sadly, this will cause problems for people who have tables with those names, but we've introduced incompatibilities (in 8.3, e.g.) that hit a much bigger part of our user base much harder than this. When we do re-reserve, we'll need to come up with a migration path. Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fetter@gmail.com iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers