On Mon, Jan 14, 2013 at 9:57 AM, Asia <asia123321@xxxxx> wrote: > It is not possible because connection is local variable in both thread functions, no common variables are used. > > I checked that it also crashes without SSL. Two threads connecting to the same server, different databases. hm, where is your libpq coming from -- is it possible you are using the non thread-safe variant? are you 100% sure there is no thread interplay on the connection itself? is it possible to get a backtrace for the access violation? merlin -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general