Re: Killing only one postmaster

From: Michiel Lange <michiel(at)minas(dot)demon(dot)nl>
To: "codeWarrior" <gpatnude(at)hotmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Killing only one postmaster
Date: 2003-04-14 16:45:17
Message-ID: 5.1.0.14.0.20030414184330.00b395d0@192.168.1.3
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

It is even easier:
pg_ctl -D <directory> stop

and if you want to do it the hardcore way:
kill -TERM `head -n 1 <data dir>`

The problem with the ps command is probably that it may be hard to find out
which postmaster you are about to kill...
hence the directory approach...

Michiel
At 17:20 11-4-2003 -0700, codeWarrior wrote:
>Get the process id of your postmaster's...
>
># ps ax | grep postmaster
># kill (pidnumber of the seletcted postmaster)
>
>
>
>"Bo Stewart" <stewarrb(at)yahoo(dot)com> wrote in message
>news:9a41d107(dot)0304110640(dot)374e1dd(at)posting(dot)google(dot)com(dot)(dot)(dot)
> > How do I stop only one postmaster and not have the entire server
> > restart? Is this possible. I have had several situations where I
> > have a function not performing as I expect and need to kill just the
> > backend process.
> >
> >
> > Thanks,
> > Bo Stewart
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>message can get through to the mailing list cleanly

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Franco Bruno Borghesi 2003-04-14 16:56:11 Re: JDBC Drivers for Java
Previous Message scott.marlowe 2003-04-14 15:17:41 Re: Index information and log disable...