pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gary Stainburn <gary.stainburn@ringways.co.uk>
To: pgsql-admin@postgresql.org
Subject: createdb problem
Date: Tue, 14 Oct 2003 16:32:52 +0100
Message-ID: <200310141632.52589.gary.stainburn@ringways.co.uk> (raw)

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     




view thread (3+ messages)  latest in thread

Message-ID: <200310141632.52589.gary.stainburn@ringways.co.uk>
Permalink:  ../200310141632.52589.gary.stainburn@ringways.co.uk/
Also on:    postgresql.org/message-id/200310141632.52589.gary.stainburn@ringways.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: gary.stainburn@ringways.co.uk
  Subject: Re: createdb problem
  In-Reply-To: <200310141632.52589.gary.stainburn@ringways.co.uk>
  References: <200310141632.52589.gary.stainburn@ringways.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox