pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedUse of Port 5433 with Postgresql 9.6
6+ messages / 5 participants
[nested] [flat]
* Use of Port 5433 with Postgresql 9.6
@ 2018-01-01 17:42 Graeme <graeme@gemmill.name>
0 siblings, 3 replies; 6+ messages in thread
From: Graeme @ 2018-01-01 17:42 UTC (permalink / raw)
To: pgsql-general
If the default port for v9.6 is 5433, why does the utility pg_isready
still default to searching for 5432?
Graeme
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Use of Port 5433 with Postgresql 9.6
@ 2018-01-01 18:11 Karsten Hilbert <Karsten.Hilbert@gmx.net>
parent: Graeme <graeme@gemmill.name>
2 siblings, 0 replies; 6+ messages in thread
From: Karsten Hilbert @ 2018-01-01 18:11 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org; pgsql-general
On Mon, Jan 01, 2018 at 05:42:28PM +0000, Graeme wrote:
> If the default port for v9.6 is 5433,
It is not.
> why does the utility pg_isready still
> default to searching for 5432?
Which is why.
Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Use of Port 5433 with Postgresql 9.6
@ 2018-01-01 18:15 Andreas Kretschmer <andreas@a-kretschmer.de>
parent: Graeme <graeme@gemmill.name>
2 siblings, 1 reply; 6+ messages in thread
From: Andreas Kretschmer @ 2018-01-01 18:15 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org; Graeme <graeme@gemmill.name>; pgsql-general
On 1 January 2018 18:42:28 CET, Graeme <graeme@gemmill.name> wrote:
>If the default port for v9.6 is 5433, why does the utility pg_isready
>still default to searching for 5432?
The default port for PostgreSQL is 5432. You can use option -p or --port to specify an other Port. You can also set Environment-varibles, please see our fine documention (libpq).
Regards, Andreas
--
2ndQuadrant - The PostgreSQL Support Company
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Use of Port 5433 with Postgresql 9.6
@ 2018-01-01 18:40 Jeff Janes <jeff.janes@gmail.com>
parent: Graeme <graeme@gemmill.name>
2 siblings, 1 reply; 6+ messages in thread
From: Jeff Janes @ 2018-01-01 18:40 UTC (permalink / raw)
To: Graeme <graeme@gemmill.name>; +Cc: pgsql-general
On Mon, Jan 1, 2018 at 12:42 PM, Graeme <graeme@gemmill.name> wrote:
> If the default port for v9.6 is 5433, why does the utility pg_isready
> still default to searching for 5432?
The Ubuntu packages use 5433 if you already have something (either a
different packaged version, or an unpackaged system) running on 5432. That
does not change the compiled-in default, but it will make a shell wrapper
around pg_isready which causes it to look at the right port, as long as you
invoked the correct pg_isready (the one that came with the package)
Cheers,
Jeff
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Use of Port 5433 with Postgresql 9.6
@ 2018-01-01 18:54 Paul Jungwirth <pj@illuminatedcomputing.com>
parent: Jeff Janes <jeff.janes@gmail.com>
0 siblings, 0 replies; 6+ messages in thread
From: Paul Jungwirth @ 2018-01-01 18:54 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 01/01/2018 10:40 AM, Jeff Janes wrote:
> The Ubuntu packages use 5433 if you already have something (either a
> different packaged version, or an unpackaged system) running on 5432.
Also on Ubuntu lots of the Postgres utilities will obey an envvar like
`PGCLUSTER=9.5/main` to let you choose which version of
psql/pg_dump/etc. I don't know about pg_isready but it's worth a try.
Even if pg_isready doesn't follow that pattern, it is probably easy to
"teach" it. Here is how I did a similar thing for pg_config:
https://stackoverflow.com/questions/30143046/pg-config-shows-9-4-instead-of-9-3/43403193#43403193
Yours,
--
Paul ~{:-)
pj@illuminatedcomputing.com
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Use of Port 5433 with Postgresql 9.6
@ 2018-01-02 16:37 Graeme <graeme@gemmill.name>
parent: Andreas Kretschmer <andreas@a-kretschmer.de>
0 siblings, 0 replies; 6+ messages in thread
From: Graeme @ 2018-01-02 16:37 UTC (permalink / raw)
To: pgsql-general
Jeff, Andrew, Andreas: Thank you for your replies.
Environment is Mageia 6 x86_64. I think the packagers must have set up
the 5433 port (although I notice the documentation for pg_ctl contains
several examples using 5433).
Anyway, I am relieved that 5432 is still regarded as the main port, and
have changed all port references to that.
Regards
Graeme
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-01-02 16:37 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-01 17:42 Use of Port 5433 with Postgresql 9.6 Graeme <graeme@gemmill.name>
2018-01-01 18:11 ` Karsten Hilbert <Karsten.Hilbert@gmx.net>
2018-01-01 18:15 ` Andreas Kretschmer <andreas@a-kretschmer.de>
2018-01-02 16:37 ` Graeme <graeme@gemmill.name>
2018-01-01 18:40 ` Jeff Janes <jeff.janes@gmail.com>
2018-01-01 18:54 ` Paul Jungwirth <pj@illuminatedcomputing.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