From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Naomi Walker <nwalker@eldocomp.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Cc: William Bloom <wbloom@eldocomp.com>
Subject: Re: Upgrading from 7.4 to 8.1
Date: Thu, 31 Aug 2006 14:09:53 -0400
Message-ID: <22111.1157047793@sss.pgh.pa.us> (raw)
In-Reply-To: <20060831032626.GM22618@alvh.no-ip.org>
References: <44F622E0.6040009@eldocomp.com>
<20060831032626.GM22618@alvh.no-ip.org>
Alvaro Herrera <alvherre@commandprompt.com> writes:
> What are the exact options? I tried to reproduce it here, using a 8.1
> and 8.2 pg_dumpall, and a 7.4 server, and couldn't.
>> CREATE ROLE "";
>> ALTER ROLE "" WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN;
> This is weird anyway -- do you really have a role named "" (empty
> string)?
It's not "empty string", it's '\003' as shown by the failure:
query was: SELECT useconfig[1] FROM pg_shadow WHERE usename = E'\003'
The problem is evidently that appendStringLiteral tries to use E syntax
in an inappropriate context, ie, while talking to a server that doesn't
understand it. This is fixed in HEAD (by using appendStringLiteralConn)
but I'm not sure if there is any very good way to fix it in the back
branches.
In the short term, Naomi's best workaround is surely to drop or rename
that user ... it hardly seems likely that the name is anything but a
typo.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@commandprompt.com, nwalker@eldocomp.com, wbloom@eldocomp.com
Subject: Re: Upgrading from 7.4 to 8.1
In-Reply-To: <22111.1157047793@sss.pgh.pa.us>
References: <44F622E0.6040009@eldocomp.com> <20060831032626.GM22618@alvh.no-ip.org> <22111.1157047793@sss.pgh.pa.us>
* 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