Unix Technical Forum

Re: error in cvs head: bogus varattno for OUTER var: 5

This is a discussion on Re: error in cvs head: bogus varattno for OUTER var: 5 within the pgsql Hackers forums, part of the PostgreSQL category; --> Jeremy Drake <pgsql@jdrake.com> writes: > psql:bogus_varattno_error.sql:23: ERROR: bogus varattno for OUTER var: 5 > Any ideas what is causing ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 07:20 AM
Tom Lane
 
Posts: n/a
Default Re: error in cvs head: bogus varattno for OUTER var: 5

Jeremy Drake <pgsql@jdrake.com> writes:
> psql:bogus_varattno_error.sql:23: ERROR: bogus varattno for OUTER var: 5


> Any ideas what is causing this?


This looks pretty nearly related to stuff I've been hacking on recently,
so I suppose I broke something :-(. Will take a closer look tomorrow.

regards, tom lane

---------------------------(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-12-2008, 07:20 AM
Jeremy Drake
 
Posts: n/a
Default Re: error in cvs head: bogus varattno for OUTER var: 5

On Sun, 25 Feb 2007, Tom Lane wrote:

> Jeremy Drake <pgsql@jdrake.com> writes:
> > psql:bogus_varattno_error.sql:23: ERROR: bogus varattno for OUTER var: 5

>
> > Any ideas what is causing this?

>
> This looks pretty nearly related to stuff I've been hacking on recently,
> so I suppose I broke something :-(. Will take a closer look tomorrow.


This should help. I managed to whiddle the example down even further.

CREATE TABLE a (
a_a text
);
CREATE TABLE b (
b_a text
);

CREATE TABLE b_chld () INHERITS (b);

EXPLAIN SELECT a_a FROM a LEFT JOIN b ON a_a = lower(b_a);


Results in:
ERROR: bogus varattno for OUTER var: 2

The function call and the inheritance are both required, remove either and
it works fine.

--
This is the ____LAST time I take travel suggestions from Ray Bradbury!

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-12-2008, 07:20 AM
Tom Lane
 
Posts: n/a
Default Re: error in cvs head: bogus varattno for OUTER var: 5

Jeremy Drake <pgsql@jdrake.com> writes:
> On Sun, 25 Feb 2007, Tom Lane wrote:
>> This looks pretty nearly related to stuff I've been hacking on recently,
>> so I suppose I broke something :-(. Will take a closer look tomorrow.


> This should help. I managed to whiddle the example down even further.


Pure brain fade :-(. Fix committed.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

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 11:39 PM.


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