Re: Problem with "create database ... with template "

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Problem with "create database ... with template "
Date: 2007-05-09 19:04:05
Message-ID: 46421B25.6060706@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Your test case simply shows that it takes a finite amount of time for
> the previous backend to exit; depending on scheduler priorities it's
> possible for the next instance to connect and try to CREATE DATABASE
> before the previous one is gone. My suggestion would be to connect
> to some other database besides the one being copied.
>
>
>

Didn't we invent the "postgres" database for just this reason?

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-05-09 19:18:12 Re: [PERFORM] Cannot make GIN intarray index be used by the planner
Previous Message Tom Lane 2007-05-09 18:31:54 Re: Problem with "create database ... with template "