Search Postgresql Archives

Re: berkley sockets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@xxxxxxxxx>   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-----




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux