Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXYAW-0008Fz-2c for pgsql-hackers@arkaria.postgresql.org; Wed, 01 May 2013 14:38:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UXYAV-0001fq-Jz for pgsql-hackers@arkaria.postgresql.org; Wed, 01 May 2013 14:38:03 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXYAU-0001fl-Tm for pgsql-hackers@postgresql.org; Wed, 01 May 2013 14:38:03 +0000 Received: from cronos.madness.at ([2a02:16a8:dc41::10]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXYAS-0008CB-Hr for pgsql-hackers@postgresql.org; Wed, 01 May 2013 14:38:02 +0000 Received: from mastermind.kaltenbrunner.cc ([2001:470:7a2d::22]) by cronos.madness.at with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1UXYAK-00036X-4a; Wed, 01 May 2013 16:37:54 +0200 Message-ID: <518128B4.3010604@kaltenbrunner.cc> Date: Wed, 01 May 2013 16:37:40 +0200 From: Stefan Kaltenbrunner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: David Fetter CC: Tom Lane , Adrian.Vondendriesch@credativ.de, PG Hackers Subject: Re: Re: [BUGS] BUG #8128: pg_dump (>= 9.1) failed while dumping a scheme named "old" from PostgreSQL 8.4 References: <15639.1367366007@sss.pgh.pa.us> <20130501142653.GB16330@fetter.org> In-Reply-To: <20130501142653.GB16330@fetter.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.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 05/01/2013 04:26 PM, David Fetter wrote: > 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. erm? I don't really see why we have any need to reserve something _on purpose_ when there is no technical reason to do so... > > 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. so why again do we want to create an(other) incompatibility hazard? Stefan -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers