Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXVgw-0003er-LL for pgsql-bugs@arkaria.postgresql.org; Wed, 01 May 2013 11:59:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UXVgt-0004gT-CJ for pgsql-bugs@arkaria.postgresql.org; Wed, 01 May 2013 11:59:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXVgs-0004gN-JK for pgsql-bugs@postgresql.org; Wed, 01 May 2013 11:59:18 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXVgo-0000yH-FZ for pgsql-bugs@postgresql.org; Wed, 01 May 2013 11:59:18 +0000 Received: from [192.168.1.132] (ip-178-202-68-8.unitymediagroup.de [178.202.68.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: avo@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 4C2151B40DA; Wed, 1 May 2013 13:59:13 +0200 (CEST) Message-ID: <51810386.1000900@credativ.de> Date: Wed, 01 May 2013 13:59:02 +0200 From: "Adrian.Vondendriesch" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: BUG #8128: pg_dump (>= 9.1) failed while dumping a scheme named "old" from PostgreSQL 8.4 References: <15639.1367366007@sss.pgh.pa.us> In-Reply-To: <15639.1367366007@sss.pgh.pa.us> X-Enigmail-Version: 1.5.1 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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 01.05.2013 01:53, schrieb Tom Lane: > 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. I've tested the workaround and it works. But, because the error originaly happens when upgrading from 8.4 to 9.1, I'm interested in a way how I could force pg_upgrade to tell pg_dump to use this switch. IMO: When there is such a switch, it should be on by default when upgrading from 8.4 (or lower) to a version >= 9.1 to prevent this kind of error. Did I miss something that would break in this scenario when - --quote-all-identifiers is used by default while upgrading from <= 9.0? > > 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 > Regards - Adrian * Englisch - erkannt * Englisch * Deutsch * Englisch * Deutsch -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRgQN7AAoJEJg+KbLX08eJo+QH/3WUV9qj2WTv1YaBRL2A0BxJ 0xwYUEKKZn++E7wU7hJSstY9vS7uQJEnSicQT1GcEZREYwJkR2vqMZUUKX1aB2KU KnHLmRE3+4OWAIwNYIDOL00BMlAZ+brRkxWy7zERpMDkcsuo7v29rsWiwI0RggDf U+Dt/JZaMfWCEobo9dBFyW1jGOkOs378JMltWV71JUEW2MfAh24KTL35IjlK47Vi ZPYpFWsnLJDJlq33Lx7+GM9PIK/xRefXJZZLkjHaXcNMkTdu05nEsehuARcZt9Vz OW1k2W7IcktzlLsUOz2fuLwSDSITQKT5HvLeubFJOoFwtQrVOIBhw2VGC5phOYE= =nBRc -----END PGP SIGNATURE----- -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs