pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ram Charan Kallem <RamCharan.Kallem@non.se.com>
To: pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Multiple Postgres process are running in background
Date: Fri, 13 Aug 2021 08:34:56 -0700
Message-ID: <e6c22bdf-ad51-5285-c404-1372b46ae250@aklaver.com> (raw)
In-Reply-To: <AS8PR04MB77191F86C4BD4759762E1B90A7FA9@AS8PR04MB7719.eurprd04.prod.outlook.com>
References: <AS8PR04MB7719E20926E6BA94499C2491A7FA9@AS8PR04MB7719.eurprd04.prod.outlook.com>
	<AS8PR04MB77191F86C4BD4759762E1B90A7FA9@AS8PR04MB7719.eurprd04.prod.outlook.com>

On 8/13/21 3:20 AM, Ram Charan Kallem wrote:
> Hi,
> 
> We are using Postgres 10 (Single client)and observed that there are 
> multiple PostgreSQL Server process are running in background.
> 
> Why these additional process are created  or is this an expected behavior.

Yes. From my Linux machine:

  ps ax | grep postgres
   818 ?        Ss     0:00 /usr/local/pgsql12/bin/postgres -D 
/usr/local/pgsql12_test/data
   906 ?        Ss     0:00 /usr/local/pgsql12/bin/postgres -D 
/usr/local/pgsql12/data
   954 ?        Ss     0:00 postgres: logger
   982 ?        Ss     0:00 postgres: logger
   984 ?        Ss     0:00 postgres: checkpointer
   985 ?        Ss     0:00 postgres: background writer
   986 ?        Ss     0:00 postgres: walwriter
   987 ?        Ss     0:00 postgres: autovacuum launcher
   988 ?        Ss     0:00 postgres: stats collector
   989 ?        Ss     0:00 postgres: logical replication launcher
  1001 ?        Ss     0:00 postgres: checkpointer
  1002 ?        Ss     0:00 postgres: background writer
  1003 ?        Ss     0:00 postgres: walwriter
  1004 ?        Ss     0:00 postgres: autovacuum launcher
  1005 ?        Ss     0:00 postgres: stats collector
  1006 ?        Ss     0:00 postgres: logical replication launcher
  7204 pts/0    S+     0:00 psql -d test -U postgres
  7205 ?        Ss     0:00 postgres: postgres test [local] idle
  7250 pts/1    S+     0:00 psql -d production -U postgres -p 5442
  7251 ?        Ss     0:00 postgres: postgres production [local] idle
  7296 pts/2    S+     0:00 grep --color=auto postgres

There are background processes that run as well as process for each 
connection.

> 
> Regards,
> 
> RamCharan
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (8+ messages)  latest in thread

Message-ID: <e6c22bdf-ad51-5285-c404-1372b46ae250@aklaver.com>
Permalink:  ../e6c22bdf-ad51-5285-c404-1372b46ae250@aklaver.com/
Also on:    postgresql.org/message-id/e6c22bdf-ad51-5285-c404-1372b46ae250@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, RamCharan.Kallem@non.se.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: Multiple Postgres process are running in background
  In-Reply-To: <e6c22bdf-ad51-5285-c404-1372b46ae250@aklaver.com>
  References: <AS8PR04MB7719E20926E6BA94499C2491A7FA9@AS8PR04MB7719.eurprd04.prod.outlook.com> <AS8PR04MB77191F86C4BD4759762E1B90A7FA9@AS8PR04MB7719.eurprd04.prod.outlook.com> <e6c22bdf-ad51-5285-c404-1372b46ae250@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox