Skip to content

Commit 3836ac1

Browse files
Merge pull request #27 from dutow/pg1282
PG-1282: Fix `SELECT version()`
2 parents 7b49641 + 133255a commit 3836ac1

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

configure

+6-6
Original file line numberDiff line numberDiff line change
@@ -15046,7 +15046,7 @@ else
1504615046
We can't simply define LARGE_OFF_T to be 9223372036854775807,
1504715047
since some C++ compilers masquerading as C compilers
1504815048
incorrectly reject 9223372036854775807. */
15049-
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15049+
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1505015050
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
1505115051
&& LARGE_OFF_T % 2147483647 == 1)
1505215052
? 1 : -1];
@@ -15092,7 +15092,7 @@ else
1509215092
We can't simply define LARGE_OFF_T to be 9223372036854775807,
1509315093
since some C++ compilers masquerading as C compilers
1509415094
incorrectly reject 9223372036854775807. */
15095-
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15095+
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1509615096
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
1509715097
&& LARGE_OFF_T % 2147483647 == 1)
1509815098
? 1 : -1];
@@ -15116,7 +15116,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1511615116
We can't simply define LARGE_OFF_T to be 9223372036854775807,
1511715117
since some C++ compilers masquerading as C compilers
1511815118
incorrectly reject 9223372036854775807. */
15119-
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15119+
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1512015120
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
1512115121
&& LARGE_OFF_T % 2147483647 == 1)
1512215122
? 1 : -1];
@@ -15161,7 +15161,7 @@ else
1516115161
We can't simply define LARGE_OFF_T to be 9223372036854775807,
1516215162
since some C++ compilers masquerading as C compilers
1516315163
incorrectly reject 9223372036854775807. */
15164-
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15164+
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1516515165
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
1516615166
&& LARGE_OFF_T % 2147483647 == 1)
1516715167
? 1 : -1];
@@ -15185,7 +15185,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1518515185
We can't simply define LARGE_OFF_T to be 9223372036854775807,
1518615186
since some C++ compilers masquerading as C compilers
1518715187
incorrectly reject 9223372036854775807. */
15188-
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15188+
#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
1518915189
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
1519015190
&& LARGE_OFF_T % 2147483647 == 1)
1519115191
? 1 : -1];
@@ -19335,7 +19335,7 @@ fi
1933519335

1933619336

1933719337
cat >>confdefs.h <<_ACEOF
19338-
#define PG_VERSION_STR "Percona Server for PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
19338+
#define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
1933919339
_ACEOF
1934019340

1934119341

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -2473,7 +2473,7 @@ else
24732473
fi
24742474

24752475
AC_DEFINE_UNQUOTED(PG_VERSION_STR,
2476-
["Percona Server for PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"],
2476+
["PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"],
24772477
[A string containing the version number, platform, and C compiler])
24782478

24792479
# Supply a numeric version string for use by 3rd party add-ons

contrib/pg_tde

meson.build

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ cdata.set_quoted('PACKAGE_VERSION', pg_version)
145145
cdata.set_quoted('PACKAGE_STRING', 'PostgreSQL @0@'.format(pg_version))
146146
cdata.set_quoted('PACKAGE_TARNAME', 'postgresql')
147147

148-
pg_version += ' - PostgreSQL ' + pg_version_major.to_string() + '.' + pg_version_minor.to_string() + '.' + pg_percona_ver
148+
pg_version += ' - Percona Server for PostgreSQL ' + pg_version_major.to_string() + '.' + pg_version_minor.to_string() + '.' + pg_percona_ver
149149
pg_version += get_option('extra_version')
150150
cdata.set_quoted('PG_VERSION', pg_version)
151151
cdata.set_quoted('PG_MAJORVERSION', pg_version_major.to_string())
@@ -2777,7 +2777,7 @@ cdata.set_quoted('DLSUFFIX', dlsuffix)
27772777

27782778
# built later than the rest of the version metadata, we need SIZEOF_VOID_P
27792779
cdata.set_quoted('PG_VERSION_STR',
2780-
'Percona Server for PostgreSQL @0@ on @1@-@2@, compiled by @3@-@4@, @5@-bit'.format(
2780+
'PostgreSQL @0@ on @1@-@2@, compiled by @3@-@4@, @5@-bit'.format(
27812781
pg_version, host_machine.cpu_family(), host_system,
27822782
cc.get_id(), cc.version(), cdata.get('SIZEOF_VOID_P') * 8,
27832783
)

src/include/pg_config.h.in

+9
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@
246246
/* Define to 1 if you have the `crypto' library (-lcrypto). */
247247
#undef HAVE_LIBCRYPTO
248248

249+
/* Define to 1 if you have the `curl' library (-lcurl). */
250+
#undef HAVE_LIBCURL
251+
249252
/* Define to 1 if you have the `ldap' library (-lldap). */
250253
#undef HAVE_LIBLDAP
251254

@@ -630,6 +633,9 @@
630633
/* PostgreSQL minor version number */
631634
#undef PG_MINORVERSION_NUM
632635

636+
/* PostgreSQL Percona version as a string */
637+
#undef PG_PERCONAVERSION
638+
633639
/* Define to best printf format archetype, usually gnu_printf if available. */
634640
#undef PG_PRINTF_ATTRIBUTE
635641

@@ -705,6 +711,9 @@
705711
/* Define to 1 to build with BSD Authentication support. (--with-bsd-auth) */
706712
#undef USE_BSD_AUTH
707713

714+
/* Define to 1 to build with curl support. (--with-curl) */
715+
#undef USE_CURL
716+
708717
/* Define to build with ICU support. (--with-icu) */
709718
#undef USE_ICU
710719

0 commit comments

Comments
 (0)