pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: thbytwo@live.cn
Subject: BUG #17454: Using psql without ipv4 address,the inet_server_port do not return PORT.
Date: Sat, 02 Apr 2022 01:15:20 +0000
Message-ID: <17454-f120d78fa9c3013d@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17454
Logged by:          Laowu wong
Email address:      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.

the current behavior:
[postgres@pc67 ~]$ /home/postgres/pgREL1402/bin/psql -p 15431
psql (14.2)
Type "help" for help.

postgres=# select inet_server_port();
 inet_server_port 
------------------

(1 row)

the expected:
[postgres@pc67 ~]$ /home/postgres/pgREL1402/bin/psql -p 15431
psql (14.2)
Type "help" for help.

postgres=# select inet_server_port();
 inet_server_port 
------------------
            15431
(1 row)


the env:
centos 7  x86
PG14.2



view thread (7+ messages)  latest in thread

Message-ID: <17454-f120d78fa9c3013d@postgresql.org>
Permalink:  ../17454-f120d78fa9c3013d@postgresql.org/
Also on:    postgresql.org/message-id/17454-f120d78fa9c3013d@postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, thbytwo@live.cn
  Subject: Re: BUG #17454: Using psql without ipv4 address,the inet_server_port do not return PORT.
  In-Reply-To: <17454-f120d78fa9c3013d@postgresql.org>

* 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