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.
我想写一个使用Postgresql作为DBMS的应用程序。要编写客户端应用程序,我需要libpq库和头文件吗?如果是,我将获得libpq库和头文件。
2 个解决方案
#1
13
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.
Libpq包含在完整的PostgreSQL源代码中。您可以只使用libpq而不使用PostgreSQL的其余部分,但必须下载完整的包。
You can download it from the PostgreSQL Downloads page.
您可以从PostgreSQL下载页面下载它。
Once you extract the full package it is inside src\interfaces\libpq
.
提取完整的包之后,它就在src\interface \libpq中了。
The PostgreSQL installation guide details how to install only the client libraries in the Installation section, under Client-only installation.
PostgreSQL安装指南详细介绍了如何在安装部分(仅在客户端安装下)只安装客户端库。
Libpq documentation is also available.
Libpq文档也可用。
#2
9
In postgresql sources, src\interfaces\libpq.
And yes, it is possible to compile only the libpq.
在postgresql来源,src \ \ libpq接口。是的,只编译libpq是可能的。
#1
13
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.
Libpq包含在完整的PostgreSQL源代码中。您可以只使用libpq而不使用PostgreSQL的其余部分,但必须下载完整的包。
You can download it from the PostgreSQL Downloads page.
您可以从PostgreSQL下载页面下载它。
Once you extract the full package it is inside src\interfaces\libpq
.
提取完整的包之后,它就在src\interface \libpq中了。
The PostgreSQL installation guide details how to install only the client libraries in the Installation section, under Client-only installation.
PostgreSQL安装指南详细介绍了如何在安装部分(仅在客户端安装下)只安装客户端库。
Libpq documentation is also available.
Libpq文档也可用。
#2
9
In postgresql sources, src\interfaces\libpq.
And yes, it is possible to compile only the libpq.
在postgresql来源,src \ \ libpq接口。是的,只编译libpq是可能的。