Re: expression_tree_walker: Unexpected node type 711 - Mailing list pgsql-sql

From Tom Lane
Subject Re: expression_tree_walker: Unexpected node type 711
Date
Msg-id 444.1093796815@sss.pgh.pa.us
Whole thread Raw
In response to expression_tree_walker: Unexpected node type 711  (Ian Percival <ian@emergence.com>)
List pgsql-sql
Ian Percival <ian@emergence.com> writes:
> SQL THAT IS THROWING ERROR:
> select
>   calendar_date
> from
>   official_hour
> where
>   official_hour is not null
>   and office_closed = False
>   and calendar_date >= date'2004/01/01'
>   and calendar_date <= date'2004/08/23'
> order by
>   calendar_date

> RESULTS:
> ProgrammingError: ERROR:  expression_tree_walker: Unexpected node type 711

> Anyone see something here I don't?

7.4 will give a more helpful error message:

ERROR:  relation reference "official_hour" cannot be used in an expression
        regards, tom lane


pgsql-sql by date:

Previous
From: Ian Percival
Date:
Subject: expression_tree_walker: Unexpected node type 711
Next
From: Rosser Schwarz
Date:
Subject: function fails where individual statements succeed