pg.ddx.io  pgsql-cygwin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Xiaogang <xiaogangz@acm.org>
To: pgsql-cygwin@postgresql.org
Subject: Problem in start up postgres in Cygwin
Date: Mon, 27 Feb 2006 13:11:33 +1100
Message-ID: <44025FD5.3060600@acm.org> (raw)

Hi All,

I have just installed the latest Cygwin, which has already included 
postgresql installed (version 8.0.4-1), but have problem to start the 
postgresql server: I got a "bad system call" on postgre.exe when 
initializing the database using initdb.

I have tried this on two WinXP boxes, one XP pro and one Home, the 
results is the same.

Can any one help? Thank you in advance.

Xiaogang


================
That's what I did:

xzhang@XGZNB ~
$ ps -ef
     UID     PID    PPID TTY     STIME COMMAND
  xzhang    1524       1 con  01:53:57 /usr/bin/bash
  xzhang    5872    1524 con  12:58:55 /usr/bin/ps

xzhang@XGZNB ~
$ cygserver  &
[1] 1416

xzhang@XGZNB ~
$ cygserver: Initialization complete.  Waiting for requests.
$ initdb -D /usr/lib/postgresql/data
The files belonging to this database system will be owned by user "xzhang".
This user must also own the server process.

The database cluster will be initialized with locale C.

creating directory /usr/lib/postgresql/data ... ok
creating directory /usr/lib/postgresql/data/global ... ok
creating directory /usr/lib/postgresql/data/pg_xlog ... ok
creating directory /usr/lib/postgresql/data/pg_xlog/archive_status ... ok
creating directory /usr/lib/postgresql/data/pg_clog ... ok
creating directory /usr/lib/postgresql/data/pg_subtrans ... ok
creating directory /usr/lib/postgresql/data/base ... ok
creating directory /usr/lib/postgresql/data/base/1 ... ok
creating directory /usr/lib/postgresql/data/pg_tblspc ... ok
selecting default max_connections ... sh: line 1:   404 Bad system call
"/usr/sbin/postgres.exe" -boot -x0 -F -c shared_buffers=500 -c 
max_connections=1
00 template1 <"/dev/null" >"/dev/null" 2>&1
sh: line 1:  4560 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=250 -c max_connections=50 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  5372 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=200 -c max_connections=40 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  2120 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=150 -c max_connections=30 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  5144 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=100 -c max_connections=20 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  5576 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=50 -c max_connections=10 template1 <"/dev/null" 
 >"/dev/null" 2
 >&1
10
selecting default shared_buffers ... sh: line 1:  4672 Bad system 
call         "
/usr/sbin/postgres.exe" -boot -x0 -F -c shared_buffers=1000 -c 
max_connections=1
0 template1 <"/dev/null" >"/dev/null" 2>&1
sh: line 1:  3916 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=900 -c max_connections=10 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  4636 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=800 -c max_connections=10 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  6072 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=700 -c max_connections=10 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  2584 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=600 -c max_connections=10 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  2028 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=500 -c max_connections=10 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:   700 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=400 -c max_connections=10 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  2576 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=300 -c max_connections=10 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  3316 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=200 -c max_connections=10 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  5288 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=100 -c max_connections=10 template1 <"/dev/null" 
 >"/dev/null"
2>&1
sh: line 1:  2884 Bad system call         "/usr/sbin/postgres.exe" -boot 
-x0 -F
-c shared_buffers=50 -c max_connections=10 template1 <"/dev/null" 
 >"/dev/null" 2
 >&1
50
creating configuration files ... ok
creating template1 database in /usr/lib/postgresql/data/base/1 ... child 
process
 was terminated by signal 12
initdb: removing data directory "/usr/lib/postgresql/data"

xzhang@XGZNB ~
$ ps -ef
     UID     PID    PPID TTY     STIME COMMAND
  xzhang    1524       1 con  01:53:57 /usr/bin/bash
  xzhang    1416    1524 con  12:59:01 /usr/sbin/cygserver
  xzhang    5240    1524 con  12:59:25 /usr/bin/ps



view thread (2+ messages)  latest in thread

Message-ID: <44025FD5.3060600@acm.org>
Permalink:  ../44025FD5.3060600@acm.org/
Also on:    postgresql.org/message-id/44025FD5.3060600@acm.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-cygwin@postgresql.org
  Cc: xiaogangz@acm.org
  Subject: Re: Problem in start up postgres in Cygwin
  In-Reply-To: <44025FD5.3060600@acm.org>
  References: <44025FD5.3060600@acm.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox