Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
03024ca5
Commit
03024ca5
authored
19 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Add PG_VERSION_NUM for use by 3rd party applications wanting to test the
backend version in C using > and < comparisons.
parent
d2c555ee
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure
+8
-0
8 additions, 0 deletions
configure
configure.in
+6
-2
6 additions, 2 deletions
configure.in
src/include/pg_config.h.in
+4
-1
4 additions, 1 deletion
src/include/pg_config.h.in
with
18 additions
and
3 deletions
configure
+
8
−
0
View file @
03024ca5
...
...
@@ -4742,6 +4742,14 @@ fi
fi
# Supply a numeric version string for use by 3rd party add-ons
PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
$AWK -F'\.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
cat >>confdefs.h <<_ACEOF
#define PG_VERSION_NUM $PG_VERSION_NUM
_ACEOF
##
## Libraries
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
6
−
2
View file @
03024ca5
dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.45
0
2006/02/2
1 06:06:50 tgl
Exp $
dnl $PostgreSQL: pgsql/configure.in,v 1.45
1
2006/02/2
8 16:41:21 momjian
Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -26,7 +26,7 @@ AC_CONFIG_AUX_DIR(config)
AC_PREFIX_DEFAULT(/usr/local/pgsql)
AC_SUBST(configure_args, [$ac_configure_args])
AC_DEFINE_UNQUOTED(PG_VERSION, "$PACKAGE_VERSION", [PostgreSQL version])
AC_DEFINE_UNQUOTED(PG_VERSION, "$PACKAGE_VERSION", [PostgreSQL version
as a string
])
AC_CANONICAL_HOST
...
...
@@ -585,6 +585,10 @@ if test "$with_python" = yes; then
PGAC_CHECK_PYTHON_EMBED_SETUP
fi
# Supply a numeric version string for use by 3rd party add-ons
PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
$AWK -F'\.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_VERSION_NUM, [PostgreSQL version as a number])
##
## Libraries
...
...
This diff is collapsed.
Click to expand it.
src/include/pg_config.h.in
+
4
−
1
View file @
03024ca5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment