Received: from mail.netwxs.com.my ([202.186.215.2]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6R3Hgf34639 for ; Thu, 26 Jul 2001 23:17:43 -0400 (EDT) (envelope-from selvam@netwxs.com.my) Received: from selvam (selvam.netcraft.com.my [192.168.1.19]) by mail.netwxs.com.my (8.11.3/8.11.3) with SMTP id f6R3Kqx09651 for ; Fri, 27 Jul 2001 11:20:52 +0800 Message-ID: <005c01c116c8$f1e520c0$1301a8c0@selvam> From: "Selvam" To: Subject: Problem starting postgresql Date: Fri, 27 Jul 2001 11:21:24 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0059_01C1168E.454F5A40" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200107/150 X-Sequence-Number: 1909 This is a multi-part message in MIME format. ------=_NextPart_000_0059_01C1168E.454F5A40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have just installed PostgreSQL7.1.2. I am running Red Hat 7.1 I uninstall= ed the PostgreSQL distribution 7.0x which came together with it using RPM. = I downloaded the RPMs for PostgreSQL7.1.2 using RPM. I started the postgres= ql service by typing /etc/rc.d/init.d/postgresql start. The command success= fully starts up the service. The problem comes after this. If I try to logi= n to any database using psql, it works fine and has no complaints. But when= I tried to access the database using the GUI client pgacess, it fails with= the error message "ConnectDBStart()--connect..." and prompts me to check i= f the postmaster is started with -i option. Even when I write a java client= to connect to the database through postgresql's jdbc, it fails with the sa= me error. =20 So I tried to start postmaster through command line by typing /usr/bin/posm= aster -i -D /var/lib/pgsql/data. This starts the database as usual. I can c= onnect to the database through psql, pgacess and a java cliet.Fine, now you= may wonder what's the problem. The problem is how do I add this into the p= ostgres service startup script which is in /etc/rc.d/init.d/postgresql. I t= ried adding the "-i" near the postmaster startup command within the script = but when I run it by typing postgresql start, it fails. Can anyone please let me know how and where should I place the "-i" argumen= t in the postgresql script? I will be eagerly awaitng a reply.. Cheers Selvam ------=_NextPart_000_0059_01C1168E.454F5A40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have just installed PostgreSQL7.1.2. I a= m running=20 Red Hat 7.1 I uninstalled the PostgreSQL distribution 7.0x which came= =20 together with it using RPM. I downloaded the RPMs for PostgreSQL7.1.2 using= RPM.=20 I started the postgresql service by typing=20 /etc/rc.d/init.d/postgresql start. The command=20 successfully starts up the service. The problem comes after this. If I try = to=20 login to any database using psql, it works fine a= nd=20 has no complaints. But when I tried to access the database using the GUI cl= ient=20 pgacess, it fails with the error message=20 "ConnectDBStart()--connect..." and prompts me to check if = the=20 postmaster is started with -i option. Even when I write a java client = to=20 connect to the database through postgresql's jdbc, it fails with the same= =20 error.
 
So I tried to start postmaster through com= mand line=20 by typing /usr/bin/posmaster -i -D=20 /var/lib/pgsql/data. This starts the database as usual. I can= =20 connect to the database through psql, pgacess=20 and a java cliet.Fine, now you may wonder what's the probl= em.=20 The problem is how do I add this into the postgres service startup script w= hich=20 is in /etc/rc.d/init.d/postgresql. I tried adding= the=20 "-i" near the postmaster startup command within the script but when I run i= t by=20 typing postgresql start, it fails.
 
Can anyone please let me know how and wher= e should=20 I place the "-i" argument in the postgresql script? I will be eagerly await= ng a=20 reply..
 
Cheers
 
Selvam
------=_NextPart_000_0059_01C1168E.454F5A40--