Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here




I am about develop an application on Borland C++ Builder 5.0, and the idea is to connect the application to a Postgresql 7.2 db that is running on linux...

do you think is going to work? i am kind of doubtful about the Windows-linux connectivity using C++....Will the libpq++ solve the problem? do I need any kind of dbc connection?

Thanks in advance.

RE: C++

As I understand it, if you use libpq, all you need is TCP/IP networking, and you can access a remote PostgreSQL database. You have to be careful to set up your pg_hba.conf file correctly to allow for remote connections, though, and you have to start the postgres daemon with the -i option.

ODBC also works quite well, though. Just go to http://odbc.postgresql.org/ and download psqlODBC to install on any Windows system that will be accessing the database, and you have an ODBC connection to PostgreSQL. (I believe psqlODBC simply provides an ODBC "front end" to libpq which makes the actual connection to PostgreSQL)


Big Brother: "War is Peace" -- Big Business: "Trust is Suspicion"

RE: C++

so...it doesn't matter if my C++ is under Windows and my db is under linux?...I am not going to have any configuration or compatibilities issues?

Thanks for your answer...

RE: C++

No it doesn't. As long as you have the client libraries for your Windows box, it doesn't care what OS the PostgreSQL server is running.


RE: C++



RE: C++

me again...

so I will have to download the libpq++ library files for Windows, put those on my Windows box and include the library on my program to connect to the Postgresql db?

Where can I get the libpq++ library?

have you used it?...do you know about performance issues? or bugs?


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close