Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 1CD429F98A4 for ; Wed, 12 Sep 2007 14:35:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 43053-08 for ; Wed, 12 Sep 2007 14:35:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from joeconway.com (joeconway.com [68.15.9.201]) by postgresql.org (Postfix) with ESMTP id 81A169F97B5 for ; Wed, 12 Sep 2007 14:35:06 -0300 (ADT) Received: from [206.190.70.130] (account jconway HELO [172.16.1.115]) by joeconway.com (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 5365746; Wed, 12 Sep 2007 10:35:05 -0700 Message-ID: <46E82342.4030808@joeconway.com> Date: Wed, 12 Sep 2007 10:34:58 -0700 From: Joe Conway User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: Jessica Richard CC: pgsql-admin@postgresql.org Subject: Re: how to change the port number for the Postgres server References: <685903.26955.qm@web56414.mail.re3.yahoo.com> In-Reply-To: <685903.26955.qm@web56414.mail.re3.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/81 X-Sequence-Number: 26842 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. postgresql.conf only affects the server. dblink is a client. Either set PGPORT environment variable, or explicitly call out the port number you want as part of the libpg connection string. See: http://www.postgresql.org/docs/8.2/interactive/libpq-envars.html http://www.postgresql.org/docs/8.2/interactive/libpq-connect.html HTH, Joe