Re: berkley sockets - Mailing list pgsql-general

From J S B
Subject Re: berkley sockets
Date
Msg-id a47902760609122251h5795bc60ufb6831a4e2f72cc9@mail.gmail.com
Whole thread Raw
In response to Re: berkley sockets  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: berkley sockets
Re: berkley sockets
List pgsql-general
I don't want to connect to the postgres database.
 
The scenario is something like this.
 
Postgres database has to initiate some deamon process running is another server.
The only way i could think of doing this was openeing a socket connection between postgres database and
the deamon process through a shared object dynamicall loaded in postgres.
 
Berkley sockets is the socket API in unix that uses
<sys/socket.h>
 
Don't know if there's a better way to do it.
 
~Jas

 
On 9/13/06, Martijn van Oosterhout <kleptog@svana.org> wrote:
On Tue, Sep 12, 2006 at 07:52:08PM -0400, J S B wrote:
> Hi,
> Just wondering if anyone has used Berkley sockets ever.
> I'm aiming at establishing a socket connection between my Postgres database
> server (using the shared objects that i dynamically load)
> and a Unix server.
> What would be the best thing to use for such a thing in Postgres scenario?

You mean you want to connect to a postgres database? For C you'd use
libpq, but it really depends on what language you're using. Or do you
want the server to connect somewhere, or what?

What exactly would you classify under "berkley sockets" anyway?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFB5ecIB7bNG8LQkwRArlLAJ9O46fPvZ1f+BDP3vwmr+n6DbVumgCePzVp
XXqhFx9NPs5sAO7D+/bMFKI=
=JbS7
-----END PGP SIGNATURE-----



pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Initializing Datums for use with SPI_execute_plan
Next
From: Stijn Vanroye
Date:
Subject: Re: select unique items in db