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.94.2) (envelope-from ) id 1t8Llg-003ds7-LC for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2024 15:46:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t8Lle-00FQgJ-3A for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2024 15:46:54 +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.94.2) (envelope-from ) id 1t8Llc-00FQey-D5 for pgsql-general@lists.postgresql.org; Tue, 05 Nov 2024 15:46:54 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8LlZ-000KD7-VK for pgsql-general@postgresql.org; Tue, 05 Nov 2024 15:46:51 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.stl.internal (Postfix) with ESMTP id 6DC51254007B; Tue, 5 Nov 2024 10:46:48 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Tue, 05 Nov 2024 10:46:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; 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=fm2; t=1730821608; x=1730908008; bh=p3ong+D9PdICQvAhHXX/YZYgLZvJrenacDDwSO6ApOc=; b= Wdfb0HpMFI9tgWZduKQMX0nS+0Y8VHjZk2vK/eHogXD7TQ77zgyMhnVEyTg7Ii00 ICu+1ET2IF4/TNpJ6lchLwDVxU/jJtTMWXUfRMB/1CTb60mjKnlixjeePC//ffX1 Z40Q5xkL6oaCVRe67HVYZ4zePU5GQ2cT/0AISRCjGLFVag0JpWDWYlE26MZyr5oD hwKsvgd/BSYFIWZNRttlilulnBKuphBRmxv+RsztwNKQj9lDFQdtmb7Dnc9Ncsi1 IhJox49r8gQnSEmM39logT2jnXqO+2lDpSF5I99kFwosNebG0HbOBY0AdeTenuIJ U2tSiweTwedUn4vMAhms7g== 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=fm3; t=1730821608; x= 1730908008; bh=p3ong+D9PdICQvAhHXX/YZYgLZvJrenacDDwSO6ApOc=; b=H vFpJt/0TtlpVwPVxKeOFN5QJsWaEMHrYk3JeNnbCoXg2ziE3KxLkOwKWh2UvfwBe rvJkBMi83IRNFmiXNqjobVqnLsa9wX07ocOYRP+fYfv/iAGzXwmObar6tPmqjyOa XUSMO3pb0/gy5WAveXqe1QkJxoreCFqYOwEdveGUzD7pWyVHZVIZDjf7sJwCPzVr rB6yVA17Vl4BSRihw7OQ56JS+CWsSmTQd2bsGNhUNf9JEBJxRJNASP+le9eHo+Bh u+t1djE+0czASFX8IuHmWeHpSv0lrAyddi2tV9lLIN5VW585euQeoJyFy9+U6m6U T9UWN9UsjWjWFh9K9eFVQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtddtgdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuf fvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghr uceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrth htvghrnhepfeegfeeiuedtgffgteeggfehkeejheetieeliefgteeikeejvdeiveeigfeh vedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg gurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohep fedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepkhgrlhgvlhdrtghouggvudduse hgmhgrihhlrdgtohhmpdhrtghpthhtohephhhtrghmfhhiughssehgmhgrihhlrdgtohhm pdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlhesphhoshhtghhrvghsqhhlrdhorh hg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Nov 2024 10:46:47 -0500 (EST) Message-ID: <2bd9d9c9-7e3e-46fc-9911-ffa259a5b548@aklaver.com> Date: Tue, 5 Nov 2024 07:46:46 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Postgres listens on random port To: Kal , Greg Sabino Mullane Cc: pgsql-general@postgresql.org References: Content-Language: en-US From: Adrian Klaver 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 11/5/24 06:22, Kal wrote: > > > On Tue, 5 Nov 2024 at 7:42 PM, Greg Sabino Mullane > wrote: > > Start by seeing where the port is actually being set by running this: > > select setting, source, sourcefile, sourceline from pg_settings > where name = 'port'; > Cheers, > Greg > > Hi Greg, > > The query output states the source as command line. Event the port value > output from show port is same as given in pg_ctl command. How did you connect to the database to run the query if the port is random? In other words what client and connection settings did you use to connect to the server and run the query? > > But the database is listening on some other random port. > > > Regards > Kal -- Adrian Klaver adrian.klaver@aklaver.com