From: | "J S B" <jsbali(at)gmail(dot)com> |
---|---|
To: | "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, "J S B" <jsbali(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: berkley sockets |
Date: | 2006-09-13 05:51:38 |
Message-ID: | a47902760609122251h5795bc60ufb6831a4e2f72cc9@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)svana(dot)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(at)svana(dot)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-----
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Sim Zacks | 2006-09-13 06:26:38 | Re: off topic - web shop |
Previous Message | Martijn van Oosterhout | 2006-09-13 05:35:57 | Re: Initializing Datums for use with SPI_execute_plan |