Re: Libpq and multithreading

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Alban Hertroys <haramrae(at)gmail(dot)com>
Cc: Asia <asia123321(at)op(dot)pl>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Libpq and multithreading
Date: 2013-01-14 15:05:53
Message-ID: CAHyXU0ymY6Jydnd2efqeDdUpQ0y5Kyk4T=9d-cs_gKXB+CXVvg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jan 14, 2013 at 8:28 AM, Alban Hertroys <haramrae(at)gmail(dot)com> wrote:
> An access violation means that you're trying to access memory that doesn't
> belong to your process. I'm not sure where it's originating, that could be
> the server but I suspect the issue is at the client-side.
>
> You're probably just forgetting to free memory somewhere.

Or freeing the connection and then another thread attempts to use it.
This might even "work" a couple of times without crashing.

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Verite 2013-01-14 15:23:36 Re: VALUES() evaluation order
Previous Message aasat 2013-01-14 14:29:54 Re: How to store clickmap points?