Re: max length of sql select statement ? - Mailing list pgsql-sql

From markus brosch
Subject Re: max length of sql select statement ?
Date
Msg-id 1057743944.15655.12.camel@sam
Whole thread Raw
In response to Re: max length of sql select statement ?  (Rod Taylor <rbt@rbt.ca>)
Responses Re: max length of sql select statement ?  (Rod Taylor <rbt@rbt.ca>)
List pgsql-sql
On Mon, 2003-07-07 at 18:20, Rod Taylor wrote: 
> > Could be a solution?!
> > The question is - how long could the IN be?
> 
> I'm not sure about IN specifically, but I know you can do:
> SELECT * FROM table WHERE col = '<1GB long file>';
> It tends not to be friendly for Ram though :)


Hi again!

After I decided to use this statement (discussion two days ago!):
SELECT * FROM table WHERE columnX IN ('a', 'b', 'c', 'd', 'e', ... );

I got this error :-(((

java.sql.SQLException: ERROR:  Expression too complex: nesting depth
exceeds max_expr_depth = 10000

I was searching the web and only found this discussion:


http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&threadm=3B2EA1E9.843D940A%40selectacast.net&rnum=1&prev=/groups%3Fhl%3Dde%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26q%3DExpression%2Btoo%2Bcomplex%253A%2Bnesting%2Bdepth%2Bexceeds%2Bmax_expr_depth%2B%253D%2B10000%26btnG%3DGoogle%2BSuche

Maybe we can disuss that problem here again?! What exactly means
"max_expr_depth"? Thanks for any help
Cheers Markus




pgsql-sql by date:

Previous
From: "Rudi Starcevic"
Date:
Subject: Re: Logging select statements
Next
From: Matthew Horoschun
Date:
Subject: Re: Logging select statements