Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 10EC84760C5 for ; Thu, 21 Feb 2002 18:01:50 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 2CE49D5FA; Thu, 21 Feb 2002 15:01:52 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 1E5F15BF9; Thu, 21 Feb 2002 15:01:52 -0800 (PST) Date: Thu, 21 Feb 2002 15:01:52 -0800 (PST) From: Stephan Szabo To: Judy Jecelin Cc: Subject: Re: Problem/Question In-Reply-To: <20020220180605.76687.qmail@web12805.mail.yahoo.com> Message-ID: <20020221150012.U23226-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200202/285 X-Sequence-Number: 3438 On Wed, 20 Feb 2002, Judy Jecelin wrote: > > Hi, > > I'm at my wits end with this one. > > I'm using PostgreSQL 7.1.3 on Solaris 2.8. > I want to create two databases in the same > postmaster. I did my initdb and started > the postmaster. I set two environment > variables, one for each database's location. > Next: > > initlocation -D DB1 > initlocation -D DB2 > > createuser DB1 > createuser DB2 > > createdb -U DB1 -D DB1 > createdb -U DB2 -D DB2 > > The first createdb works fine, the second: > ERROR: CREATE DATABSAE: database "postgres" already > exists > createdb: database creation failed You aren't making different database names with those createdbs. I'd guess you probably wanted: createdb -U DB1 -D DB1 DB1 createdb -U DB2 -D DB2 DB2