⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pg_config.1

📁 PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开发团队说,该版本将加速更多企业向该数据库移植.核心开发成员之一Bruce Momjian表示,在新版PostgreSQL
💻 1
字号:
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "PG_CONFIG" "1" "2008-01-03" "Application" "PostgreSQL Client Applications".SH NAMEpg_config \- retrieve information about the installed version of PostgreSQL.SH SYNOPSIS.sp\fBpg_config\fR [ \fB\fIoption\fB\fR\fI...\fR ] .SH "DESCRIPTION".PPThe \fBpg_config\fR utility prints configuration parametersof the currently installed version of PostgreSQL. It isintended, for example, to be used by software packages that want to interfaceto PostgreSQL to facilitate finding the required header filesand libraries..SH "OPTIONS".PPTo use \fBpg_config\fR, supply one or more of the followingoptions:.TP\fB--bindir\fRPrint the location of user executables. Use this, for example, to findthe \fBpsql\fR program. This is normally also the locationwhere the \fIpg_config\fR program resides. .TP\fB--docdir\fRPrint the location of documentation files. (This will be an emptystring if --without-docdir was specified whenPostgreSQL was built.).TP\fB--includedir\fRPrint the location of C header files of the client interfaces..TP\fB--pkgincludedir\fRPrint the location of other C header files..TP\fB--includedir-server\fRPrint the location of C header files for server programming..TP\fB--libdir\fRPrint the location of object code libraries..TP\fB--pkglibdir\fRPrint the location of dynamically loadable modules, or wherethe server would search for them. (Otherarchitecture-dependent data files may also be installed in thisdirectory.).TP\fB--localedir\fRPrint the location of locale support files. (This will be an emptystring if locale support was not configured whenPostgreSQL was built.).TP\fB--mandir\fRPrint the location of manual pages..TP\fB--sharedir\fRPrint the location of architecture-independent support files..TP\fB--sysconfdir\fRPrint the location of system-wide configuration files..TP\fB--pgxs\fRPrint the location of extension makefiles..TP\fB--configure\fRPrint the options that were given to the \fIconfigure\fRscript when PostgreSQL was configured for building.This can be used to reproduce the identical configuration, orto find out with what options a binary package was built. (Notehowever that binary packages often contain vendor-specific custompatches.) See also the examples below..TP\fB--cc\fRPrint the value of the CC variable that was used for buildingPostgreSQL. This shows the C compiler used..TP\fB--cppflags\fRPrint the value of the CPPFLAGS variable that was used for buildingPostgreSQL. This shows C compiler switches neededat preprocessing time (typically, -I switches)..TP\fB--cflags\fRPrint the value of the CFLAGS variable that was used for buildingPostgreSQL. This shows C compiler switches..TP\fB--cflags_sl\fRPrint the value of the CFLAGS_SL variable that was used for buildingPostgreSQL. This shows extra C compiler switchesused for building shared libraries..TP\fB--ldflags\fRPrint the value of the LDFLAGS variable that was used for buildingPostgreSQL. This shows linker switches..TP\fB--ldflags_sl\fRPrint the value of the LDFLAGS_SL variable that was used for buildingPostgreSQL. This shows linker switchesused for building shared libraries..TP\fB--libs\fRPrint the value of the LIBS variable that was used for buildingPostgreSQL. This normally contains -lswitches for external libraries linked into PostgreSQL..TP\fB--version\fRPrint the version of PostgreSQL..PPIf more than one option is given, the information is printed in that order,one item per line. If no options are given, all available informationis printed, with labels..SH "NOTES".PPThe option \fB--includedir-server\fR was new inPostgreSQL 7.2. In prior releases, the server include files wereinstalled in the same location as the client headers, which couldbe queried with the option \fB--includedir\fR. To make yourpackage handle both cases, try the newer option first and test theexit status to see whether it succeeded..PPThe options \fB--docdir\fR, \fB--pkgincludedir\fR,\fB--localedir\fR, \fB--mandir\fR,\fB--sharedir\fR, \fB--sysconfdir\fR,\fB--cc\fR, \fB--cppflags\fR,\fB--cflags\fR, \fB--cflags_sl\fR,\fB--ldflags\fR, \fB--ldflags_sl\fR,and \fB--libs\fR are new in PostgreSQL 8.1..PPIn releases prior to PostgreSQL 7.1, before\fBpg_config\fR came to be, a method for finding theequivalent configuration information did not exist..SH "EXAMPLE".PPTo reproduce the build configuration of the current PostgreSQLinstallation, run the following command:.sp.nfeval ./configure `pg_config --configure`.sp.fiThe output of pg_config --configure containsshell quotation marks so arguments with spaces are representedcorrectly. Therefore, using eval is requiredfor proper results..SH "HISTORY".PPThe \fBpg_config\fR utility first appeared inPostgreSQL 7.1.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -