Re: Post Installation problem - Mailing list pgsql-novice

From Dennis Leeuw
Subject Re: Post Installation problem
Date
Msg-id 3BA381BF.D945A80@made-it.com
Whole thread Raw
In response to Post Installation problem  (Dennis Leeuw <dleeuw@made-it.com>)
List pgsql-novice
Thanks for the quick reponses. I'll show you some more about the logs I
get, maybe that gives you a better idea of what is going on.

I have run initdb as described in the INSTALL file like:
su - postgres
wuppy:~$ initdb -D /opt/postgresql/data/
This database system will be initialized with username "postgres".
This user will own all the data files and must also own the server process.

Fixing permissions on existing directory /opt/postgresql/data/
Creating directory /opt/postgresql/data//base
Creating directory /opt/postgresql/data//global
Creating directory /opt/postgresql/data//pg_xlog
Creating template1 database in /opt/postgresql/data//base/1
DEBUG:  database system was shut down at 2001-09-15 18:19:13 CEST
DEBUG:  CheckPoint record at (0, 8)
DEBUG:  Redo record at (0, 8); Undo record at (0, 8); Shutdown TRUE
DEBUG:  NextTransactionId: 514; NextOid: 16384
DEBUG:  database system is in production state
Creating global relations in /opt/postgresql/data//global
DEBUG:  database system was shut down at 2001-09-15 18:19:37 CEST
DEBUG:  CheckPoint record at (0, 108)
DEBUG:  Redo record at (0, 108); Undo record at (0, 0); Shutdown TRUE
DEBUG:  NextTransactionId: 514; NextOid: 17199
DEBUG:  database system is in production state
Initializing pg_shadow.
Enabling unlimited row width for system tables.
Creating system views.
Loading pg_description.
Setting lastsysoid.
Vacuuming database.
Copying template1 to template0.

Success. You can now start the database server using:

    /opt/postgresql/bin/postmaster -D /opt/postgresql/data/
or
    /opt/postgresql/bin/pg_ctl -D /opt/postgresql/data/ -l logfile start

So all seems well, I guess. Then I run:
wuppy:~$ /opt/postgresql/bin/postmaster -D /opt/postgresql/data/
DEBUG:  database system was shut down at 2001-09-15 18:20:06 CEST
DEBUG:  CheckPoint record at (0, 1522068)
DEBUG:  Redo record at (0, 1522068); Undo record at (0, 0); Shutdown TRUE
DEBUG:  NextTransactionId: 615; NextOid: 18720
DEBUG:  database system is in production state

Which is OK too.
After that every command responds with show: command not found, like:
psql template1
./psql: show: command not found

So I still guess I did everything right ??? Didn't I ?

Dennis





Vijay Deval wrote:

> I think after first installation it is necessary to issue command
> initdb.
> Then everything gets going.
>
> Vijay
>
> Dennis Leeuw wrote:
> >
> > postmaster successfully started
> > wuppy:~$ createdb test
> > /opt/postgresql/bin/psql: show: command not found
> > createdb: database creation failed
> >
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly

Attachment

pgsql-novice by date:

Previous
From: Tomasz Zielonka
Date:
Subject: Re: platform independent set-up
Next
From: Vijay Deval
Date:
Subject: Re: Post Installation problem