Re: Multiple backend connections

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Paul M Foster <paulf(at)quillandmouse(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Multiple backend connections
Date: 2003-03-20 04:35:53
Message-ID: 20241.1048134953@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Paul M Foster <paulf(at)quillandmouse(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message john.murdoch 2003-03-20 04:36:12 Postmaster error (newbie questian)
Previous Message Doug McNaught 2003-03-20 04:14:43 Re: Multiple backend connections