Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 6734E6340E7 for ; Wed, 4 Mar 2009 17:51:32 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 31439-01 for ; Wed, 4 Mar 2009 17:51:29 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id E8F57633CCB for ; Wed, 4 Mar 2009 17:51:27 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n24LpM6n007602; Wed, 4 Mar 2009 16:51:22 -0500 (EST) To: Carol Walter cc: pgsql-admin@postgresql.org Subject: Re: Database in use? In-reply-to: <1B70D8AC-E1AF-42F2-85D9-92BF3C975ED7@indiana.edu> References: <23817.1236025942@sss.pgh.pa.us> <91CFD986-3CF6-4419-9908-2FEF9C469441@indiana.edu> <28543.1236029013@sss.pgh.pa.us> <27F905C5-A238-446A-A0E8-21174783E46C@indiana.edu> <1730.1236043881@sss.pgh.pa.us> <1B70D8AC-E1AF-42F2-85D9-92BF3C975ED7@indiana.edu> Comments: In-reply-to Carol Walter message dated "Wed, 04 Mar 2009 16:40:10 -0500" Date: Wed, 04 Mar 2009 16:51:22 -0500 Message-ID: <7601.1236203482@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/62 X-Sequence-Number: 31562 Carol Walter 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