Unix Technical Forum

BUG #2326: Problems Upgrading from 8.0.2

This is a discussion on BUG #2326: Problems Upgrading from 8.0.2 within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2326 Logged by: Dan B. Email address: thedanburke@hotmail.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:50 AM
Dan B.
 
Posts: n/a
Default BUG #2326: Problems Upgrading from 8.0.2


The following bug has been logged online:

Bug reference: 2326
Logged by: Dan B.
Email address: thedanburke@hotmail.com
PostgreSQL version: 8.1.3
Operating system: Mac OS X 10.4.1
Description: Problems Upgrading from 8.0.2
Details:

I'm trying to restore a database dumpall from postgres 8.0.2 to an 8.1.3
installation on the same machine but have encountered an error which has
resulted in some views not being recreated.

the problem is with the following statement in the dump file:

"CREATE VIEW wamp_product_extdesc AS
SELECT contenttranslation.franchise_code,
contenttranslation.contentobject_id,
"language".code AS language_code,
"language".uid AS language_id,
contenttranslation.info,
contenttranslation.graphic_url,
contenttranslation.contenttype_id,
contenttype.info AS contenttype_code
FROM contenttranslation, "language" contenttype
WHERE (("language".uid = contenttranslation.language_id) AND
(contenttype.uid = contenttranslation.contenttype_id));"

Which results in:
" psql:backuptoday.bak:5182: ERROR: missing FROM-clause entry for table
"language" "

Any help would be appreciated,
Dan

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:50 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #2326: Problems Upgrading from 8.0.2

"Dan B." <thedanburke@hotmail.com> writes:
> I'm trying to restore a database dumpall from postgres 8.0.2 to an 8.1.3
> installation on the same machine but have encountered an error which has
> resulted in some views not being recreated.
> ...
> " psql:backuptoday.bak:5182: ERROR: missing FROM-clause entry for table
> "language" "


You can reload that view by turning on add_missing_from first.
Re-dumping it will show it in the correct format with an additional
FROM entry.

Note: it seems highly likely to me that that view doesn't do what it's
supposed to anyway, and that you ought to change it. What you've got
there is a partially constrained 3-way join using two scans of the
language table ... is that what you meant? But if you want to reload it
with the same behavior it has now, add_missing_from is your friend.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:10 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com