Thread: How to connect with postmaster through TCP socket

How to connect with postmaster through TCP socket

From
"Deepa K"
Date:
Hi,
  I am using postgresql 7.1.3 in RedHatLinux 7.2. Can anyone tell me how
to connect with postmaster through TCP socket (it is started with -i
option) using libpq from an external application. (written in C)

--
regards,
Deepa K

Re: How to connect with postmaster through TCP socket

From
Neil Conway
Date:
On Mon, 2004-10-25 at 22:59, Deepa K wrote:
> Hi,
>   I am using postgresql 7.1.3 in RedHatLinux 7.2.

Note that PostgreSQL 7.1.3 is quite old -- you should consider
upgrading.

> Can anyone tell me how
> to connect with postmaster through TCP socket (it is started with -i
> option) using libpq from an external application. (written in C)

http://www.postgresql.org/docs/7.4/static/libpq.html#LIBPQ-CONNECT

-Neil