Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dej47-0008KU-QZ for pgsql-admin@arkaria.postgresql.org; Mon, 07 Aug 2017 14:31:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dej47-0003Tw-74 for pgsql-admin@arkaria.postgresql.org; Mon, 07 Aug 2017 14:31:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dej46-0003Tn-TM for pgsql-admin@postgresql.org; Mon, 07 Aug 2017 14:31:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dej3v-0007ED-Ka for pgsql-admin@postgresql.org; Mon, 07 Aug 2017 14:31:30 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v77EVE2B023596; Mon, 7 Aug 2017 10:31:14 -0400 From: Tom Lane To: amandeep singh cc: "pgsql-admin@postgresql.org" Subject: Re: Unknown in place of application name In-reply-to: References: Comments: In-reply-to amandeep singh message dated "Mon, 07 Aug 2017 13:41:07 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23594.1502116274.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 07 Aug 2017 10:31:14 -0400 Message-ID: <23595.1502116274@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org amandeep singh writes: > After enabling I have checked the log and found that all new connections= are showing unknown for application name however it is showing application= name in disconnection. Same is tested with multiple applications and getti= ng same result. > 2017-08-07 18:55:44 IST [[unknown]] LOG: connection received: host=3D[lo= cal] > 2017-08-07 18:55:48 IST [[unknown]] LOG: connection received: host=3D[lo= cal] > 2017-08-07 18:55:48 IST [[unknown]] LOG: connection authorized: user=3Dp= ostgres database=3Dpostgres > 2017-08-07 18:55:54 IST [psql.bin] LOG: disconnection: session time: 0:0= 0:06.004 user=3Dpostgres database=3Dpostgres host=3D[local] This is unsurprising: the connection received/authorized messages come out before absorbing any parameters (such as application_name) from the connection request packet. regards, tom lane --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin