X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D4817D1B532 for ; Wed, 22 Oct 2003 07:02:03 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 48111-02 for ; Wed, 22 Oct 2003 04:01:34 -0300 (ADT) Received: from sj-iport-1.cisco.com (sj-iport-1-in.cisco.com [171.71.176.70]) by svr1.postgresql.org (Postfix) with ESMTP id 045E4D1B522 for ; Wed, 22 Oct 2003 04:01:33 -0300 (ADT) Received: from mira-sjc5-f.cisco.com (IDENT:mirapoint@mira-sjc5-f.cisco.com [171.71.163.13]) by sj-core-1.cisco.com (8.12.9/8.12.6) with ESMTP id h9M71WjP025294 for ; Wed, 22 Oct 2003 00:01:32 -0700 (PDT) Received: from sathish-home.cisco.com (sjc-vpn1-364.cisco.com [10.21.97.108]) by mira-sjc5-f.cisco.com (Mirapoint Messaging Server MOS 3.3.6-GR) with ESMTP id ALT38037; Wed, 22 Oct 2003 00:06:56 -0700 (PDT) Message-Id: <4.3.2.7.2.20031021233831.03ef6d68@mira-sjcd-2.cisco.com> X-Sender: sathish@mira-sjcd-2.cisco.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Tue, 21 Oct 2003 23:58:32 -0700 To: pgsql-admin@postgresql.org From: Sathish Somanathan Subject: Problems while starting DB Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200310/269 X-Sequence-Number: 10830 HI All, I am trying to get postgres 7.3.2 to work on a solaris 8 machine. Compile/Installation went smoothly. When I try to start the DB using the command - /opt/CSCOets/pgsql/bin/pg_ctl -D /opt/CSCOets/pgsql/data -l /var/sandbox/testdb/logfile start I get the following error in the logfile - ****************************************************************************** IpcSemaphoreCreate: semget(key=5432001, num=17, 03600) failed: Invalid argument ****************************************************************************** After this I tried to reinit the DB and got the following error - ****************************************************************************** The files belonging to this database system will be owned by user "tafuser". This user must also own the server process. The database cluster will be initialized with locale C. creating directory /opt/CSCOets/pgsql/data... ok creating directory /opt/CSCOets/pgsql/data/base... ok creating directory /opt/CSCOets/pgsql/data/global... ok creating directory /opt/CSCOets/pgsql/data/pg_xlog... ok creating directory /opt/CSCOets/pgsql/data/pg_clog... ok creating template1 database in /opt/CSCOets/pgsql/data/base/1... IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed: Invalid argument initdb failed. Removing /opt/CSCOets/pgsql/data ******************************************************************************* It appears the problem lies in this section of initdb (LINE 570:) cat "$POSTGRES_BKI" \ | sed -e "s/POSTGRES/$POSTGRES_SUPERUSERNAME/g" \ -e "s/ENCODING/$ENCODINGID/g" \ | ( LC_COLLATE=`pg_getlocale COLLATE` LC_CTYPE=`pg_getlocale CTYPE` export LC_COLLATE export LC_CTYPE unset LC_ALL "$PGPATH"/postgres -boot -x1 $PGSQL_OPT $BACKEND_TALK_ARG template1 ) \ || exit_nicely ******************************************************************************* FYI : I have set the following env variables LD_OPTIONS='-L/opt/CSCOets/pgsql/lib -R$ORIGIN/../lib -R/opt/pgsql/lib -i -s -z origin' CFLAGS=`getconf LFS_CFLAGS`' -O2 -funroll-loops -fexpensive-optimizations -I/opt/CSCOets/pgsql/include' $ CPPFLAGS=`getconf LFS_CFLAGS`' -O2 -funroll-loops -fexpensive-optimizations -I/opt/CSCOets/pgsql/include' Any help with this would be appreciated. Thanks, -Sathish