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

From Rob Sargent
Subject Re: libpq CREATE DATABASE operation from multiple treads
Date
Msg-id 96718FB0-E258-4342-BD6E-BCE6603BCBD5@gmail.com
Whole thread Raw
In response to Re: libpq CREATE DATABASE operation from multiple treads  (p.sun.fun@gmail.com)
Responses Re: libpq CREATE DATABASE operation from multiple treads  (p.sun.fun@gmail.com)
List pgsql-sql

> On Oct 8, 2020, at 2:30 PM, p.sun.fun@gmail.com wrote:
>
> Indeed, this is a FATAL_ERROR. From two threads I got:
>
> // Thread #1
> FATAL_ERROR: ERROR:  source database "template1" is being accessed by
> other users
> DETAIL:  There is 1 other session using the database.
>
> // Thread #2
> FATAL_ERROR: ERROR:  source database "template1" is being accessed by
> other users
> DETAIL:  There is 1 other session using the database.
>
I would try using dbname=postgres.  If you get the same error, I would say your server is in single user mode?




pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: libpq CREATE DATABASE operation from multiple treads
Next
From: Tom Lane
Date:
Subject: Re: libpq CREATE DATABASE operation from multiple treads