Skip site navigation (1) Skip section navigation (2)

Re: how to change the port number for the Postgres server

From: Kevin Kempter <kevin(at)kevinkempterllc(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: how to change the port number for the Postgres server
Date: 2007-09-12 17:23:37
Message-ID: 200709121123.38968.kevin@kevinkempterllc.com (view raw or flat)
Thread:
Lists: pgsql-admin
On Wednesday 12 September 2007 11:10:51 Jessica Richard wrote:
> Everything was running fine under the default number 5432. After the port
> number was changed to another number  in postresql.conf file and the server
> was restarted, dblink is broken, it is still looking for the old port
> number 5432... not sure if everything else is broken as well...
>
> So, how to change the port number cleanly? There other Postgis components
> on the system too.
>
> Thanks,
> Jessica
>
>
> ---------------------------------
> Need a vacation? Get great deals to amazing places on Yahoo! Travel.


Not sure if this is a full fix per dblink but you might try setting this in 
the postgres .bashrc or .profile (or even in /etc/profile)

export PGPORT=5555 
# of course change 5555 to your new port number


/Kevin

In response to

pgsql-admin by date

Next:From: Joe ConwayDate: 2007-09-12 17:34:58
Subject: Re: how to change the port number for the Postgres server
Previous:From: Jessica RichardDate: 2007-09-12 17:10:51
Subject: how to change the port number for the Postgres server

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group