aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-02-28 16:41:21 +0000
committerBruce Momjian <bruce@momjian.us>2006-02-28 16:41:21 +0000
commit03024ca5a1437712bfa554470711f44577dcc3d2 (patch)
tree3d617265b8d1ddb21ef28422405c6bd24d52d966 /src
parentd2c555ee538f34be7aff744b994df4d2369a9140 (diff)
downloadpostgresql-03024ca5a1437712bfa554470711f44577dcc3d2.tar.gz
postgresql-03024ca5a1437712bfa554470711f44577dcc3d2.zip
Add PG_VERSION_NUM for use by 3rd party applications wanting to test the
backend version in C using > and < comparisons.
Diffstat (limited to 'src')
-rw-r--r--src/include/pg_config.h.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 8c5a69a85bc..e948cb207ad 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -547,9 +547,12 @@
(--with-krb-srvnam=NAME) */
#undef PG_KRB_SRVNAM
-/* PostgreSQL version */
+/* PostgreSQL version as a string */
#undef PG_VERSION
+/* PostgreSQL version as a number */
+#undef PG_VERSION_NUM
+
/* A string containing the version number, platform, and C compiler */
#undef PG_VERSION_STR