Re: initdb...

From: "Daniel Secomb" <dan(at)ds-d(dot)com>
To: <zuhans(at)iname(dot)com>, <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: initdb...
Date: 2004-08-02 06:05:00
Message-ID: MCBBIFBENOMGNJNDAAJBGEHHCHAA.dan@ds-d.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

AHA!! I now understand. So is "pgini" the script you type when you do a
clean install or what you type in first thing after you open the Cygwin
shell at the start of each working day?

Because I opened the Cygwin shell and just typed in the "db-start" script,
thinking that I wouldn't have to retype in the "pgini" script since I
already typed that in when I first installed Cygwin & PostgreSQL.

And this is what I typed in (and what happened afterward):

export CYGWIN=server
PATH=/usr/bin:/usr/sbin:$PATH
export PATH
echo
echo "cygserver starting..."
cygserver &
ps -f
echo
echo "PostgreSQL starting..."
postmaster -i -D /var/postgresql/data &
(After I typed in that last line I got this response:)

[2] 466483
$ FATAL: shmat(id=65536) failed: Invalid argument

Any ideas why it did that?

(Just in case you weren't aware, I'm using Windows 98SE, PostgreSQL 7.4.3.1
and Cygwin 1.5.10-3)

I really, REALLY appreciate your help Hans!!!!!!!!

God bless!

Dan

-----Original Message-----
From: zuhans(at)iname(dot)com [mailto:zuhans(at)iname(dot)com]
Sent: Saturday, July 31, 2004 3:11 AM
To: Daniel Secomb
Subject: initdb...

hi dan,

what i forgot to say:
if you really type in one command after the other (so as to learn what's
going on), then - instead of typing in "./db-stop" - you have to type in
all commands from my "db-stop"-script-lines.

but then the "kill..."-line won't work! instead just type in "ps -f",
then you get the list of all processes running at the moment, remember
the process-number of cygserver (very left coloumn of ps - output) and
then type in: "kill <process-number>" (e.g. kill 3024). this makes a
shutdown of cygserver.

hope that helps!
hans

Browse pgsql-cygwin by date

  From Date Subject
Next Message Daniel Secomb 2004-08-02 06:54:06 Re: initdb...
Previous Message stevewong 2004-08-01 20:22:55 Problems with installation of cygwin/postgreSQL