Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do I get libpq source?

I want to write application which uses Postgresql as DBMS. To write client application do I need libpq library and header files? If yes where I would get libpq library and header files.

like image 682
Raviprakash Avatar asked Aug 07 '09 13:08

Raviprakash


People also ask

How do I install Libpq Dev on Windows?

Download one of the "core" files for the particular version you're looking for. You'll get a tarball that if you expand you'll find a "libpq" folder. Where that should go on your system depends on what kind of development toolchain you're using.

What is Libpq in Postgres?

libpq is a set of library functions that allow client programs to pass queries to the PostgreSQL backend server and to receive the results of these queries. libpq is also the underlying engine for several other PostgreSQL application interfaces, including those written for C++, Perl, Python, Tcl and ECPG.


2 Answers

Libpq is included in the full PostgreSQL source code. You can use just libpq without the rest of PostgreSQL, but must download the full package.

You can download it from the PostgreSQL Downloads page.

Once you extract the full package it is inside src\interfaces\libpq.

The PostgreSQL installation guide details how to install only the client libraries in the Installation section, under Client-only installation.

Libpq documentation is also available.

like image 98
Sadegh Avatar answered Oct 02 '22 00:10

Sadegh


In postgresql sources, src\interfaces\libpq.

And yes, it is possible to compile only the libpq.

like image 29
Andrejs Cainikovs Avatar answered Oct 01 '22 23:10

Andrejs Cainikovs