Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 63ADD64FCD2 for ; Thu, 11 Sep 2008 14:22:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 78147-02 for ; Thu, 11 Sep 2008 14:21:54 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by postgresql.org (Postfix) with ESMTP id 50C0364FF4F for ; Thu, 11 Sep 2008 14:21:54 -0300 (ADT) Received: by wf-out-1314.google.com with SMTP id 25so405004wfc.28 for ; Thu, 11 Sep 2008 10:21:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=60rXif8eLwPSL+6Wzfdf1OaXPCGFLSNDVk3cmtGR7qQ=; b=x6VCVyrwPBXoz6ZeRH+MecQck1PoImwwgZ6GTCB+2wpG5LEyaBiwDCEyXd3kp/ejk0 bXLWaVIqXR3uS2Ae+6Kl1SmDE6Nvk7zvTCXHrwooCxooJzAGuDx/2mjQYoWj08w1CT+6 +impTieLre4YoH+V6y6wMhaBez2VOFR1K3dp4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ZXdsUONIsDR6f+1Fcort6Ea5TBfQegrW1YFNjtnAJRMcQKx8XVtG9e4y43Uql5LiBr 0/HjZImFQA6AwxnmhKi9kHnejmF9sZHIinmT76BB6J6jcUaYFzbFYUtIdi8sdpZEtAyM zjOuE1ziXTMWgSvLtkRW/F5jVnv6ZoiSn38S0= Received: by 10.141.170.10 with SMTP id x10mr1946054rvo.105.1221153713321; Thu, 11 Sep 2008 10:21:53 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Thu, 11 Sep 2008 10:21:53 -0700 (PDT) Message-ID: Date: Thu, 11 Sep 2008 11:21:53 -0600 From: "Scott Marlowe" To: "Marc Fromm" Subject: Re: starting postgres on red hat Cc: "pgsql-admin@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/100 X-Sequence-Number: 30193 On Thu, Sep 11, 2008 at 10:57 AM, Marc Fromm wrote: > > I installed Red Hat 5.2 EL. During the install I select postgresql and this versoin was installed: postgresql-8.1.11-1.el5_1.1. > > 1. I started postgresql as follows: > initdb -D /var/lib/pgsql/data There's an initidb function built into the /etc/init.d/postgresql script you can use: sudo /etc/init.d/postgresql initdb both work similarly. > 2. I started the database server as follows: > /usr/bin/pg_ctl -D /var/lib/pgsql/data -l logfile start > > 3. I started the postmaster as follows: > service postgresql start These two steps do the same thing. the db server was already started in step2. The preferred way is how you did it in step 3. > When I check that it is all running with ps command I get: > 324 pts/1 S 0:00 /usr/bin/postmaster -D /var/lib/pgsql/data > > When I did the same setps in fedora 8 the postmaster was started on a port > 1703 ? S 0:01 /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data > > Why is there no -p 5432 on the red hat box? I assume the port is needed. What do I need to do to have the postmaster running on port 5432 like on the fedora box? Because pgsql is reading it from the postgresql.conf file. Stick to the /etc/init.d/postgresql way of starting and stopping. To set pgsql to start automatically on bootup, use chkconfig: chkconfig postgresql on chkconfig --list postgresql