Received: from mail.netwxs.com.my ([202.186.215.2]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6V8VTf91982 for ; Tue, 31 Jul 2001 04:31:30 -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 f6V8XrP17278; Tue, 31 Jul 2001 16:33:53 +0800 Message-ID: <007301c11a19$3b31f980$1301a8c0@selvam> From: "Selvam" To: "Ryan C. Bonham" Cc: References: <19AB8F9FA07FB0409732402B4817D75A038A19@FILESERVER.SRF.srfarms.com> Subject: Re: Problem starting postgresql Date: Tue, 31 Jul 2001 16:33:40 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0070_01C119DE.8E204C40" 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/171 X-Sequence-Number: 1930 This is a multi-part message in MIME format. ------=_NextPart_000_0070_01C119DE.8E204C40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable dear ryan, it works now.. thank you very much, really appreciate your help. selvam ----- Original Message -----=20 From: Ryan C. Bonham=20 To: Selvam=20 Sent: Friday, July 27, 2001 5:10 AM Subject: RE: [ADMIN] Problem starting postgresql Edit the postmaster.conf file located in your /var/lib/pgsql/data directo= ry. The line reads # TCPIP_SOCKETS =3D False change it to TCPIP_SOCKETS =3D True =20=20=20 =20=20=20 Ryan -----Original Message----- From: Selvam [mailto:selvam@netwxs.com.my] Sent: Friday, July 27, 2001 2:21 PM To: pgsql-admin@postgresql.org Subject: [ADMIN] Problem starting postgresql I have just installed PostgreSQL7.1.2. I am running Red Hat 7.1 I unins= talled the PostgreSQL distribution 7.0x which came together with it using R= PM. I downloaded the RPMs for PostgreSQL7.1.2 using RPM. I started the post= gresql service by typing /etc/rc.d/init.d/postgresql start. The command suc= cessfully starts up the service. The problem comes after this. If I try to = login 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 che= ck if the postmaster is started with -i option. Even when I write a java cl= ient to connect to the database through postgresql's jdbc, it fails with th= e same error. =20=20=20=20=20 So I tried to start postmaster through command line by typing /usr/bin/= posmaster -i -D /var/lib/pgsql/data. This starts the database as usual. I c= an connect 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 t= he postgres service startup script which is in /etc/rc.d/init.d/postgresql.= I tried adding the "-i" near the postmaster startup command within the scr= ipt 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" arg= ument in the postgresql script? I will be eagerly awaitng a reply.. Cheers Selvam ------=_NextPart_000_0070_01C119DE.8E204C40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
dear ryan,
 
it works now..
thank you very much, really appreciate you= r=20 help.
 
selvam
----- Original Message -----
Fro= m:=20 Ryan C. Bonh= am=20
To: Selvam
Sent: Friday, July 27, 2001 5:10 A= M
Subject: RE: [ADMIN] Problem start= ing=20 postgresql

Edit=20 the postmaster.conf file located in your /var/lib/pgsql/data directory. T= he=20 line reads
#=20 TCPIP_SOCKETS =3D False
change it to
TCPIP_SOCKETS =3D True
 
 
Ryan
-----Original Message-----
From: Selvam [mailto:selvam@netwxs.com.my]Sent:=20 Friday, July 27, 2001 2:21 PM
To: pgsql-admin@postgresql.org
Subject:=20 [ADMIN] Problem starting postgresql

I have just installed PostgreSQL7.1.2.= I am=20 running Red Hat 7.1 I uninstalled the PostgreSQL distribution 7.0x= =20 which came together with it using RPM. I downloaded the RPMs for=20 PostgreSQL7.1.2 using RPM. I started the postgresql service by typ= ing=20 /etc/rc.d/init.d/postgresql start. The comman= d=20 successfully starts up the service. The problem comes after this. If I = try=20 to login to any database using psql, it works= fine=20 and has no complaints. But when I tried to access the database using th= e GUI=20 client pgacess, it fails with the error messa= ge=20 "ConnectDBStart()--connect..." and prompts me to check= if=20 the postmaster is started with -i option. Even when I write a java= =20 client to connect to the database through postgresql's jdbc, it fails w= ith=20 the same error.
 
So I tried to start postmaster through= command=20 line 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,=20 pgacess and a java cliet.Fine, now yo= u may=20 wonder what's the problem. The problem is how do I add this into the=20 postgres service startup script which is in=20 /etc/rc.d/init.d/postgresql. I tried adding t= he=20 "-i" near the postmaster startup command within the script but when I r= un it=20 by typing postgresql start, it fails.
 
Can anyone please let me know how and = where=20 should I place the "-i" argument in the postgresql script? I will be ea= gerly=20 awaitng a reply..
 
Cheers
 
Selvam
<= /HTML> ------=_NextPart_000_0070_01C119DE.8E204C40--