pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Upgrading from 7.4 to 8.1
4+ messages / 3 participants
[nested] [flat]

* Upgrading from 7.4 to 8.1
@ 2006-08-30 23:44 Naomi Walker <nwalker@eldocomp.com>
  2006-08-31 03:26 ` Re: Upgrading from 7.4 to 8.1 Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Naomi Walker @ 2006-08-30 23:44 UTC (permalink / raw)
  To: pgsql-admin; +Cc: William Bloom <wbloom@eldocomp.com>

We are preparing to upgrade to 8.1 from 7.4 Postrgres.  In this case, it is a Red Hat
Linux server.  Using the 8.1.4 pg_dumpall, pointed at the 7.4 instance, we get the
following errors.

Anyone know why?

Naomi



/applications/pgsql/8.1.4/bin/pg_dumpall   --
-- PostgreSQL database cluster dump
--

\connect postgres

--
-- Roles
--

CREATE ROLE "";
ALTER ROLE "" WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN;
pg_dumpall: query failed: ERROR:  type "e" does not exist
pg_dumpall: query was: SELECT useconfig[1] FROM pg_shadow WHERE usename = E'\003'


-- 
----------------------------------------------------------------------------
Naomi Walker                          Chief Information Officer
Eldorado Computing, Inc.              nwalker@eldocomp.com 602-604-3100
----------------------------------------------------------------------------
Far and away the best prize that life offers is the chance to work hard at
work worth doing.   - Theodore Roosevelt
----------------------------------------------------------------------------

-- CONFIDENTIALITY NOTICE --

Information transmitted by this e-mail is proprietary to MphasiS and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this e-mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailmaster@mphasis.com and delete this mail from your records.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Upgrading from 7.4 to 8.1
  2006-08-30 23:44 Upgrading from 7.4 to 8.1 Naomi Walker <nwalker@eldocomp.com>
@ 2006-08-31 03:26 ` Alvaro Herrera <alvherre@commandprompt.com>
  2006-08-31 18:09   ` Re: Upgrading from 7.4 to 8.1 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Alvaro Herrera @ 2006-08-31 03:26 UTC (permalink / raw)
  To: Naomi Walker <nwalker@eldocomp.com>; +Cc: pgsql-admin; William Bloom <wbloom@eldocomp.com>

Naomi Walker wrote:
> We are preparing to upgrade to 8.1 from 7.4 Postrgres.  In this case, it is a Red Hat
> Linux server.  Using the 8.1.4 pg_dumpall, pointed at the 7.4 instance, we get the
> following errors.

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)?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Upgrading from 7.4 to 8.1
  2006-08-30 23:44 Upgrading from 7.4 to 8.1 Naomi Walker <nwalker@eldocomp.com>
  2006-08-31 03:26 ` Re: Upgrading from 7.4 to 8.1 Alvaro Herrera <alvherre@commandprompt.com>
@ 2006-08-31 18:09   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2006-08-31 18:09 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@commandprompt.com>; +Cc: Naomi Walker <nwalker@eldocomp.com>; pgsql-admin; William Bloom <wbloom@eldocomp.com>

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Upgrading from 7.4 to 8.1
@ 2006-08-31 18:16 Naomi Walker <nwalker@eldocomp.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Naomi Walker @ 2006-08-31 18:16 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Alvaro Herrera <alvherre@commandprompt.com>; pgsql-admin; William Bloom <wbloom@eldocomp.com>

Thank you!  Yes, there was a bogus user with a name ^c, which we dropped.


Tom Lane wrote:
> 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


-- 
----------------------------------------------------------------------------
Naomi Walker                          Chief Information Officer
Eldorado Computing, Inc.              nwalker@eldocomp.com 602-604-3100
----------------------------------------------------------------------------
Far and away the best prize that life offers is the chance to work hard at
work worth doing.   - Theodore Roosevelt
----------------------------------------------------------------------------

-- CONFIDENTIALITY NOTICE --

Information transmitted by this e-mail is proprietary to MphasiS and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this e-mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailmaster@mphasis.com and delete this mail from your records.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2006-08-31 18:16 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-08-30 23:44 Upgrading from 7.4 to 8.1 Naomi Walker <nwalker@eldocomp.com>
2006-08-31 03:26 ` Alvaro Herrera <alvherre@commandprompt.com>
2006-08-31 18:09   ` Tom Lane <tgl@sss.pgh.pa.us>
2006-08-31 18:16 Re: Upgrading from 7.4 to 8.1 Naomi Walker <nwalker@eldocomp.com>

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