Received: from wallace.ece.rice.edu (root@wallace.ece.rice.edu [128.42.12.154]) by hub.org (8.9.3/8.9.3) with ESMTP id PAA69001 for ; Tue, 7 Mar 2000 15:15:08 -0500 (EST) (envelope-from reedstrm@wallace.ece.rice.edu) Received: by wallace.ece.rice.edu via sendmail from stdin id (Debian Smail3.2.0.102) for pgsql-admin@postgresql.org; Tue, 7 Mar 2000 14:14:38 -0600 (CST) Date: Tue, 7 Mar 2000 14:14:38 -0600 From: "Ross J. Reedstrom" To: Roman Kurmanowytsch Cc: Oliver Elphick , pgsql-admin@postgresql.org Subject: Re: [ADMIN] Cannot install postgreSQL Message-ID: <20000307141438.B22084@rice.edu> References: <200003071654.QAA01755@otter.hpl.hp.com> <200003071654.QAA01755@otter.hpl.hp.com> <200003071911.TAA06936@linda.lfix.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0i In-Reply-To: ; from romank@infosys.tuwien.ac.at on Tue, Mar 07, 2000 at 07:44:39PM +0100 On Tue, Mar 07, 2000 at 07:44:39PM +0100, Roman Kurmanowytsch wrote: > Oliver, > > >There is no database called "romkur", because you haven't yet created it. > > > >When initdb is run, it creates a database called template1; this is the > >only database that exists until you create some more. > > > >When you try to connect as a database user, postgres assumes you want > >your eponymous database, unless you tell it different. So tell it > >you want to connect to template1. > > Sorry, I don't get it. > > >From the postgresql-6.5.2/INSTALL file: > ------------------------------------------------------ > ... > 18. $ initdb... > 19. Set up permissions to access the database... > 20. Briefly test that the backend will start and > run by running it from the command line. > a. Start the postmaster daemon running in the > background by typing > $ cd > $ nohup postmaster -i > pgserver.log 2>&1 & > ... > ------------------------------------------------------ From your first post to HACKERS: > Seems OK to me, but when I run postgres (after starting the ipc daemon) with: > postgres.exe -i > I get the following error-message: > Postgres is different than postmaster. Although they're the same executable, you get different behavior based on the name it's invoked as. As postmaster, it's the daemon that serves incoming connections. As postgres, it starts up a 'backend' proceess that access the db files. So, yes, by running postgres.exe you _were_ trying to access the database romkur. Ross -- Ross J. Reedstrom, Ph.D., NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005