agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: p.sun.fun@gmail.com
To: pgsql-sql@lists.postgresql.org
Subject: Re: libpq CREATE DATABASE operation from multiple treads
Date: Thu, 08 Oct 2020 15:41:01 -0500
Message-ID: <e11780112264fddbae35f53a3b26095f1789e413.camel@gmail.com> (raw)
In-Reply-To: <96718FB0-E258-4342-BD6E-BCE6603BCBD5@gmail.com>
References: <390804abe88e4e9da9049f6e05c841783acaca47.camel@gmail.com>
	<CAAfz9KOVPRptcva6T97+VgLhYbqMJGC07yHVHMW3Ugxki6y6dA@mail.gmail.com>
	<124ce8dff8402159f20dec1bc1ac27e26ee39c23.camel@gmail.com>
	<96718FB0-E258-4342-BD6E-BCE6603BCBD5@gmail.com>

On Thu, 2020-10-08 at 14:35 -0600, Rob Sargent wrote:
> > 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.  
aaaaand.... it works. Two databases have been created with return
status "COMMAND_OK".

> If you get the same error, I would say your server is in single user
> mode?
> 






view thread (18+ messages)  latest in thread

Message-ID: <e11780112264fddbae35f53a3b26095f1789e413.camel@gmail.com>
Permalink:  ../e11780112264fddbae35f53a3b26095f1789e413.camel@gmail.com/
Also on:    postgresql.org/message-id/e11780112264fddbae35f53a3b26095f1789e413.camel@gmail.com

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: p.sun.fun@gmail.com, pgsql-sql@lists.postgresql.org
  Subject: Re: libpq CREATE DATABASE operation from multiple treads
  In-Reply-To: <e11780112264fddbae35f53a3b26095f1789e413.camel@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox