Re: Needs Suggestion - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Needs Suggestion
Date
Msg-id 24960.1285166029@sss.pgh.pa.us
Whole thread Raw
In response to Needs Suggestion  (subham@cse.iitb.ac.in)
List pgsql-hackers
subham@cse.iitb.ac.in writes:
> How can I increase the stack depth limit ? Is it only by modifying the
> postgres.conf file, but there I cannot increase the stack depth beyond 4
> MB.

> Actually, my problem is that, when I set the stack base address of the
> child thread using the POSIX library function "pthread_setstackaddr()", I
> am unable to access the memory contents of its parent.

You've got worse problems than the stack depth limit.  Creating multiple
threads inside a backend process is entirely unsupported and just about
guaranteed to result in massive breakage.  Don't do it.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Git cvsserver serious issue
Next
From: Tom Lane
Date:
Subject: Re: SQLSTATE of notice PGresult