dbTalk Databases Forums  

[BUGS] BUG #2326: Problems Upgrading from 8.0.2

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2326: Problems Upgrading from 8.0.2 in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dan B.
 
Posts: n/a

Default [BUGS] BUG #2326: Problems Upgrading from 8.0.2 - 03-16-2006 , 05:13 PM







The following bug has been logged online:

Bug reference: 2326
Logged by: Dan B.
Email address: thedanburke (AT) hotmail (DOT) 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 (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2326: Problems Upgrading from 8.0.2 - 03-16-2006 , 11:37 PM






"Dan B." <thedanburke (AT) hotmail (DOT) com> writes:
Quote:
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


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.