stack depth limit exceeded - patch possible?

From: Alexander Wöhrer <woehrer(at)par(dot)univie(dot)ac(dot)at>
To: pgsql-hackers(at)postgresql(dot)org
Subject: stack depth limit exceeded - patch possible?
Date: 2008-04-12 18:56:13
Message-ID: 480105CD.6040607@par.univie.ac.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dear PostGre developers,

I'm working on Windows XP SP2 (stack limit set to 3500 kb) and deployed
successfully my Java application (doing some external Web service calling)
inside PostGre 8.3.0.

Unfortunatelly, the application needs at least 3 Threads and will run
for quite some time.

I found this comment

http://pgfoundry.org/pipermail/pljava-dev/2005/000491.html

by Thomas Hallgren where he mentioned that PostGre only defines
one stack and therefor pl/java has no way of telling PostGre
about multiple thread stack pointers.

As far as I understand the situation, the check_stack_depth()
is used "just" to provide better stability/security?

I'm not concerned about stability at all - just want to get
my things running for a proof-of-concept research prototype :)

My question is now if there is a patched version available of PostGre
8.3.0 having this stack_depth check disabled?
If so I would be very glad if you can point me to!

If not, can you tell me if

void check_stack_depth(void) in \src\backend\tcop\postgres.c

is the only place where to change something
(in my case just do nothing or report a warning)?

My C developer times are long gone but I would try to make a patched PostGre 8.3 version
myself.

Regards,

Alexander

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2008-04-12 19:16:14 Re: stack depth limit exceeded - patch possible?
Previous Message Alexander Wöhrer 2008-04-12 18:51:05 [Pljava-dev] stack depth limit exceeded - patch possible?