Skip to content

Commit ca9112a

Browse files
committed
Stamp HEAD as 10devel.
This is a good bit more complicated than the average new-version stamping commit, because it includes various adjustments in pursuit of changing from three-part to two-part version numbers. It's likely some further work will be needed around that change; but this is enough to get through the regression tests, at least in Unix builds. Peter Eisentraut and Tom Lane
1 parent b5bce6c commit ca9112a

File tree

13 files changed

+71
-64
lines changed

13 files changed

+71
-64
lines changed

configure

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for PostgreSQL 9.6beta4.
3+
# Generated by GNU Autoconf 2.69 for PostgreSQL 10devel.
44
#
55
# Report bugs to <pgsql-bugs@postgresql.org>.
66
#
@@ -582,8 +582,8 @@ MAKEFLAGS=
582582
# Identity of this package.
583583
PACKAGE_NAME='PostgreSQL'
584584
PACKAGE_TARNAME='postgresql'
585-
PACKAGE_VERSION='9.6beta4'
586-
PACKAGE_STRING='PostgreSQL 9.6beta4'
585+
PACKAGE_VERSION='10devel'
586+
PACKAGE_STRING='PostgreSQL 10devel'
587587
PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
588588
PACKAGE_URL=''
589589

@@ -1398,7 +1398,7 @@ if test "$ac_init_help" = "long"; then
13981398
# Omit some internal or obsolete options to make the list less imposing.
13991399
# This message is too long to be a string in the A/UX 3.1 sh.
14001400
cat <<_ACEOF
1401-
\`configure' configures PostgreSQL 9.6beta4 to adapt to many kinds of systems.
1401+
\`configure' configures PostgreSQL 10devel to adapt to many kinds of systems.
14021402
14031403
Usage: $0 [OPTION]... [VAR=VALUE]...
14041404
@@ -1463,7 +1463,7 @@ fi
14631463

14641464
if test -n "$ac_init_help"; then
14651465
case $ac_init_help in
1466-
short | recursive ) echo "Configuration of PostgreSQL 9.6beta4:";;
1466+
short | recursive ) echo "Configuration of PostgreSQL 10devel:";;
14671467
esac
14681468
cat <<\_ACEOF
14691469
@@ -1615,7 +1615,7 @@ fi
16151615
test -n "$ac_init_help" && exit $ac_status
16161616
if $ac_init_version; then
16171617
cat <<\_ACEOF
1618-
PostgreSQL configure 9.6beta4
1618+
PostgreSQL configure 10devel
16191619
generated by GNU Autoconf 2.69
16201620
16211621
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2326,7 +2326,7 @@ cat >config.log <<_ACEOF
23262326
This file contains any messages produced by compilers while
23272327
running configure, to aid debugging if configure makes a mistake.
23282328
2329-
It was created by PostgreSQL $as_me 9.6beta4, which was
2329+
It was created by PostgreSQL $as_me 10devel, which was
23302330
generated by GNU Autoconf 2.69. Invocation command line was
23312331
23322332
$ $0 $@
@@ -2711,7 +2711,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
27112711
configure_args=$ac_configure_args
27122712

27132713

2714-
PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2714+
PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
27152715

27162716

27172717
cat >>confdefs.h <<_ACEOF
@@ -16433,7 +16433,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1643316433
# report actual input values of CONFIG_FILES etc. instead of their
1643416434
# values after options handling.
1643516435
ac_log="
16436-
This file was extended by PostgreSQL $as_me 9.6beta4, which was
16436+
This file was extended by PostgreSQL $as_me 10devel, which was
1643716437
generated by GNU Autoconf 2.69. Invocation command line was
1643816438
1643916439
CONFIG_FILES = $CONFIG_FILES
@@ -16503,7 +16503,7 @@ _ACEOF
1650316503
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1650416504
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1650516505
ac_cs_version="\\
16506-
PostgreSQL config.status 9.6beta4
16506+
PostgreSQL config.status 10devel
1650716507
configured by $0, generated by GNU Autoconf 2.69,
1650816508
with options \\"\$ac_cs_config\\"
1650916509

configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dnl Read the Autoconf manual for details.
1717
dnl
1818
m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
1919

20-
AC_INIT([PostgreSQL], [9.6beta4], [pgsql-bugs@postgresql.org])
20+
AC_INIT([PostgreSQL], [10devel], [pgsql-bugs@postgresql.org])
2121

2222
m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
2323
Untested combinations of 'autoconf' and PostgreSQL versions are not
@@ -29,7 +29,7 @@ AC_CONFIG_AUX_DIR(config)
2929
AC_PREFIX_DEFAULT(/usr/local/pgsql)
3030
AC_SUBST(configure_args, [$ac_configure_args])
3131

32-
[PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`]
32+
[PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`]
3333
AC_SUBST(PG_MAJORVERSION)
3434
AC_DEFINE_UNQUOTED(PG_MAJORVERSION, "$PG_MAJORVERSION", [PostgreSQL major version as a string])
3535

doc/bug.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ System Configuration:
2727

2828
Operating System (example: Linux 2.4.18) :
2929

30-
PostgreSQL version (example: PostgreSQL 9.6beta4): PostgreSQL 9.6beta4
30+
PostgreSQL version (example: PostgreSQL 10devel): PostgreSQL 10devel
3131

3232
Compiler used (example: gcc 3.3.5) :
3333

doc/src/sgml/runtime.sgml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,17 +1601,26 @@ $ <userinput>kill -INT `head -1 /usr/local/pgsql/data/postmaster.pid`</userinput
16011601
</para>
16021602

16031603
<para>
1604-
<productname>PostgreSQL</> major versions are represented by the
1605-
first two digit groups of the version number, e.g., 8.4.
1606-
<productname>PostgreSQL</> minor versions are represented by the
1607-
third group of version digits, e.g., 8.4.2 is the second minor
1608-
release of 8.4. Minor releases never change the internal storage
1609-
format and are always compatible with earlier and later minor
1610-
releases of the same major version number, e.g., 8.4.2 is compatible
1611-
with 8.4, 8.4.1 and 8.4.6. To update between compatible versions,
1612-
you simply replace the executables while the server is down and
1613-
restart the server. The data directory remains unchanged &mdash;
1614-
minor upgrades are that simple.
1604+
Current <productname>PostgreSQL</productname> version numbers consist of a
1605+
major and a minor version number. For example, in the version number 10.1,
1606+
the 10 is the major version number and the 1 is the minor version number,
1607+
meaning this would be the first minor release of the major release 10. For
1608+
releases before <productname>PostgreSQL</productname> version 10.0, version
1609+
numbers consist of three numbers, for example, 9.5.3. In those cases, the
1610+
major version consists of the first two digit groups of the version number,
1611+
e.g., 9.5, and the minor version is the third number, e.g., 3, meaning this
1612+
would be the third minor release of the major release 9.5.
1613+
</para>
1614+
1615+
<para>
1616+
Minor releases never change the internal storage format and are always
1617+
compatible with earlier and later minor releases of the same major version
1618+
number. For example, version 10.1 is compatible with version 10.0 and
1619+
version 10.6. Similarly, for example, 9.5.3 is compatible with 9.5.0,
1620+
9.5.1, and 9.5.6. To update between compatible versions, you simply
1621+
replace the executables while the server is down and restart the server.
1622+
The data directory remains unchanged &mdash; minor upgrades are that
1623+
simple.
16151624
</para>
16161625

16171626
<para>

src/backend/catalog/genbki.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
elsif ($arg =~ /^--set-version=(.*)$/)
4444
{
4545
$major_version = $1;
46-
die "Version must be in format nn.nn.\n"
47-
if !($major_version =~ /^\d+\.\d+$/);
46+
die "Invalid version string.\n"
47+
if !($major_version =~ /^\d+$/);
4848
}
4949
else
5050
{

src/backend/utils/init/miscinit.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,16 +1334,13 @@ ValidatePgVersion(const char *path)
13341334
char full_path[MAXPGPATH];
13351335
FILE *file;
13361336
int ret;
1337-
long file_major,
1338-
file_minor;
1339-
long my_major = 0,
1340-
my_minor = 0;
1337+
long file_major;
1338+
long my_major;
13411339
char *endptr;
1342-
const char *version_string = PG_VERSION;
1340+
char file_version_string[64];
1341+
const char *my_version_string = PG_VERSION;
13431342

1344-
my_major = strtol(version_string, &endptr, 10);
1345-
if (*endptr == '.')
1346-
my_minor = strtol(endptr + 1, NULL, 10);
1343+
my_major = strtol(my_version_string, &endptr, 10);
13471344

13481345
snprintf(full_path, sizeof(full_path), "%s/PG_VERSION", path);
13491346

@@ -1362,8 +1359,11 @@ ValidatePgVersion(const char *path)
13621359
errmsg("could not open file \"%s\": %m", full_path)));
13631360
}
13641361

1365-
ret = fscanf(file, "%ld.%ld", &file_major, &file_minor);
1366-
if (ret != 2)
1362+
file_version_string[0] = '\0';
1363+
ret = fscanf(file, "%63s", file_version_string);
1364+
file_major = strtol(file_version_string, &endptr, 10);
1365+
1366+
if (ret != 1 || endptr == file_version_string)
13671367
ereport(FATAL,
13681368
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
13691369
errmsg("\"%s\" is not a valid data directory",
@@ -1374,13 +1374,13 @@ ValidatePgVersion(const char *path)
13741374

13751375
FreeFile(file);
13761376

1377-
if (my_major != file_major || my_minor != file_minor)
1377+
if (my_major != file_major)
13781378
ereport(FATAL,
13791379
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
13801380
errmsg("database files are incompatible with server"),
1381-
errdetail("The data directory was initialized by PostgreSQL version %ld.%ld, "
1381+
errdetail("The data directory was initialized by PostgreSQL version %s, "
13821382
"which is not compatible with this version %s.",
1383-
file_major, file_minor, version_string)));
1383+
file_version_string, my_version_string)));
13841384
}
13851385

13861386
/*-------------------------------------------------------------------------

src/bin/pg_upgrade/check.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,8 +1082,8 @@ get_bin_version(ClusterInfo *cluster)
10821082
char cmd[MAXPGPATH],
10831083
cmd_output[MAX_STRING];
10841084
FILE *output;
1085-
int pre_dot,
1086-
post_dot;
1085+
int pre_dot = 0,
1086+
post_dot = 0;
10871087

10881088
snprintf(cmd, sizeof(cmd), "\"%s/pg_ctl\" --version", cluster->bindir);
10891089

@@ -1098,7 +1098,7 @@ get_bin_version(ClusterInfo *cluster)
10981098
if (strchr(cmd_output, '\n') != NULL)
10991099
*strchr(cmd_output, '\n') = '\0';
11001100

1101-
if (sscanf(cmd_output, "%*s %*s %d.%d", &pre_dot, &post_dot) != 2)
1101+
if (sscanf(cmd_output, "%*s %*s %d.%d", &pre_dot, &post_dot) < 1)
11021102
pg_fatal("could not get version from %s\n", cmd);
11031103

11041104
cluster->bin_version = (pre_dot * 100 + post_dot) * 100;

src/bin/pg_upgrade/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ get_major_server_version(ClusterInfo *cluster)
166166

167167
if (fscanf(version_fd, "%63s", cluster->major_version_str) == 0 ||
168168
sscanf(cluster->major_version_str, "%d.%d", &integer_version,
169-
&fractional_version) != 2)
169+
&fractional_version) < 1)
170170
pg_fatal("could not get version from %s\n", cluster->pgdata);
171171

172172
fclose(version_fd);

src/include/pg_config.h.win32

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,10 +554,10 @@
554554
#define PACKAGE_NAME "PostgreSQL"
555555

556556
/* Define to the full name and version of this package. */
557-
#define PACKAGE_STRING "PostgreSQL 9.6beta4"
557+
#define PACKAGE_STRING "PostgreSQL 10devel"
558558

559559
/* Define to the version of this package. */
560-
#define PACKAGE_VERSION "9.6beta4"
560+
#define PACKAGE_VERSION "10devel"
561561

562562
/* Define to the name of a signed 128-bit integer type. */
563563
#undef PG_INT128_TYPE
@@ -566,10 +566,10 @@
566566
#define PG_INT64_TYPE long long int
567567

568568
/* PostgreSQL version as a string */
569-
#define PG_VERSION "9.6beta4"
569+
#define PG_VERSION "10devel"
570570

571571
/* PostgreSQL version as a number */
572-
#define PG_VERSION_NUM 90600
572+
#define PG_VERSION_NUM 100000
573573

574574
/* Define to the one symbol short name of this package. */
575575
#define PACKAGE_TARNAME "postgresql"

src/interfaces/libpq/libpq.rc.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include <winver.h>
22

33
VS_VERSION_INFO VERSIONINFO
4-
FILEVERSION 9,6,0,0
5-
PRODUCTVERSION 9,6,0,0
4+
FILEVERSION 10,0,0,0
5+
PRODUCTVERSION 10,0,0,0
66
FILEFLAGSMASK 0x3fL
77
FILEFLAGS 0
88
FILEOS VOS__WINDOWS32
@@ -15,13 +15,13 @@ BEGIN
1515
BEGIN
1616
VALUE "CompanyName", "\0"
1717
VALUE "FileDescription", "PostgreSQL Access Library\0"
18-
VALUE "FileVersion", "9.6.0\0"
18+
VALUE "FileVersion", "10.0\0"
1919
VALUE "InternalName", "libpq\0"
2020
VALUE "LegalCopyright", "Copyright (C) 2016\0"
2121
VALUE "LegalTrademarks", "\0"
2222
VALUE "OriginalFilename", "libpq.dll\0"
2323
VALUE "ProductName", "PostgreSQL\0"
24-
VALUE "ProductVersion", "9.6.0\0"
24+
VALUE "ProductVersion", "10.0\0"
2525
END
2626
END
2727
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy