| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Carol Walter <walterc(at)indiana(dot)edu> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: Database in use? |
| Date: | 2009-03-04 21:51:22 |
| Message-ID: | 7601.1236203482@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
Carol Walter <walterc(at)indiana(dot)edu> writes:
> This has happened or is happening to me again, only this time, it's a
> database that I just created. I restored another database into a test
> database. One of the tables is empty. I want to drop the test
> database and create a new one. When I try to drop the test database,
> I get this error -
> template1=# drop database km_tezt;
> ERROR: database "km_tezt" is being accessed by other users
> template1=# select * from pg_prepared_xacts;
> transaction | gid | prepared | owner | database
> -------------+-----+----------+-------+----------
> (0 rows)
Nothing in pg_stat_activity either?
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Scott Marlowe | 2009-03-04 21:53:26 | Re: Database in use? |
| Previous Message | John Lister | 2009-03-04 21:45:37 | Re: Database in use? |