Re: long sql "in" clause crashes server process (8.0 Release)

Tom Lane <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
"Magnus Hagander" <[email protected]> writes:
> On MingW, you add:
> -Wl,--stack=4194304
> to get 4Mb stack. At least the value increases in the header.

> And I can confirm that doing this fixes the problem and turns it into
> the error message about stack size. (But won't things crash again if I
> increase that one?

Sure.  The point is that Postgres doesn't have any way to determine the
allowed stack size, so you have to tell it.  Our alternatives here are
(a) to change the default max_stack_depth for Windows, or (b) to make the
platform adhere to the default expectation.  (b) looks easier.

> Patch attached.

Will apply.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.