Re: can't create db from PHP - Mailing list pgsql-admin

From Tom Lane
Subject Re: can't create db from PHP
Date
Msg-id 29946.1074268062@sss.pgh.pa.us
Whole thread Raw
In response to can't create db from PHP  (Enrico Ortmann <pg.admin@radax.net>)
List pgsql-admin
Enrico Ortmann <pg.admin@radax.net> writes:
> But when I connect using the IP-adress instead of the alias
> $conn = @pg_pconnect("host=192.168.0.200 port=5432 user=postgres dbname=template1");
> the handle is valid as well, but then if I want to create the database I got the error
> ERROR:  CREATE DATABASE: source database "template1" is being accessed by other users

> Does anybody have an idea what goes wrong in case I use the IP?

This message has nothing to do with how you connect.  I suspect you
forgot to disconnect the other connection.

            regards, tom lane

pgsql-admin by date:

Previous
From: Jeff
Date:
Subject: Re: Snapshot as Backup
Next
From: Tom Lane
Date:
Subject: Re: Protect pg_xlog ?