Re: Multiple backend connections - Mailing list pgsql-general

From Tom Lane
Subject Re: Multiple backend connections
Date
Msg-id 20241.1048134953@sss.pgh.pa.us
Whole thread Raw
In response to Re: Multiple backend connections  (Paul M Foster <paulf@quillandmouse.com>)
Responses Re: Multiple backend connections  (Paul M Foster <paulf@quillandmouse.com>)
List pgsql-general
Paul M Foster <paulf@quillandmouse.com> writes:
>> What is the exact error you're getting in the C program?

> ERROR: CREATE DATABASE: source database "template1" is being accessed by
> other users

Please note this is CREATE DATABASE complaining, *not* connection
establishment.  You can't create a database by cloning an open database
(there are not locks that would make this safe).  Either don't use
template1 for normal operations, or use template0 as the template for
CREATE DATABASE.

            regards, tom lane

pgsql-general by date:

Previous
From: James Gregory
Date:
Subject: Re: trigger troubles
Next
From: john.murdoch@ig.com.br
Date:
Subject: Postmaster error (newbie questian)