Skip site navigation (1) Skip section navigation (2)

two methods to start postmaster

From: "Marc Fromm" <Marc(dot)Fromm(at)wwu(dot)edu>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: two methods to start postmaster
Date: 2008-03-06 16:20:39
Message-ID: 81FEAB8CDDC62B42B6E8AA258228BC8804CDAC68@EVS2.univ.dir.wwu.edu (view raw or flat)
Thread:
Lists: pgsql-admin
I am puzzled on the supposed two methods of starting postgres--"pg_ctl
start" and "service postgresql start". Below is my understanding. It
would be great to have some clarification on them.

My confusion stems from when I first intitiated postgres by creating the
database cluster with "initdb". I am positive that I had to perform both
commands to get everything working, "pg_ctl start" as the postgres user
and then "service postgresql start" as root.

If I understand this correctly
using the command "pg_ctl start" starts postmaster but the process (ps
ax | grep post) is listed as /usr/bin/postgres

using the command "service postgresql start" starts postmaster but the
process (ps ax | grep post) is listed as /usr/bin/postmaster -p 5432 -D
/var/lib/pgsql/data

And both are the same thing?

Thanks


Marc Fromm
Information Technology Specialist II
Financial Aid Department
Western Washington University
Phone: 360-650-3351
Fax:   360-788-0251

Responses

pgsql-admin by date

Next:From: Kevin GrittnerDate: 2008-03-06 16:34:36
Subject: Re: two methods to start postmaster
Previous:From: Vishal AroraDate: 2008-03-06 06:45:41
Subject: Time Zone in Postgres

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group