Re: Restart after poweroutage

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Jon Lapham <lapham(at)jandr(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: Restart after poweroutage
Date: 2006-09-24 22:55:00
Message-ID: 20060924225500.GC13591@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jon Lapham wrote:

> [root(at)bilbo ~]# ps -A | grep -i post
> 30760 ? 00:00:00 postmaster
> 30762 ? 00:00:00 postmaster
> 30764 ? 00:00:00 postmaster
> 30765 ? 00:00:00 postmaster
> 30766 ? 00:00:00 postmaster
>
> ...is that normal to see 5 of them running?

Yes, because they are not really postmasters; they are child processes,
which can be backends, the logger process, the background writer, etc.
Try with this:

ps u -C postmaster

That should show more detail, and save you the "grep". Or try something
like this:

$ ps -w -C postmaster -o pid,ppid,args
PID PPID COMMAND
15812 15808 /pgsql/install/00orig/bin/postmaster
15814 15812 postgres: writer process
15815 15812 postgres: stats collector process
15830 15812 postgres: alvherre alvherre [local] idle in transaction

Here you can see that there is a postmaster with PID 15812, and several
processes which are children of that one.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gevik Babakhani 2006-09-24 23:13:28 Re: serial column
Previous Message Michael Fuhr 2006-09-24 22:49:22 Re: column names in select don't exists in insert to