Re: HUGE Stack space is gettiing consumed

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "Mavinakuli, Prasanna (STSD)" <prasanna(dot)b-m(at)hp(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: HUGE Stack space is gettiing consumed
Date: 2006-04-15 13:51:44
Message-ID: 20060415135144.GF22736@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Apr 14, 2006 at 09:13:26AM +0530, Mavinakuli, Prasanna (STSD) wrote:
> Hello All,
>
> We are getting very strange problem ..
>
> ********************************************************
> We Have one data field in some table..type of this field
> Is *TEXT*.
> We are storing around 1,000 (One Thousand) lines of text
> In that field.
>
> If it's run though separate thread,
> When we say select <columnname> from <tablename>
> We are getting
> *could not receive data from server: No such file or directory *
> messages without Result
>
> If it was in main thread,
> It Works fine.
> ********************************************************

So you have a multithreaded program. Have you setup something so that
you don't have two threads trying to do things with libpq at the same
time? Because that won't work.

Secondly, it can't have anything to do with stack-space because when
you run out of stack space you get a segmentation fault, not a nice
error.

Either post a complete example of the failure (with source code) or
perhaps the strace output would be enough.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message chris smith 2006-04-15 14:10:21 Re: Comparing text field
Previous Message Greg Sabino Mullane 2006-04-15 13:20:15 Re: enforce naming convention