Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1elaqm-0004sR-Rg for pgsql-general@arkaria.postgresql.org; Tue, 13 Feb 2018 13:42:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1elaqk-0006bU-TU for pgsql-general@arkaria.postgresql.org; Tue, 13 Feb 2018 13:42:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1elaqk-0006bK-Ix for pgsql-general@lists.postgresql.org; Tue, 13 Feb 2018 13:42:22 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1elaqh-0003lW-C3 for pgsql-general@postgresql.org; Tue, 13 Feb 2018 13:42:21 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 8126142BDE; Tue, 13 Feb 2018 14:42:15 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id U91Gq61wBb41; Tue, 13 Feb 2018 14:42:14 +0100 (CET) Message-ID: <1518529333.2525.25.camel@cybertec.at> Subject: Re: Multiple postmasters running from same directory From: Laurenz Albe To: Vikas Sharma , pgsql-general@postgresql.org Date: Tue, 13 Feb 2018 14:42:13 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Vikas Sharma wrote: > We are running Postgresql 9.4 with streaming replication and repmgr. Operating system is RHEL6.8 > > On the master I can see multiple postmaster processes from the same data directory. > > ps -ef |grep -i postgres|grep postm > postgres 81440 1 0 Jan31 ? 00:11:37 /usr/pgsql-9.4/bin/postmaster -D /var/lib/pgsql/9.4/data > postgres 97072 81440 0 12:17 ? 00:00:00 /usr/pgsql-9.4/bin/postmaster -D /var/lib/pgsql/9.4/data > postgres 97074 81440 0 12:17 ? 00:00:00 /usr/pgsql-9.4/bin/postmaster -D /var/lib/pgsql/9.4/data > > The streaming replication with one standby looks fine. > > I was expecting to see only one postmaster process instead of three and the time shown in > PS output for two extra processes changes to current time with every PS command I enter. > Secondly, I logfile is full of "Incomplete startup packet" message. > > I need help from you experts, Is this the right behaviour of postgres? what could have gone wrong in my case. That looks ok. The two other processes are children of the postmaster. It is strange that their process title did not get updated. What do you see for the processes with "pid" 97072 and 97074 in pg_stat_activity? The "incomplete startup packet" is caused by processes that connect to the PostgreSQL TCP port, but don't complete a database connection. Often these are monitoring or load balancing programs. Yours, Laurenz Albe