Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXKMb-0002UQ-Qi for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Apr 2013 23:53:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UXKMb-0005eH-8L for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Apr 2013 23:53:37 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXKMZ-0005d3-Hf for pgsql-bugs@postgresql.org; Tue, 30 Apr 2013 23:53:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXKMT-0002cw-6Z for pgsql-bugs@postgresql.org; Tue, 30 Apr 2013 23:53:35 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r3UNrRlX015640; Tue, 30 Apr 2013 19:53:27 -0400 (EDT) From: Tom Lane To: Adrian.Vondendriesch@credativ.de cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8128: pg_dump (>= 9.1) failed while dumping a scheme named "old" from PostgreSQL 8.4 In-reply-to: References: Comments: In-reply-to Adrian.Vondendriesch@credativ.de message dated "Tue, 30 Apr 2013 15:40:35 -0000" Date: Tue, 30 Apr 2013 19:53:27 -0400 Message-ID: <15639.1367366007@sss.pgh.pa.us> X-Pg-Spam-Score: -4.4 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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. De-reserving a keyword happens sufficiently rarely that it doesn't really seem worth teaching pg_dump about such cases. There is a workaround, which is to use the --quote-all-identifiers switch when dumping from a server with an incompatible idea of the set of reserved keywords. For the archives' sake, it might be worth noting that --quote-all-identifiers was added in 9.1, which means that 9.0 pg_dump is vulnerable to this problem and has no workaround. That's a bit annoying, but I rather doubt we'll take the trouble to back-port --quote-all-identifiers into 9.0 at this point. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs