Re: psql proxy

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Linsong GUO <comrade(dot)gls(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: psql proxy
Date: 2008-05-16 08:23:18
Message-ID: 20080516082318.GB12353@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, May 16, 2008 at 01:53:30PM +1000, Linsong GUO wrote:
> I want build a psql proxy which could deal with the connection request from
> localhost to psql server which on other machine by type in psql -h localhost
> -U bob network.

Simple solution: use ssh tunneling

Without any security: use netcat

> what function should I use to capture these information in my proxy code. I
> try to print the buf but there is nothing there after the read function.

There's nothing special needed for psql, just using a standard network
proxy will be fine.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

In response to

  • psql proxy at 2008-05-16 03:53:30 from Linsong GUO

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2008-05-16 08:28:25 Re: recommended way of separating data from indexes
Previous Message Richard Huxton 2008-05-16 08:19:37 Re: Howto return values from a function