Skip to content

Commit 3f6b406

Browse files
committed
Merge remote-tracking branch 'upstream/master'
Conflicts: src/backend/tcop/postgres.c src/interfaces/libpq/exports.txt src/interfaces/libpq/fe-exec.c
2 parents 2fc36a4 + 643f75c commit 3f6b406

File tree

1,559 files changed

+19849
-8970
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,559 files changed

+19849
-8970
lines changed

COPYRIGHT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PostgreSQL Database Management System
22
(formerly known as Postgres, then as Postgres95)
33

4-
Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
4+
Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
55

66
Portions Copyright (c) 1994, The Regents of the University of California
77

GNUmakefile.in

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ distclean maintainer-clean:
6161
# Garbage from autoconf:
6262
@rm -rf autom4te.cache/
6363

64-
check: all
64+
check check-tests: all
6565

66-
check installcheck installcheck-parallel:
66+
check check-tests installcheck installcheck-parallel installcheck-tests:
6767
$(MAKE) -C src/test/regress $@
6868

6969
$(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib,check)
@@ -103,10 +103,8 @@ distdir:
103103
fi || exit; \
104104
done
105105
$(MAKE) -C $(distdir) distprep
106-
$(MAKE) -C $(distdir)/doc/src/sgml/ HISTORY INSTALL regress_README
107-
cp $(distdir)/doc/src/sgml/HISTORY $(distdir)/
106+
$(MAKE) -C $(distdir)/doc/src/sgml/ INSTALL
108107
cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
109-
cp $(distdir)/doc/src/sgml/regress_README $(distdir)/src/test/regress/README
110108
$(MAKE) -C $(distdir) distclean
111109
rm -f $(distdir)/README.git
112110

HISTORY

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Release notes for all versions of PostgreSQL can be found on-line at
2+
http://www.postgresql.org/docs/current/static/release.html
3+
4+
Distribution file sets include release notes for their version and preceding
5+
versions. Visit the file doc/src/sgml/html/release.html in an HTML browser.

README

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ See the file INSTALL for instructions on how to build and install
1717
PostgreSQL. That file also lists supported operating systems and
1818
hardware platforms and contains information regarding any other
1919
software packages that are required to build or run the PostgreSQL
20-
system. Changes between all PostgreSQL releases are recorded in the
21-
file HISTORY. Copyright and license information can be found in the
20+
system. Copyright and license information can be found in the
2221
file COPYRIGHT. A comprehensive documentation set is included in this
2322
distribution; it can be read as described in the installation
2423
instructions.

README.git

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
(This file does not appear in release tarballs.)
22

3-
In a release or snapshot tarball of PostgreSQL, documentation files named
4-
INSTALL and HISTORY will appear in this directory. However, these files are
5-
not stored in git and so will not be present if you are using a git checkout.
6-
If you are using git, you can view the most recent install instructions at:
3+
In a release or snapshot tarball of PostgreSQL, a documentation file named
4+
INSTALL will appear in this directory. However, this file is not stored in
5+
git and so will not be present if you are using a git checkout.
6+
7+
If you are using a git checkout, you can view the most recent installation
8+
instructions at:
79
http://www.postgresql.org/docs/devel/static/installation.html
8-
and the current release notes at:
9-
http://www.postgresql.org/docs/devel/static/release.html
1010

1111
Users compiling from git will also need compatible versions of Bison, Flex,
1212
and Perl, as discussed in the install documentation. These programs are not

config/c-library.m4

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -273,16 +273,16 @@ case $pgac_cv_snprintf_long_long_int_format in
273273
esac])# PGAC_FUNC_SNPRINTF_LONG_LONG_INT_FORMAT
274274

275275

276-
# PGAC_FUNC_PRINTF_ARG_CONTROL
276+
# PGAC_FUNC_SNPRINTF_ARG_CONTROL
277277
# ---------------------------------------
278-
# Determine if printf supports %1$ argument selection, e.g. %5$ selects
279-
# the fifth argument after the printf print string.
278+
# Determine if snprintf supports %1$ argument selection, e.g. %5$ selects
279+
# the fifth argument after the printf format string.
280280
# This is not in the C99 standard, but in the Single Unix Specification (SUS).
281281
# It is used in our language translation strings.
282282
#
283-
AC_DEFUN([PGAC_FUNC_PRINTF_ARG_CONTROL],
284-
[AC_MSG_CHECKING([whether printf supports argument control])
285-
AC_CACHE_VAL(pgac_cv_printf_arg_control,
283+
AC_DEFUN([PGAC_FUNC_SNPRINTF_ARG_CONTROL],
284+
[AC_MSG_CHECKING([whether snprintf supports argument control])
285+
AC_CACHE_VAL(pgac_cv_snprintf_arg_control,
286286
[AC_TRY_RUN([#include <stdio.h>
287287
#include <string.h>
288288
@@ -296,12 +296,48 @@ int main()
296296
return 1;
297297
return 0;
298298
}],
299-
[pgac_cv_printf_arg_control=yes],
300-
[pgac_cv_printf_arg_control=no],
301-
[pgac_cv_printf_arg_control=cross])
299+
[pgac_cv_snprintf_arg_control=yes],
300+
[pgac_cv_snprintf_arg_control=no],
301+
[pgac_cv_snprintf_arg_control=cross])
302302
])dnl AC_CACHE_VAL
303-
AC_MSG_RESULT([$pgac_cv_printf_arg_control])
304-
])# PGAC_FUNC_PRINTF_ARG_CONTROL
303+
AC_MSG_RESULT([$pgac_cv_snprintf_arg_control])
304+
])# PGAC_FUNC_SNPRINTF_ARG_CONTROL
305+
306+
# PGAC_FUNC_SNPRINTF_SIZE_T_SUPPORT
307+
# ---------------------------------------
308+
# Determine if snprintf supports the z length modifier for printing
309+
# size_t-sized variables. That's supported by C99 and POSIX but not
310+
# all platforms play ball, so we must test whether it's working.
311+
#
312+
AC_DEFUN([PGAC_FUNC_SNPRINTF_SIZE_T_SUPPORT],
313+
[AC_MSG_CHECKING([whether snprintf supports the %z modifier])
314+
AC_CACHE_VAL(pgac_cv_snprintf_size_t_support,
315+
[AC_TRY_RUN([#include <stdio.h>
316+
#include <string.h>
317+
318+
int main()
319+
{
320+
char bufz[100];
321+
char buf64[100];
322+
323+
/*
324+
* Print the largest unsigned number fitting in a size_t using both %zu
325+
* and the previously-determined format for 64-bit integers. Note that
326+
* we don't run this code unless we know snprintf handles 64-bit ints.
327+
*/
328+
bufz[0] = '\0'; /* in case snprintf fails to emit anything */
329+
snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
330+
snprintf(buf64, sizeof(buf64), UINT64_FORMAT, (PG_INT64_TYPE) ~((size_t) 0));
331+
if (strcmp(bufz, buf64) != 0)
332+
return 1;
333+
return 0;
334+
}],
335+
[pgac_cv_snprintf_size_t_support=yes],
336+
[pgac_cv_snprintf_size_t_support=no],
337+
[pgac_cv_snprintf_size_t_support=cross])
338+
])dnl AC_CACHE_VAL
339+
AC_MSG_RESULT([$pgac_cv_snprintf_size_t_support])
340+
])# PGAC_FUNC_SNPRINTF_SIZE_T_SUPPORT
305341

306342

307343
# PGAC_TYPE_LOCALE_T

0 commit comments

Comments
 (0)