Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0Axx-0007yi-Gb for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 20:42:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i0Axw-0005zF-7p for pgsql-general@arkaria.postgresql.org; Tue, 20 Aug 2019 20:42:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0Axu-0005ob-Lr for pgsql-general@lists.postgresql.org; Tue, 20 Aug 2019 20:42:51 +0000 Received: from [66.111.4.29] (helo=out5-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i0Axr-0001MF-AX for pgsql-general@postgresql.org; Tue, 20 Aug 2019 20:42:49 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 96AD021C39; Tue, 20 Aug 2019 16:42:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 20 Aug 2019 16:42:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=v Fi6/U7pf45/oyTF3FayioHijDSVlVUV9c31ZPiLhvY=; b=pz9x9QRHf8HevujM6 Hri8TkdASlSdwKScB1eJhQljc0mn1s8ApDyKpKRvKVcFodx4RsgQO+ATlFcM9wCj OszODz36YuuRoKl/8EvgMVnpXXPUqKmuFjlkVpYhCyW1f9/awGPK+9hfsOReUJ4B TzNJcPO6p75DFnh2cKZekDJ6MWVBK6mBifOF5yOILtje3MJNpUyPLOabr6yuuA50 AqmoClie5Dyxtd3YqNZKb4ZC7Kj6ul7W9UEY/zOyQgERQhfIL7HRSaHJ6XaPYJ6D +ChHSbxbrztpYLQX5aCjyhFCzBbk0+qDwdSwfpChgmoMq3QZDhPlvD9WX1mRI4zQ Dv2yQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=vFi6/U7pf45/oyTF3FayioHijDSVlVUV9c31ZPiLh vY=; b=lU+Rs/IlENIDRyz4GWxmhp9PLl4H5RzuB0pMHD/7sDk77zb2jpu3kdvtq fa+kHY/CdIKG5DmPA/iypcCIxgugzgSOHAtTHvXJ5Nglv0kkXAVzVtjsqV+6ZDYa Kz0jy6Dxmg8Kj7Hj4deFz5rDmuQnolA1+JrmOrOetntXHmobzVUei8mupZ9jFq7G +DFKx7VNqWypNoIY12PYV6JrN8QPaO+NEiyK4WzgM06SrCrx5wUKAuM2yZABgC2H kwQw6wv8mzB+a8IrbIHJAzFvR0kYgsyMO2qju9yDQ/pN+H+yC7w28O8lR5KTGPEH cf0tEHrVQk52afMRsOU37yeqHYHJw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeguddgudehudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjeegrdelgedrjeefrddvvd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (unknown [74.94.73.222]) by mail.messagingengine.com (Postfix) with ESMTPA id DE39B80062; Tue, 20 Aug 2019 16:42:35 -0400 (EDT) Subject: Re: Two Postgres master process are showing - one is on and off To: chiru r , Forums postgresql References: From: Adrian Klaver Message-ID: <1df751d6-da16-e8b1-49df-5029c7439cbf@aklaver.com> Date: Tue, 20 Aug 2019 13:42:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.29 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/20/19 1:32 PM, chiru r wrote: > Hi All, > > > I have observed one of our PostgreSQL DB instance showing two postgres > process on Linux server as highlighted. The second postgres process is > on and off. Is the on/off on a regular interval? My guess is a script(cron possibly) is trying to start the server. > > We did not find any references in logs. The information: sudo /etc/init.d/postgresql11 start Starting PostgreSQL: ok aklaver@ranger:~> -2019-08-20 13:40:30.097 PDT-0FATAL: lock file "postmaster.pid" already exists -2019-08-20 13:40:30.097 PDT-0HINT: Is another postmaster (PID 1694) running in data directory "/usr/local/pgsql11/data"? Is sent to the starting process and does not make it to the server log as the server is not started(the 'Starting PostgreSQL' notwithstanding). > > > Please provide your advice and help on this issue. > > > DB version :  PostgreSQL *9.5.10* > > Server version   :  RHEL *7.6* > > [postgres@PGSERVER data]$ ps -ef|grep postgres > > root       5922 5875  0 Jul31 pts/0    00:00:00 sudo su - postgres > > root       5927 5922  0 Jul31 pts/0    00:00:00 su - postgres > > postgres   5928   5927  0 Jul31 pts/0    00:00:00 -bash > > root      11585  11535  0 11:29 pts/2    00:00:00 sudo su - postgres > > root      11606  11585  0 11:29 pts/2    00:00:00 su - postgres > > postgres  11607  11606  0 11:29 pts/2    00:00:00 -bash > > root      17185  17141  0 Aug19 pts/1    00:00:00 sudo su - postgres > > root      17189  17185  0 Aug19 pts/1    00:00:00 su - postgres > > postgres  17190  17189  0 Aug19 pts/1    00:00:00 -bash > > postgres 33438      1  0 12:41 ?        00:00:03 > /u01/postgres/9.5/bin/postgres -D /u02/pgdata01/9.5/data > > postgres  33441  33438  0 12:41 ?        00:00:02 postgres: logger process > > postgres  33443  33438  0 12:41 ?        00:00:01 postgres: checkpointer > process > > postgres  33444  33438  0 12:41 ?        00:00:00 postgres: writer process > > postgres  33445  33438  0 12:41 ?        00:00:01 postgres: wal writer > process > > postgres  33446  33438  0 12:41 ?        00:00:00 postgres: autovacuum > launcher process > > postgres  33447  33438  0 12:41 ?        00:00:01 postgres: stats > collector process > > postgres  36660  33438  0 12:47 ?        00:00:00 postgres: sj2 devdb > 10.220.177.63(57237) idle > > root      39915  39837  0 12:53 pts/3    00:00:00 sudo su - postgres > > root      39950  39915  0 12:53 pts/3    00:00:00 su - postgres > > postgres  39951  39950  0 12:53 pts/3    00:00:00 -bash > > postgres 110181  33438  0 15:30 ? 00:00:00 > /u01/postgres/9.5/bin/postgres -D /u02/pgdata01/9.5/data > > postgres 110183  11607  0 15:30 pts/2    00:00:00 ps -ef > > postgres 110184  11607  0 15:30 pts/2    00:00:00 grep --color=auto postgres > > [postgres@SERVER1 data]$ > > Thanks, > > Chiru > -- Adrian Klaver adrian.klaver@aklaver.com