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.92) (envelope-from ) id 1jBJRH-0005Bp-27 for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Mar 2020 14:31:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBJRF-0002U8-RJ for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Mar 2020 14:31:25 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1jBJRF-0002U0-Dz for pgsql-bugs@lists.postgresql.org; Mon, 09 Mar 2020 14:31:25 +0000 Received: from forward501j.mail.yandex.net ([2a02:6b8:0:801:2::111]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBJRC-0003nI-Fq for pgsql-bugs@lists.postgresql.org; Mon, 09 Mar 2020 14:31:24 +0000 Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward501j.mail.yandex.net (Yandex) with ESMTP id A9ADE33806F2; Mon, 9 Mar 2020 17:31:19 +0300 (MSK) Received: from localhost (localhost [::1]) by mxback8o.mail.yandex.net (mxback/Yandex) with ESMTP id 6e3b4jPlIN-VIDavHGv; Mon, 09 Mar 2020 17:31:18 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zsrv.org; s=mail; t=1583764278; bh=lqDNkxRWtXB3czHG8Ifp0KshjZ/XOEr7hAbpIGt4qp4=; h=References:Date:Message-Id:Subject:In-Reply-To:To:From; b=UaaDKNCwuwhPmLZrcm/dhBcbFR4FedglbTBgULgYREaBkrTC/i7u2MmhDxJqbFg4s BH/tGd0RQ5WYImcHYdqyEEEmurb5cb8geqQpkS2s06kYtHnGYmDu0P0Fo9R+v8Mmcq G9zBqobD2PmtBrd/XvnpmrWcWcjwm6CFa/fpZRdo= Authentication-Results: mxback8o.mail.yandex.net; dkim=pass header.i=@zsrv.org Received: by myt4-d6710af5e038.qloud-c.yandex.net with HTTP; Mon, 09 Mar 2020 17:31:18 +0300 From: Sergei Kornilov To: "daff@ptmx.at" , "pgsql-bugs@lists.postgresql.org" In-Reply-To: <16288-67b2b6ad2d4178c6@postgresql.org> References: <16288-67b2b6ad2d4178c6@postgresql.org> Subject: Re: BUG #16288: application_name from client's primary_conninfo not set in pg_stat_replication on master MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 09 Mar 2020 17:31:18 +0300 Message-Id: <4325811583763530@vla5-dcf36e533bf7.qloud-c.yandex.net> Content-Transfer-Encoding: 7bit Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello Works for me. Please share results of such queries: select * from pg_stat_wal_receiver; select * from pg_file_settings where name = 'primary_conninfo'; Cluster name will be used as fallback application name when no application_name was provided. I think you have several primary_conninfo, one of which is in postgresql.auto.conf that was created by pg_basebackup -R regards, Sergei