[NOVICE] A question about postmaster and postgresql commands

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[NOVICE] A question about postmaster and postgresql commands

Agustín Caminero Herráez
Hi!
Can anybody tell me what the difference between postmaster and posgresql is?
More accurately, what's the difference between running the following
commands?

/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &

and

/etc/init.d/postgresql start


Thanks a lot in advance!

Agustin

--
========================================================================
                  Agustín Caminero Herráez

Departamento de Informática         Universidad de Castilla-La Mancha

Instituto de Investigación en       Campus Universitario s. n.
Informática de Albacete (i3A)       02071-ALBACETE (SPAIN)

e-mail: [hidden email]     Tlf : +34 967 599200 Ext. 2693
                                    Fax : +34 967 599224

                URL:  http://www.i3a.uclm.es/
========================================================================  



---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [hidden email]

agustin.vcf (533 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [despammed] [NOVICE] A question about postmaster and postgresql commands

Andreas Kretschmer
am  24.05.2005, um  9:50:56 +0200 mailte Agustín Caminero Herráez folgendes:
> Hi!
> Can anybody tell me what the difference between postmaster and posgresql
> is?
> More accurately, what's the difference between running the following
> commands?
>
> /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &

It starts the postmaster-process. This is the main process of pg.


>
> and
>
> /etc/init.d/postgresql start

This is a unix-like start/stop - script. You have any other scripts like
this, and you can run this scripts like '/etc/init.d/SCRIPT start' or
with 'stop' as parameter tu start/stop several services in the same way.


Please do a 'less /etc/init.d/postgresql', and you can see how this
script works.


Regards, Andreas
--
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47212,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    ===

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend