Re: Postgres process

From: Raghavendra <raghavendra(dot)rao(at)enterprisedb(dot)com>
To: iliya g <gyozov2004(at)yahoo(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Postgres process
Date: 2011-08-09 11:05:29
Message-ID: CA+h6Ahgpfh_Eac9rpRod_R1zrqb961fta6ZHiZyLJV-cGXK37g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

I need some help discovering the processes that run on an instance. I know
> that there are many processes running on one instance and they are all
> called postges, but I was hoping you can help me find a way to uniquely
> identify each one of them. I want to discover what the process name is and
> what the does. Let me know if you have any suggestions.
>
> As you know, there are set of Mandatory process starts along with instance
and others 'one-user-per-connection' basis called 'postgres' process (also
called as 'Server Process' or 'User Process').

eg:-
-bash-4.1$ ps -ef | grep postgres
postgres 19294 1 0 01:13 ? 00:00:04
/opt/PostgreSQL/9.0/bin/postgres -D data
postgres 19295 19294 0 01:13 ? 00:00:00 postgres: logger process
postgres 19297 19294 0 01:13 ? 00:00:00 postgres: writer process
postgres 19298 19294 0 01:13 ? 00:00:00 postgres: wal writer process
postgres 19299 19294 0 01:13 ? 00:00:01 postgres: autovacuum
launcher process
postgres 19301 19294 0 01:13 ? 00:00:02 postgres: stats collector
process
postgres 27176 19294 1 09:25 ? 00:00:01 postgres: postgres postgres
[local] SELECT

In the above example, you can see both mandatory process and user-process
performing 'SELECT' operation.
To identify postgres process uniquely, you can get it from catalog view
'pg_stat_activity'.

---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/

> Thanks.
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message iliya g 2011-08-09 14:24:13 Re: Postgres process
Previous Message Venkat Balaji 2011-08-09 08:42:13 Re: Postgresql 9.0.1 installation error