Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wCDWn-001lpE-0Q for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 09:24:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wCDWk-005wbU-1Z for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Apr 2026 09:24:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wCDWk-005wbL-0g for pgsql-hackers@lists.postgresql.org; Mon, 13 Apr 2026 09:24:19 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wCDWi-00000000m1k-3c3H for pgsql-hackers@lists.postgresql.org; Mon, 13 Apr 2026 09:24:18 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.phl.internal (Postfix) with ESMTP id BC2DF1400166; Mon, 13 Apr 2026 05:24:16 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Mon, 13 Apr 2026 05:24:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm1; t=1776072256; x=1776158656; bh=qJdvla4gLb2OuTbh+LYMV2HrKnKLGHMP 8Lanx0JL4Bs=; b=cziTrfGES+2RvLnnmhNfE/yHN5OnSH28SlBWHjNJ2l6QWFS8 Fy3ItS10wQuhP/fjhV60KK1MRV4fZkByza582UTBDzFDlpXo7EnDd+EfsjM0bFeH ufj4TxqbiNrduhgFm33W54GVH/YDpMOeWM+NIrm3o5o3U0cYsiRZAGHdtzjFrePm QXMpd7eGDRgGmBEyCiHcuW0HGQSP9YZ8eeo+c+NeWwI5fUyBuWiYXrA5/XsCu2EK OYrKfojnOHb0NgAwyyzZynK7/d43LBlHHFK5SQdVF3GG47VpFwbF83ChGWgb+T1E oeiBvihPWGxJxSaoSSzS37az3Tq2n/Ro2O1D0g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1776072256; x= 1776158656; bh=qJdvla4gLb2OuTbh+LYMV2HrKnKLGHMP8Lanx0JL4Bs=; b=G PEgivn9FyrVIjgX9hy2Vxd38gUXCzj4h2IlP5TVgagQZOXJvgDHggMZ7MePKUmyv VHr+g3OemtO4u+WzkTqptxM/NPeaXP7X3st1haDcROCHeTvccPqOvRwz/37fll+l 1NjUh0ii9vaquf+s9wlmrpupcobk3qQI/4vt+aAAg/aaLjbPVsUPd0DIExquCsWr QSK5p1OW0gfSbwYQHFUt9RqrrRABsfysXnDMpdyHJf7Jkl+gsFCi3rh7HJFlerhJ NXTA1538bHZ/Xgy7c00o/a3aYLoy6E7HNy6r1eA4c1YiyQ5qvLM3D689fvrQktFU M1dY8XU4Bc/7nDRUV3YxQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdefjeekiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheprfgvthgvrhcu gfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpeejhfevhedttefgfffhhfeffefggffhffelgfeiueeukeehvdeh vdefheffvdefueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdpnhgspghrtghpthhtohep ledpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghmihhtrdhkrghpihhlrgduie esghhmrghilhdrtghomhdprhgtphhtthhopehkuhhrohgurgdrhhgrhigrthhosehfuhhj ihhtshhurdgtohhmpdhrtghpthhtohepghihrghnrdhsrhgvvghjihhthhesghhmrghilh drtghomhdprhgtphhtthhopehsmhhithhhphgsvddvhedtsehgmhgrihhlrdgtohhmpdhr tghpthhtohepshhhvhgvthgrrdhmrghlihhksehgmhgrihhlrdgtohhmpdhrtghpthhtoh epshhhlhhokhdrkhihrghlrdhoshhssehgmhgrihhlrdgtohhmpdhrtghpthhtohepvhhi ghhnvghshhdvudesghhmrghilhdrtghomhdprhgtphhtthhopegvuhhlvghrsegvuhhlvg hrthhordgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdr phhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 13 Apr 2026 05:24:14 -0400 (EDT) Message-ID: <0485e0b3-b0ec-4f36-8b61-99692b71990c@eisentraut.org> Date: Mon, 13 Apr 2026 11:24:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [Proposal] Adding Log File Capability to pg_createsubscriber To: Amit Kapila Cc: "Hayato Kuroda (Fujitsu)" , Gyan Sreejith , Peter Smith , shveta malik , Shlok Kyal , vignesh C , Euler Taveira , "pgsql-hackers@lists.postgresql.org" References: <4c2eb422-696c-4e34-84e7-6c6cd95781ab@eisentraut.org> <618f670b-b097-4bd1-8d88-a6eaad031c06@eisentraut.org> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 08.04.26 07:30, Amit Kapila wrote: > On Tue, Apr 7, 2026 at 7:07 PM Peter Eisentraut wrote: >> >> On 01.04.26 07:05, Hayato Kuroda (Fujitsu) wrote: >>> Dear Peter E., >>> >>>> Instead of creating a new logging API in pg_createsubscriber locally, >>>> why not extend logging.c to support a log file. >>> >>> I had a concern to extend the common module. Do you have possible idea to use >>> pg_logging_set_logfile() on others? I cannot, tee command on linux seems enough >>> for others. >> >> pg_upgrade was mentioned. >> > > I see that pg_upgrade has some specific requirements related to > verbose/status/report kind of messages which doesn't seem to be > directly handled by the generic API pg_log_generic(). For example, > apart from other things, we need to unset/reset log_file when we want > to send messages only to the terminal and quite some specific handling > for status or other kinds of messages. If you think pg_log_generic > could be extended to handle various upgrade cases then I think it > would be a good use case for it and we should go-ahead with what you > are proposing. OTOH, maybe we can give it a separate try and use the > resulting API for both pg_createsubscriber and pg_upgrade. I am fine > either way you would like to go-ahead with this. I have committed these patches. I would like to apply the frontend logging API to pg_upgrade as well, but that's a bigger project for not right now.