Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pqwzE-00031B-Hu for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Apr 2023 14:16:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pqwzD-0004MB-E8 for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Apr 2023 14:16:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pqwzD-0004M2-3s for pgsql-hackers@lists.postgresql.org; Mon, 24 Apr 2023 14:16:11 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pqwz8-001doE-Mv for pgsql-hackers@lists.postgresql.org; Mon, 24 Apr 2023 14:16:09 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 248E8582156; Mon, 24 Apr 2023 10:16:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 24 Apr 2023 10:16:06 -0400 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1682345766; x=1682352966; bh=XlIXKAs4Iy2JMdjwXgAIkPSTnapZTy0azdF KLwxU6R8=; b=U/DnujMtiV8/TKLqUkVPLVGrtDk3u9CAPo3eKWXVUi35GiqJrAx ZI021iwlPqUpJmKzh8RUqwRIemPb5m0S6EDsJE/h1WhPVd2UDwXY5TdHdNMK2Eid +gphKkLbVXHpNf+8FZH/JYdvuK7h+031nAxiM1RshRrtMF1zoOakFE2P8AOUJm7g Y/yfuZFYNzZGulL+V1J/jGMi1mTA2sj098GBFwD7Me57f1Sd9cr+Z0ZTW9D8wULv hKsIr7q4rjL1zz4PNxerHUOGESZxZlc0OGHexp+HoCvwCoM6le/9C609eFY1DUkf z3w1Qqu/98LfrC/cy8N2mMk19599EU9YPcQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedutddgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehleffgeegudejteei hfelteduvdeifffhffdvjedvffegjeekudeludehudeifeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Apr 2023 10:16:04 -0400 (EDT) Message-ID: Date: Mon, 24 Apr 2023 16:16:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] Allow Postgres to pick an unused port to listen Content-Language: en-US To: Stephen Frost Cc: Yurii Rashkovskii , Tom Lane , Robert Haas , Greg Stark , Andrew Dunstan , pgsql-hackers@lists.postgresql.org References: <1161673.1681322178@sss.pgh.pa.us> <1215842.1681352267@sss.pgh.pa.us> <3aac0feb-dcf5-ad32-80b4-f8cda556e0f9@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 19.04.23 06:21, Stephen Frost wrote: >> I don't think involving pg_ctl is necessary or desirable, since it would >> make any future changes like that even more complicated. > I'm a bit confused by this- if pg_ctl is invoked then we have > more-or-less full control over parsing and reporting out the answer, so > while it might be a bit more complicated for us, it seems surely simpler > for the end user. Or maybe you're referring to something here that I'm > not thinking of? Getting pg_ctl involved just requires a lot more work. We need to write actual code, documentation, tests, help output, translations, etc. If we ever change anything, then we need to transition the command-line arguments somehow, add more documentation, etc. A file is a much simpler interface: You just write to it, write two sentences of documentation, that's all. Or to put it another way, if we don't think a file is an appropriate interface, then why is a PID file appropriate? > Independent of the above though ... this hand-wringing about what we > might do in the relative near-term when we haven't done much in the past > many-many years regarding listen_addresses or port strikes me as > unlikely to be necessary. Let's pick something and get it done and > accept that we may have to change it at some point in the future, but > that's kinda what major releases are for, imv anyway. Right. I'm perfectly content with just allowing port number 0 and leaving it at that.