Unix Technical Forum

BUG #2862: ERROR: failed to build any 7-way joins

This is a discussion on BUG #2862: ERROR: failed to build any 7-way joins within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2862 Logged by: Sergey Email address: for.adv@gmail.com PostgreSQL version: 8.2.0-1 ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:29 AM
Sergey
 
Posts: n/a
Default BUG #2862: ERROR: failed to build any 7-way joins


The following bug has been logged online:

Bug reference: 2862
Logged by: Sergey
Email address: for.adv@gmail.com
PostgreSQL version: 8.2.0-1
Operating system: Windows XP Pro SP2
Description: ERROR: failed to build any 7-way joins
Details:

After migrating to 8.2 I received an error:
ERROR: failed to build any 7-way joins
SQL state: XX000

STATEMENT: select * from v_well_main w LEFT OUTER JOIN v_state_main s ON
(w."Id_well"=s."Id_wl") LEFT OUTER JOIN v_expl_main e ON
(w."Id_well"=e."Id_wl") where w."Id_dep"=7

View v_well_main contained statement:
SELECT w."Id_well", w."Name_wl", w."Num", w."Cod", c."Name" AS
"Categor_name", w."Inv_num", w."Balance", w."Obl", w."Reg", w."Sl_rada",
w."Latitude_deg", w."Latitude_min", w."Latitude_sec", w."Longitude_deg",
w."Longitude_min", w."Longitude_sec", w."Topograf_note", w."Passp_org",
w."Passp_date", w."Executor", w."Exec_phone", w."Director", w."Al_rotor",
w."Al_gr", w."dP", o."Id_org", o."Name", o."Address", o."EDRPOU", o."Phone",
b."Name" AS name_obl, b."KOATUU" AS obl_koatuu, r."Name" AS name_raj,
r."KOATUU" AS raj_koatuu, s."Name" AS sl, v."Id_dep", v."Name_dep", v."Typ",
v.obj_typ, v."Begin", v."End"
FROM v_well_obj v, "Categor_dic" c, "Well" w
LEFT JOIN "Obl_dic" b ON w."Obl" = b."Id_obl"
LEFT JOIN "Raj_dic" r ON w."Reg" = r."Id_raj"
LEFT JOIN "Sl_rad_dic" s ON w."Sl_rada" = s."Id_s"
LEFT JOIN "Org_dic" o ON w."Passp_org" = o."Id_org"
WHERE v."Id_well" = w."Id_well" AND c."Id_cat" = w."Categor"
ORDER BY w."Num";

The query was executed in pgAdmin III
If STATEMENT change to:
select * from v_well_main w where w."Id_dep"=113
then it executed OK

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:29 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #2862: ERROR: failed to build any 7-way joins

"Sergey" <for.adv@gmail.com> writes:
> After migrating to 8.2 I received an error:
> ERROR: failed to build any 7-way joins


I think this is already reported and fixed, but your test case looks a
bit different from the previous examples --- don't suppose you're in
a position to try it against CVS tip before we release 8.2.1?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

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 08:56 AM.


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