pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Selvam <selvam@netwxs.com.my>
To: Ryan C. Bonham <Ryan@srfarms.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem starting postgresql
Date: Tue, 31 Jul 2001 16:33:40 -0700
Message-ID: <007301c11a19$3b31f980$1301a8c0@selvam> (raw)
References: <19AB8F9FA07FB0409732402B4817D75A038A19@FILESERVER.SRF.srfarms.com>

dear ryan,

it works now..
thank you very much, really appreciate your help.

selvam
  ----- Original Message ----- 
  From: Ryan C. Bonham 
  To: Selvam 
  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 directory. The line reads
  # TCPIP_SOCKETS = False
  change it to
  TCPIP_SOCKETS = True
   
   
  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 uninstalled 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 postgresql service by typing /etc/rc.d/init.d/postgresql start. The command successfully 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 check if 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 same error.
     
    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 can 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 the 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 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" argument in the postgresql script? I will be eagerly awaitng a reply..

    Cheers

    Selvam

view thread (3+ messages)

Message-ID: <007301c11a19$3b31f980$1301a8c0@selvam>
Permalink:  ../007301c11a19$3b31f980$1301a8c0@selvam/
Also on:    postgresql.org/message-id/007301c11a19$3b31f980$1301a8c0@selvam

 · 

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-admin@postgresql.org
  Cc: selvam@netwxs.com.my, Ryan@srfarms.com
  Subject: Re: Problem starting postgresql
  In-Reply-To: <007301c11a19$3b31f980$1301a8c0@selvam>
  References: <19AB8F9FA07FB0409732402B4817D75A038A19@FILESERVER.SRF.srfarms.com> <007301c11a19$3b31f980$1301a8c0@selvam>

* 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