Re: [GENERAL] Manually clearing "database "foo" is being accessed by other users"

2007-09-25 Thread Madison Kelly
Steve Crawford wrote: > Sysadmin wrote: >> Hi all, >> >> I'm finding that routinely when I try to reload a database on a server >> where I know there are no connections to a given DB I get the error: >> >> $ dropdb foo && createdb foo -O bar && psql foo -f /path/to/db.out >> dropdb: database remo

Re: [GENERAL] Manually clearing "database "foo" is being accessed by other users"

2007-09-20 Thread Ilan Volow
Two vaguely helpful comments: 1. Sometimes this has happened to me when I unknowingly have two terminal psql processes running on the same machine that I'm using to connect to the server. Everyone but yourself may be off the database, but there may be two instances of yourself. :) 2. I've

Re: [GENERAL] Manually clearing "database "foo" is being accessed by other users"

2007-09-20 Thread Sysadmin
Tom Lane wrote: > Sysadmin <[EMAIL PROTECTED]> writes: >> I'm finding that routinely when I try to reload a database on a server >> where I know there are no connections to a given DB I get the error: > >> $ dropdb foo && createdb foo -O bar && psql foo -f /path/to/db.out >> dropdb: database rem

Re: [GENERAL] Manually clearing "database "foo" is being accessed by other users"

2007-09-20 Thread Steve Crawford
Sysadmin wrote: > Hi all, > > I'm finding that routinely when I try to reload a database on a server > where I know there are no connections to a given DB I get the error: > > $ dropdb foo && createdb foo -O bar && psql foo -f /path/to/db.out > dropdb: database removal failed: ERROR: database

Re: [GENERAL] Manually clearing "database "foo" is being accessed by other users"

2007-09-20 Thread Tom Lane
Sysadmin <[EMAIL PROTECTED]> writes: > I'm finding that routinely when I try to reload a database on a server > where I know there are no connections to a given DB I get the error: > $ dropdb foo && createdb foo -O bar && psql foo -f /path/to/db.out > dropdb: database removal failed: ERROR: dat

[GENERAL] Manually clearing "database "foo" is being accessed by other users"

2007-09-20 Thread Sysadmin
Hi all, I'm finding that routinely when I try to reload a database on a server where I know there are no connections to a given DB I get the error: $ dropdb foo && createdb foo -O bar && psql foo -f /path/to/db.out dropdb: database removal failed: ERROR: database "foo" is being accessed by oth