From rjessil@yahoo.com Wed Sep 12 17:10:59 2007 Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 40F7E9FA530 for ; Wed, 12 Sep 2007 14:10:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 61375-02-2 for ; Wed, 12 Sep 2007 14:10:53 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from web56414.mail.re3.yahoo.com (web56414.mail.re3.yahoo.com [216.252.111.93]) by postgresql.org (Postfix) with SMTP id BB4E99FA543 for ; Wed, 12 Sep 2007 14:10:52 -0300 (ADT) Received: (qmail 28388 invoked by uid 60001); 12 Sep 2007 17:10:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=U+O0AhAMT2Rwkbd+8rbdi5fP5Dr2MTvqRgBc0LiNq3tOh5fByHij2YmFNRwvRbMPyCR4qaiZ4X9iNEkrKKsYxECLHFeRy+4PVAqpE9JcU2Z/9rjV/HGIYLSDveZ/MJtITTs5NNunfT/0Tkr2djgb53IUdnymbbohr2hpk+qP8po=; X-YMail-OSG: sisPojEVM1mb.vADFV9zLGY2ey9jtmKUMR8GNw4apSmS33f8IhW4nlNTNpMpwA9D_ZcqTjTuAC2glZ3O2KxmnW4FyixTQzHUVTLi Received: from [198.119.134.32] by web56414.mail.re3.yahoo.com via HTTP; Wed, 12 Sep 2007 10:10:51 PDT Date: Wed, 12 Sep 2007 10:10:51 -0700 (PDT) From: Jessica Richard Subject: how to change the port number for the Postgres server To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1747909446-1189617051=:26955" Content-Transfer-Encoding: 8bit Message-ID: <685903.26955.qm@web56414.mail.re3.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/80 X-Sequence-Number: 26841 --0-1747909446-1189617051=:26955 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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. --0-1747909446-1189617051=:26955 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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. --0-1747909446-1189617051=:26955-- From kevin@kevinkempterllc.com Wed Sep 12 17:35:20 2007 Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 708619F98F7 for ; Wed, 12 Sep 2007 14:35:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 67075-02 for ; Wed, 12 Sep 2007 14:35:15 -0300 (ADT) X-Greylist: delayed 00:06:43.078736 by SQLgrey-1.7.5 Received: from outbound-mail-77.bluehost.com (outbound-mail-77.bluehost.com [69.89.22.26]) by postgresql.org (Postfix) with SMTP id 384819F97B5 for ; Wed, 12 Sep 2007 14:35:15 -0300 (ADT) Received: (qmail 10801 invoked by uid 0); 12 Sep 2007 17:28:30 -0000 Received: from unknown (HELO box54.bluehost.com) (69.89.20.54) by mailproxy4.bluehost.com with SMTP; 12 Sep 2007 17:28:30 -0000 Received: from rrcs-71-41-16-51.sw.biz.rr.com ([71.41.16.51] helo=[10.0.12.106]) by box54.bluehost.com with esmtp (Exim 4.66) (envelope-from ) id 1IVW0q-0003x0-Pn for pgsql-admin@postgresql.org; Wed, 12 Sep 2007 11:28:29 -0600 From: Kevin Kempter To: pgsql-admin@postgresql.org Subject: Re: how to change the port number for the Postgres server Date: Wed, 12 Sep 2007 11:23:37 -0600 User-Agent: KMail/1.9.7 References: <685903.26955.qm@web56414.mail.re3.yahoo.com> In-Reply-To: <685903.26955.qm@web56414.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709121123.38968.kevin@kevinkempterllc.com> X-Identified-User: {840:box54.bluehost.com:kevinkem:kevinkempterllc.com} {sentby:bopbeforesmtp 71.41.16.51 authed with kevinkempterllc.com} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/82 X-Sequence-Number: 26843 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 From mail@joeconway.com Wed Sep 12 17:35:11 2007 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