Re: libpq CREATE DATABASE operation from multiple treads - Mailing list pgsql-sql

From Tom Lane
Subject Re: libpq CREATE DATABASE operation from multiple treads
Date
Msg-id 2624732.1602189148@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq CREATE DATABASE operation from multiple treads  (p.sun.fun@gmail.com)
List pgsql-sql
p.sun.fun@gmail.com writes:
> Thanks for the quick response. In the function that I execute in each
> thread, I create a new PGconn at the beginning. I expect that every
> function caller (thread) should use a unique PGconn. I would not expect
> that PGconn can be shared between threads. The documentation explicitly
> says that.

In that case you need to probe a little deeper.  What error message(s)
are you getting?  Is there anything relevant in the server's log?

            regards, tom lane



pgsql-sql by date:

Previous
From: p.sun.fun@gmail.com
Date:
Subject: Re: libpq CREATE DATABASE operation from multiple treads
Next
From: Rob Sargent
Date:
Subject: Re: libpq CREATE DATABASE operation from multiple treads