Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit60c38e6

Browse files
committed
Make numeric form of PG version number readily available in Makefiles.
Expose PG_VERSION_NUM (e.g., "90600") as a Make variable; but forconsistency with the other Make variables holding similar info,call the variable just VERSION_NUM not PG_VERSION_NUM.There was some discussion of making this value available as a pg_configvalue as well. However, that would entail substantially more work thanthis two-line patch. Given that there was not exactly universal consensusthat we need this at all, let's just do a minimal amount of work for now.Back-patch of commita5d489c, so that thisvariable is actually useful for its intended purpose sometime before 2020.Michael Paquier, reviewed by Pavel Stehule
1 parent4a1944e commit60c38e6

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

‎configure

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ ac_includes_default="\
627627

628628
ac_subst_vars='LTLIBOBJS
629629
vpath_build
630+
PG_VERSION_NUM
630631
PROVE
631632
OSX
632633
XSLTPROC
@@ -15056,6 +15057,7 @@ _ACEOF
1505615057

1505715058

1505815059

15060+
1505915061
# Begin output steps
1506015062

1506115063
{$as_echo"$as_me:${as_lineno-$LINENO}: using compiler=$cc_string">&5

‎configure.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,6 +2022,7 @@ AC_DEFINE_UNQUOTED(PG_VERSION_STR,
20222022
tr '.' '' |
20232023
$AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"]
20242024
AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_VERSION_NUM, [PostgreSQL version as a number])
2025+
AC_SUBST(PG_VERSION_NUM)
20252026

20262027

20272028
# Begin output steps

‎src/Makefile.global.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ all:
3838
# PostgreSQL version number
3939
VERSION = @PACKAGE_VERSION@
4040
MAJORVERSION = @PG_MAJORVERSION@
41+
VERSION_NUM = @PG_VERSION_NUM@
4142

4243
# Support for VPATH builds
4344
# (PGXS VPATH support is handled separately in pgxs.mk)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp