Re: error regarding creating a database - Mailing list pgsql-novice

From Grzegorz Szpetkowski
Subject Re: error regarding creating a database
Date
Msg-id BANLkTikhdLxCN3eUVD0k-0cyOj0pn5QjLw@mail.gmail.com
Whole thread Raw
In response to error regarding creating a database  (siva kiran balijepalli <b.sivakiran@gmail.com>)
List pgsql-novice
2011/5/2 siva kiran balijepalli <b.sivakiran@gmail.com>:
> Hi everybody
> i have a error while conencting to the database.
> i am trying to creating a database from the client on a server
> and it is reporting the following error..
>
> This is the command
> " create database siva_test with owner=siva"
> error: source database "template1" is being accessed by other users
>
>
> please help me regarding this
> thanks & regards
> sivakiran .B

If your template0 is same as template1 (probably it is), then you can also use:

create database siva_test with owner=siva template=template0

Regards
Grzegorz Szpetkowski

pgsql-novice by date:

Previous
From: Andreas Kretschmer
Date:
Subject: Re: error regarding creating a database
Next
From: Francisco Leovey
Date:
Subject: Re: PgAdmin no longer works on a "clean install" XP SP2