Re: error regarding creating a database

From: Grzegorz Szpetkowski <gszpetkowski(at)gmail(dot)com>
To: siva kiran balijepalli <b(dot)sivakiran(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: error regarding creating a database
Date: 2011-05-02 10:54:34
Message-ID: BANLkTikhdLxCN3eUVD0k-0cyOj0pn5QjLw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

2011/5/2 siva kiran balijepalli <b(dot)sivakiran(at)gmail(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Francisco Leovey 2011-05-02 11:58:29 Re: PgAdmin no longer works on a "clean install" XP SP2
Previous Message Andreas Kretschmer 2011-05-02 07:30:18 Re: error regarding creating a database