pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15012: psql doesn't use server's default port
2+ messages / 2 participants
[nested] [flat]

* BUG #15012: psql doesn't use server's default port
@ 2018-01-15 16:06  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Bug reporting form @ 2018-01-15 16:06 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: konstantin@kkalinin.pro

The following bug has been logged on the website:

Bug reference:      15012
Logged by:          Константин Калинин
Email address:      konstantin@kkalinin.pro
PostgreSQL version: 10.1
Operating system:   Xubuntu 16.04
Description:        

I had PosgreSQL 9.6 server, that ran on 5432 port and installed 10.1
simultaneously so it started to use 5433 port. 
Both were installed via apt repo http://apt.postgresql.org/pub/repos/apt/
xenial-pgdg main.
After that I've uninstalled 9.6.

Now, though `psql` says in help that it's going to connect to 5433 port by
default, it's connecting to 5432. So I have to explicitly set a `-p 5433`
option. 



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #15012: psql doesn't use server's default port
@ 2018-01-15 18:05  Pavel Stehule <pavel.stehule@gmail.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Pavel Stehule @ 2018-01-15 18:05 UTC (permalink / raw)
  To: konstantin@kkalinin.pro; pgsql-bugs@lists.postgresql.org

Hi

2018-01-15 17:06 GMT+01:00 PG Bug reporting form <noreply@postgresql.org>:

> The following bug has been logged on the website:
>
> Bug reference:      15012
> Logged by:          Константин Калинин
> Email address:      konstantin@kkalinin.pro
> PostgreSQL version: 10.1
> Operating system:   Xubuntu 16.04
> Description:
>
> I had PosgreSQL 9.6 server, that ran on 5432 port and installed 10.1
> simultaneously so it started to use 5433 port.
> Both were installed via apt repo http://apt.postgresql.org/pub/repos/apt/
> xenial-pgdg main.
> After that I've uninstalled 9.6.
>
> Now, though `psql` says in help that it's going to connect to 5433 port by
> default, it's connecting to 5432. So I have to explicitly set a `-p 5433`
> option.
>

Probably somewhere in your environment is setting export PGPORT=5433.

You should to find it and remove.

Regards

Pavel

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-01-15 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-15 16:06 BUG #15012: psql doesn't use server's default port PG Bug reporting form <noreply@postgresql.org>
2018-01-15 18:05 ` Pavel Stehule <pavel.stehule@gmail.com>

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