pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wong Simon <thbytwo@live.cn>
To: David G. Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject:  回复: BUG #17454: Using psql without ipv4 address,the inet_server_port do not return PORT.
Date: Sun, 3 Apr 2022 01:37:53 +0000
Message-ID: <OS3PR01MB6344210DA6DD0567F072C187A4E29@OS3PR01MB6344.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <CAKFQuwavFAL0uSc=FiujzAFdoEDkkz1K6_Sw4o=GNygV18ydbg@mail.gmail.com>
References: <17454-f120d78fa9c3013d@postgresql.org>
	<CAKFQuwavFAL0uSc=FiujzAFdoEDkkz1K6_Sw4o=GNygV18ydbg@mail.gmail.com>

If I run multiple instances on one server with local socket, how can I distinguish them?I think the port is need.

________________________________
发件人: David G. Johnston <david.g.johnston@gmail.com>
发送时间: 2022年4月2日 23:07
收件人: thbytwo@live.cn <thbytwo@live.cn>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
主题: Re: BUG #17454: Using psql without ipv4 address,the inet_server_port do not return PORT.

On Friday, April 1, 2022, PG Bug reporting form <noreply@postgresql.org<mailto:noreply@postgresql.org>> wrote:
The following bug has been logged on the website:

Bug reference:      17454
Logged by:          Laowu wong
Email address:      thbytwo@live.cn<mailto:thbytwo@live.cn>
PostgreSQL version: 14.2
Operating system:   centos 7
Description:

It should return the server port when I execute 'select inet_server_port();'
with the command line 'psql -p 15431'.
It seems that if I do not enter the ipv4 address in the
psql-command-line,the pg will return null.

Right, because the default is to use a local socket.

David J.




Message-ID: <OS3PR01MB6344210DA6DD0567F072C187A4E29@OS3PR01MB6344.jpnprd01.prod.outlook.com>
Permalink:  ../OS3PR01MB6344210DA6DD0567F072C187A4E29@OS3PR01MB6344.jpnprd01.prod.outlook.com/
Also on:    postgresql.org/message-id/OS3PR01MB6344210DA6DD0567F072C187A4E29@OS3PR01MB6344.jpnprd01.prod.outlook.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: thbytwo@live.cn, david.g.johnston@gmail.com
  Subject: Re: 回复: BUG #17454: Using psql without ipv4 address,the inet_server_port do not return PORT.
  In-Reply-To: <OS3PR01MB6344210DA6DD0567F072C187A4E29@OS3PR01MB6344.jpnprd01.prod.outlook.com>
  References: <17454-f120d78fa9c3013d@postgresql.org> <CAKFQuwavFAL0uSc=FiujzAFdoEDkkz1K6_Sw4o=GNygV18ydbg@mail.gmail.com> <OS3PR01MB6344210DA6DD0567F072C187A4E29@OS3PR01MB6344.jpnprd01.prod.outlook.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox