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 1gR2Bd-0008EF-H9 for pgsql-hackers@arkaria.postgresql.org; Sun, 25 Nov 2018 21:43:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gR2Ba-0002S9-Gm for pgsql-hackers@arkaria.postgresql.org; Sun, 25 Nov 2018 21:43:26 +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 1gR2BY-0002S2-Fo for pgsql-hackers@lists.postgresql.org; Sun, 25 Nov 2018 21:43:26 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gR2BQ-00012O-8h for pgsql-hackers@postgresql.org; Sun, 25 Nov 2018 21:43:22 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 128D72821E; Sun, 25 Nov 2018 16:43:15 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 25 Nov 2018 16:43:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=qWzWjIw2rZBc3kjNIdF7UijVNsl jyWl6SbIjz5IIKQs=; b=CfX2yxcux/THgIgLnDFkezpZ9I/n1RHkELPyMdwvgDk 455dbMWZMJAHreifNxejpWUZm0QzKlW78xe3Dl1E6TIUcB+N/dH5hPsjLlNLoO+v SfTkyJUPZM+FvSCj0lJdrka9b4hZP2RA9evaaueQpprvN9lx8AR2bpCXSOj7jqgj tmA4blXXqWN+e/aS+8NFblxSRSNKzWORhqrGjUA1548LhD5/sIJyPh/OJaLPcQKg BgfRy9ARBa+bxBZyZOvdilSYsYVBRou+BgUUyPNxkN3IuuF6Mtp0PrwAlDNHej6E KGcLXUEBDvhcrdlUWQgo8R5/kzF0CDndz0AMBsNPFhw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=qWzWjI w2rZBc3kjNIdF7UijVNsljyWl6SbIjz5IIKQs=; b=L6cwVkLri2ZEMNZdPb2IW6 YGSKlmbCCmNiqMlr7xSHHCJbHkBRd/bK5j4McyT0uloH/6Hdk5Nom/a16Z7Erred yYQop59Q3T82iSxrr9+2YTWlgLR/tPEo8F9lY1J3dSaIbWwfyi4vWJuGnuDvleaD grMooqeNqxIisYH0V1MtPJ0tk+gJdpiAml7eNeQ7tQs/r9Gz1oxAYPUi967Wr4ek bVIREi1ofa+aZ9RBTXyHSUhzcdXn+z5tGr0IYn/QF5LsbGcL3t6dZo7YPt219QvY NynuC1ICiEFIDPLUaJC0XJxXQhH9kr1eH1k4IDBSkvhVs6O1ic5hM915Akp/Kz4w == X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 35621102E0; Sun, 25 Nov 2018 16:43:14 -0500 (EST) Date: Sun, 25 Nov 2018 13:43:13 -0800 From: Andres Freund To: Sergei Kornilov Cc: PostgreSQL mailing lists Subject: Re: allow online change primary_conninfo Message-ID: <20181125214313.lydvmrraqjfrb3s2@alap3.anarazel.de> References: <19513901543181143@sas1-19a94364928d.qloud-c.yandex.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19513901543181143@sas1-19a94364928d.qloud-c.yandex.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-11-26 00:25:43 +0300, Sergei Kornilov wrote: > Now we integrate recovery.conf into GUC system. So i would like to start discussion to make primary_conninfo and primary_slot_name PGC_SIGHUP. > My work-in-progress patch attached. Cool! > I think we have no futher reason to have a copy of conninfo and slot name in WalRcvData, so i propose remove these fields from pg_stat_get_wal_receiver() (and pg_stat_wal_receiver view). This data can be accesible now via regular GUC commands. Is that wise? It seems possible that wal receivers run for a while with the old connection information, and without this information that seems hard to debug. > diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml > index db1a2d4..faa8e17 100644 > --- a/doc/src/sgml/config.sgml > +++ b/doc/src/sgml/config.sgml > @@ -3797,7 +3797,6 @@ ANY num_sync (