From: | Alban Hertroys <haramrae(at)gmail(dot)com> |
---|---|
To: | Asia <asia123321(at)op(dot)pl> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Libpq and multithreading |
Date: | 2013-01-14 14:28:22 |
Message-ID: | CAF-3MvOocoxh4moZqKXN3=Y9YHqbi0PqPjmrEHJ7ytzg9yA+JA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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.
On 14 January 2013 13:50, Asia <asia123321(at)op(dot)pl> wrote:
> I am using 2 threads, each declares seperate PGconn conenction object.
>
> It connects e.g. 60 times, one connection from one thread, the other
> connection from the other thread, usually one after each other.
> And it fails at 61'st connection with access violation.
>
> I already tried with PQconnect and PQsetdbLogin. I am using mututal SSL
> authentication with this connections, maybe this is the case?
>
> Kind regards,
> Joanna
>
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.
From | Date | Subject | |
---|---|---|---|
Next Message | aasat | 2013-01-14 14:29:54 | Re: How to store clickmap points? |
Previous Message | aasat | 2013-01-14 14:26:31 | Re: How to store clickmap points? |