Return-Path: mao
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA00731; Fri, 2 Aug 91 08:42:02 -0700
Message-Id: <9108021542.AA00731@postgres.Berkeley.EDU>
From: mao@postgres.Berkeley.EDU (Mike Olson)
Subject: Re: problems with initial createdb
To: postgres@postgres.berkeley.edu
In-Reply-To: Your message of "Thu, 01 Aug 91 23:59:43 PST."
             <9108020659.AA26495@postgres.Berkeley.EDU> 
Date: Fri, 02 Aug 91 08:40:40 PDT

did initdb run successfully?  if so, the directory

	$POSTGRESHOME/data/base/template1

should exist.  if this doesn't exist, you need to kill the postmaster you
have running, then do

	% rm -rf $POSTGRESHOME/data
	% setenv POSTGRESHOME <whatever>
	% $POSTGRESHOME/bin/initdb

and restart the postmaster.  createdb should then work.  the trick is that
POSTGRESHOME needs to be set before initdb is run (which means before you
type Make install); the documentation doesn't say this.

					mike olson
					postgres research group
					uc berkeley
					mao@postgres.berkeley.edu
