Re: BUG #17454: Using psql without ipv4 address,the inet_server_port do not return PORT.

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "thbytwo(at)live(dot)cn" <thbytwo(at)live(dot)cn>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #17454: Using psql without ipv4 address,the inet_server_port do not return PORT.
Date: 2022-04-02 15:07:21
Message-ID: CAKFQuwavFAL0uSc=FiujzAFdoEDkkz1K6_Sw4o=GNygV18ydbg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Friday, April 1, 2022, PG Bug reporting form <noreply(at)postgresql(dot)org>
wrote:

> The following bug has been logged on the website:
>
> Bug reference: 17454
> Logged by: Laowu wong
> Email address: thbytwo(at)live(dot)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.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Wong Simon 2022-04-03 01:37:53 回复: BUG #17454: Using psql without ipv4 address,the inet_server_port do not return PORT.
Previous Message Noah Misch 2022-04-02 07:27:49 Re: Reconnect a single connection used by multiple threads in embedded SQL in C application causes error.