Re: Create Data Base fails

From: Martin Marques <martin(at)bugs(dot)unl(dot)edu(dot)ar>
To: Andrew Gould <andrewgould(at)yahoo(dot)com>, phppgadmin-users(at)lists(dot)sourceforge(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Create Data Base fails
Date: 2003-07-01 14:09:41
Message-ID: 200307011109.41936.martin@bugs.unl.edu.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mar 01 Jul 2003 10:11, Andrew Gould wrote:
> Are you using advanced authentication in phppgadmin?
>
> Could this be caused when phppgadmin is configured to
> have the database superuser connect to template1 to
> manage user logins?

phpPgAdmin has nothing to do, now that I made some tests.

1) I conected to template1 using user postgres using psql
2) With user bbuser (which can create databases) I try to create a
database from inside psql:

phpbb=> create database pruebatp;
ERROR: CREATE DATABASE: source database "template1" is being accessed by
other users
phpbb=>

So it seems that when template1 is been accessed, create database can't be
used (there seems to be a good reason for that, no?).

Now, could this be a problem with phpPgAdmin conecting by default to
template1?

--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | mmarques(at)unl(dot)edu(dot)ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message S.Peppe 2003-07-01 14:10:23 ERROR: Relation "pg_user" does not exist
Previous Message Bruno Wolff III 2003-07-01 14:07:24 Re: updating data but the constraint is set "immediate"