Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 3C68F1337BC3 for ; Thu, 10 Mar 2011 04:54:20 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 02398-04 for ; Thu, 10 Mar 2011 08:54:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id F02A31337BC2 for ; Thu, 10 Mar 2011 04:54:12 -0400 (AST) Received: from [192.168.10.3] (ASte-Genev-Bois-153-1-34-187.w83-200.abo.wanadoo.fr [83.200.24.187]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id EF7AE3B909; Thu, 10 Mar 2011 09:54:12 +0100 (CET) Message-ID: <4D7891B4.2030400@lelarge.info> Date: Thu, 10 Mar 2011 09:54:12 +0100 From: Guillaume Lelarge User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); fr; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Selva manickaraja CC: pgsql-admin@postgresql.org Subject: Re: Proxy for psql References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201103/109 X-Sequence-Number: 36981 Le 10/03/2011 02:16, Selva manickaraja a écrit : > Hi All, > > We are using Tsung to load and stress test postgresql. Tsung runs such a way > that it need the application to use a port that Tsung listens to as a proxy. > > So in our case we need psql to use Tsung as a proxy to ulimately connect to > postgresql. Is there a way for psql to use a particular port? > Use -p. -- Guillaume http://www.postgresql.fr http://dalibo.com