X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C49B5D1B517 for ; Tue, 14 Oct 2003 15:36:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 22941-05 for ; Tue, 14 Oct 2003 12:35:38 -0300 (ADT) Received: from stan.ringways.co.uk (hub.ringways.co.uk [213.38.87.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4A2C7D1B53C for ; Tue, 14 Oct 2003 12:35:37 -0300 (ADT) Received: from gary.ringways.co.uk ([10.1.1.2]) by stan.ringways.co.uk with esmtp (Exim 3.22 #1) id 1A9RAR-0006o3-00 for pgsql-admin@postgresql.org; Tue, 14 Oct 2003 16:32:59 +0100 Content-Type: text/plain; charset="us-ascii" From: Gary Stainburn Organization: Ringways Garages Ltd To: Subject: createdb problem Date: Tue, 14 Oct 2003 16:32:52 +0100 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200310141632.52589.gary.stainburn@ringways.co.uk> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/137 X-Sequence-Number: 10698 Hi folks, I've got two totally seperate databases that I'm working on at the moment, the only thing they have in common is the server that they're on (RH7.3+Errata) For each of these databases I have a file containing the SQL commands to create and populate the various tables, and bash script which simply calls dropdb $dbname createdb $dbname psql <$dbname.sql However, for the last few days, this script seems to be alternating between working and not working, the sequence being: [gary@eddie gary]$ dbreset ERROR: DROP DATABASE: database "service" does not exist dropdb: database removal failed CREATE DATABASE 0 errors [gary@eddie gary]$ dbreset DROP DATABASE ERROR: CREATE DATABASE: source database "template1" is being accessed by other users createdb: database creation failed 0 errors [gary@eddie gary]$ dbreset ERROR: DROP DATABASE: database "service" does not exist dropdb: database removal failed CREATE DATABASE 0 errors [gary@eddie gary]$ Can anyone tell me why the createdb seems to fail if the preceeding dropdb worked. -- Gary Stainburn This email does not contain private or confidential material as it may be snooped on by interested government parties for unknown and undisclosed purposes - Regulation of Investigatory Powers Act, 2000