Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting to postgres using libpq

Status
Not open for further replies.

alcraigon

MIS
Jan 9, 2003
2
GB
I am having trouble getting a simple C program to connect to a postgres database! I start the server using
postmaster -iD ****. (I understand the "i" option allows TCP/IP socket connections). Can anyone tell me the correct way to start the posgres server to allow TCP/IP connections? Using postmaster -iD **** allows me to use psql.
 
That is correct, but you must also modify the pg_hba.conf file to specifically allow the IP addresses or hostnames that will be connecting to PostgreSQL. -------------------------------------------

PHP/Perl/SQL/Javascript --
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top