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 1t8Kmx-003XLo-US for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2024 14:44:12 +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 1t8Kmv-00ELqd-Al for pgsql-general@arkaria.postgresql.org; Tue, 05 Nov 2024 14:44:09 +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 1t8Kmu-00ELqV-VA for pgsql-general@lists.postgresql.org; Tue, 05 Nov 2024 14:44:09 +0000 Received: from mout-u-204.mailbox.org ([80.241.59.204]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8Kms-000Jfn-JJ for pgsql-general@postgresql.org; Tue, 05 Nov 2024 14:44:08 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4XjWLS6yDgz9swL; Tue, 5 Nov 2024 15:44:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ewie.name; s=MBO0001; t=1730817841; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zJ72iBzk+f9WoGCjKO9AnWu+9svhey4EbIQKNWw7mzE=; b=e36BBqFjQGdSKW6SiT4dHP7cfdCgRJ6InuPkohyIYomM1ZWJ9r8lVAIR4TQ27kr79yi/EG HeCB1uy8Rsd+HjcQnnB6obVYSE8Pux0P752Maokc19M5nOoJZy+xLxOd0UbNy+Cnn+Ks0N xSVIiK5LU1CiM50cUIQwDhDN6C0lwobvjYbyD2f3I7TiU4pmsNUfzVcSAs2YiuaLzhT8fv ZFBLNMu5b30cJqgMk1BlXOPBSM5ABQi6gvXyAgXDS/4l5eA8RNPtt0aEcdR759bcRQyi1/ ToyZ+UaQLP8R3lL5MfZCdE7P/ZWubck7h0SMJdwAO+SdVzvXURj8yJcbf3WLNg== Date: Tue, 5 Nov 2024 15:43:58 +0100 From: Erik Wienhold To: Kal Cc: Greg Sabino Mullane , pgsql-general@postgresql.org Subject: Re: Postgres listens on random port Message-ID: <3ce47d5d-2b4d-44d6-afc1-a10ddf46d4e1@ewie.name> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-11-05 15:22 +0100, 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. > > But the database is listening on some other random port. Please provide more details: 1) The complete pg_ctl command that you've executed. 2) Which Postgres version? 3) Which OS? -- Erik