Skip to content

Commit 49bf025

Browse files
authored
Merge branch 'postgres:master' into main
2 parents cfc5e90 + 9ca6765 commit 49bf025

File tree

328 files changed

+9445
-6023
lines changed

Some content is hidden

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

328 files changed

+9445
-6023
lines changed

.git-blame-ignore-revs

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
#
1515
# $ git log --pretty=format:"%H # %cd%n# %s" $PGINDENTGITHASH -1 --date=iso
1616

17+
7f7474a8e4002ac9fd4979cc7b16b50b70b70c28 # 2024-09-27 11:14:31 -0400
18+
# Reindent pg_verifybackup.c.
19+
1720
7229ebe011dff3f418251a4836f6d098923aa1e1 # 2024-08-26 16:16:12 -0700
1821
# Fix identation.
1922

config/c-library.m4

-55
Original file line numberDiff line numberDiff line change
@@ -81,58 +81,3 @@ AC_DEFUN([PGAC_STRUCT_SOCKADDR_SA_LEN],
8181
[#include <sys/types.h>
8282
#include <sys/socket.h>
8383
])])# PGAC_STRUCT_SOCKADDR_MEMBERS
84-
85-
86-
# PGAC_TYPE_LOCALE_T
87-
# ------------------
88-
# Check for the locale_t type and find the right header file. macOS
89-
# needs xlocale.h; standard is locale.h, but glibc <= 2.25 also had an
90-
# xlocale.h file that we should not use, so we check the standard
91-
# header first.
92-
AC_DEFUN([PGAC_TYPE_LOCALE_T],
93-
[AC_CACHE_CHECK([for locale_t], pgac_cv_type_locale_t,
94-
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
95-
[#include <locale.h>
96-
locale_t x;],
97-
[])],
98-
[pgac_cv_type_locale_t=yes],
99-
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
100-
[#include <xlocale.h>
101-
locale_t x;],
102-
[])],
103-
[pgac_cv_type_locale_t='yes (in xlocale.h)'],
104-
[pgac_cv_type_locale_t=no])])])
105-
if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
106-
AC_DEFINE(LOCALE_T_IN_XLOCALE, 1,
107-
[Define to 1 if `locale_t' requires <xlocale.h>.])
108-
fi])# PGAC_TYPE_LOCALE_T
109-
110-
111-
# PGAC_FUNC_WCSTOMBS_L
112-
# --------------------
113-
# Try to find a declaration for wcstombs_l(). It might be in stdlib.h
114-
# (following the POSIX requirement for wcstombs()), or in locale.h, or in
115-
# xlocale.h. If it's in the latter, define WCSTOMBS_L_IN_XLOCALE.
116-
#
117-
AC_DEFUN([PGAC_FUNC_WCSTOMBS_L],
118-
[AC_CACHE_CHECK([for wcstombs_l declaration], pgac_cv_func_wcstombs_l,
119-
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
120-
[#include <stdlib.h>
121-
#include <locale.h>],
122-
[#ifndef wcstombs_l
123-
(void) wcstombs_l;
124-
#endif])],
125-
[pgac_cv_func_wcstombs_l='yes'],
126-
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
127-
[#include <stdlib.h>
128-
#include <locale.h>
129-
#include <xlocale.h>],
130-
[#ifndef wcstombs_l
131-
(void) wcstombs_l;
132-
#endif])],
133-
[pgac_cv_func_wcstombs_l='yes (in xlocale.h)'],
134-
[pgac_cv_func_wcstombs_l='no'])])])
135-
if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
136-
AC_DEFINE(WCSTOMBS_L_IN_XLOCALE, 1,
137-
[Define to 1 if `wcstombs_l' requires <xlocale.h>.])
138-
fi])# PGAC_FUNC_WCSTOMBS_L

config/llvm.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ AC_DEFUN([PGAC_LLVM_SUPPORT],
2525
AC_MSG_ERROR([$LLVM_CONFIG does not work])
2626
fi
2727
# and whether the version is supported
28-
if echo $pgac_llvm_version | $AWK -F '.' '{ if ([$]1 >= 10) exit 1; else exit 0;}';then
29-
AC_MSG_ERROR([$LLVM_CONFIG version is $pgac_llvm_version but at least 10 is required])
28+
if echo $pgac_llvm_version | $AWK -F '.' '{ if ([$]1 >= 14) exit 1; else exit 0;}';then
29+
AC_MSG_ERROR([$LLVM_CONFIG version is $pgac_llvm_version but at least 14 is required])
3030
fi
3131
AC_MSG_NOTICE([using llvm $pgac_llvm_version])
3232

configure

+3-238
Original file line numberDiff line numberDiff line change
@@ -5072,8 +5072,8 @@ fi
50725072
as_fn_error $? "$LLVM_CONFIG does not work" "$LINENO" 5
50735073
fi
50745074
# and whether the version is supported
5075-
if echo $pgac_llvm_version | $AWK -F '.' '{ if ($1 >= 10) exit 1; else exit 0;}';then
5076-
as_fn_error $? "$LLVM_CONFIG version is $pgac_llvm_version but at least 10 is required" "$LINENO" 5
5075+
if echo $pgac_llvm_version | $AWK -F '.' '{ if ($1 >= 14) exit 1; else exit 0;}';then
5076+
as_fn_error $? "$LLVM_CONFIG version is $pgac_llvm_version but at least 14 is required" "$LINENO" 5
50775077
fi
50785078
{ $as_echo "$as_me:${as_lineno-$LINENO}: using llvm $pgac_llvm_version" >&5
50795079
$as_echo "$as_me: using llvm $pgac_llvm_version" >&6;}
@@ -7281,95 +7281,6 @@ if test x"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x"yes";
72817281
fi
72827282

72837283

7284-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS" >&5
7285-
$as_echo_n "checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS... " >&6; }
7286-
if ${pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers+:} false; then :
7287-
$as_echo_n "(cached) " >&6
7288-
else
7289-
pgac_save_CFLAGS=$CFLAGS
7290-
pgac_save_CC=$CC
7291-
CC=${CLANG}
7292-
CFLAGS="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
7293-
ac_save_c_werror_flag=$ac_c_werror_flag
7294-
ac_c_werror_flag=yes
7295-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296-
/* end confdefs.h. */
7297-
7298-
int
7299-
main ()
7300-
{
7301-
7302-
;
7303-
return 0;
7304-
}
7305-
_ACEOF
7306-
if ac_fn_c_try_compile "$LINENO"; then :
7307-
pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers=yes
7308-
else
7309-
pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers=no
7310-
fi
7311-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312-
ac_c_werror_flag=$ac_save_c_werror_flag
7313-
CFLAGS="$pgac_save_CFLAGS"
7314-
CC="$pgac_save_CC"
7315-
fi
7316-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&5
7317-
$as_echo "$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&6; }
7318-
if test x"$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" = x"yes"; then
7319-
BITCODE_CFLAGS="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
7320-
fi
7321-
7322-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS" >&5
7323-
$as_echo_n "checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS... " >&6; }
7324-
if ${pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers+:} false; then :
7325-
$as_echo_n "(cached) " >&6
7326-
else
7327-
pgac_save_CXXFLAGS=$CXXFLAGS
7328-
pgac_save_CXX=$CXX
7329-
CXX=${CLANGXX}
7330-
CXXFLAGS="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7331-
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7332-
ac_cxx_werror_flag=yes
7333-
ac_ext=cpp
7334-
ac_cpp='$CXXCPP $CPPFLAGS'
7335-
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336-
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337-
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7338-
7339-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340-
/* end confdefs.h. */
7341-
7342-
int
7343-
main ()
7344-
{
7345-
7346-
;
7347-
return 0;
7348-
}
7349-
_ACEOF
7350-
if ac_fn_cxx_try_compile "$LINENO"; then :
7351-
pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers=yes
7352-
else
7353-
pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers=no
7354-
fi
7355-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356-
ac_ext=c
7357-
ac_cpp='$CPP $CPPFLAGS'
7358-
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359-
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360-
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361-
7362-
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7363-
CXXFLAGS="$pgac_save_CXXFLAGS"
7364-
CXX="$pgac_save_CXX"
7365-
fi
7366-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&5
7367-
$as_echo "$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&6; }
7368-
if test x"$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" = x"yes"; then
7369-
BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7370-
fi
7371-
7372-
73737284
NOT_THE_CFLAGS=""
73747285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
73757286
$as_echo_n "checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
@@ -13308,7 +13219,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
1330813219
fi
1330913220

1331013221

13311-
for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h mbarrier.h sys/epoll.h sys/event.h sys/personality.h sys/prctl.h sys/procctl.h sys/signalfd.h sys/ucred.h termios.h ucred.h
13222+
for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h mbarrier.h sys/epoll.h sys/event.h sys/personality.h sys/prctl.h sys/procctl.h sys/signalfd.h sys/ucred.h termios.h ucred.h xlocale.h
1331213223
do :
1331313224
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1331413225
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -14636,55 +14547,6 @@ _ACEOF
1463614547
fi
1463714548

1463814549

14639-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
14640-
$as_echo_n "checking for locale_t... " >&6; }
14641-
if ${pgac_cv_type_locale_t+:} false; then :
14642-
$as_echo_n "(cached) " >&6
14643-
else
14644-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645-
/* end confdefs.h. */
14646-
#include <locale.h>
14647-
locale_t x;
14648-
int
14649-
main ()
14650-
{
14651-
14652-
;
14653-
return 0;
14654-
}
14655-
_ACEOF
14656-
if ac_fn_c_try_compile "$LINENO"; then :
14657-
pgac_cv_type_locale_t=yes
14658-
else
14659-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660-
/* end confdefs.h. */
14661-
#include <xlocale.h>
14662-
locale_t x;
14663-
int
14664-
main ()
14665-
{
14666-
14667-
;
14668-
return 0;
14669-
}
14670-
_ACEOF
14671-
if ac_fn_c_try_compile "$LINENO"; then :
14672-
pgac_cv_type_locale_t='yes (in xlocale.h)'
14673-
else
14674-
pgac_cv_type_locale_t=no
14675-
fi
14676-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14677-
fi
14678-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679-
fi
14680-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
14681-
$as_echo "$pgac_cv_type_locale_t" >&6; }
14682-
if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
14683-
14684-
$as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
14685-
14686-
fi
14687-
1468814550
# MSVC doesn't cope well with defining restrict to __restrict, the
1468914551
# spelling it understands, because it conflicts with
1469014552
# __declspec(restrict). Therefore we define pg_restrict to the
@@ -15171,59 +15033,6 @@ if test x"$pgac_cv_var_int_timezone" = xyes ; then
1517115033

1517215034
$as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
1517315035

15174-
fi
15175-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
15176-
$as_echo_n "checking for wcstombs_l declaration... " >&6; }
15177-
if ${pgac_cv_func_wcstombs_l+:} false; then :
15178-
$as_echo_n "(cached) " >&6
15179-
else
15180-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181-
/* end confdefs.h. */
15182-
#include <stdlib.h>
15183-
#include <locale.h>
15184-
int
15185-
main ()
15186-
{
15187-
#ifndef wcstombs_l
15188-
(void) wcstombs_l;
15189-
#endif
15190-
;
15191-
return 0;
15192-
}
15193-
_ACEOF
15194-
if ac_fn_c_try_compile "$LINENO"; then :
15195-
pgac_cv_func_wcstombs_l='yes'
15196-
else
15197-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198-
/* end confdefs.h. */
15199-
#include <stdlib.h>
15200-
#include <locale.h>
15201-
#include <xlocale.h>
15202-
int
15203-
main ()
15204-
{
15205-
#ifndef wcstombs_l
15206-
(void) wcstombs_l;
15207-
#endif
15208-
;
15209-
return 0;
15210-
}
15211-
_ACEOF
15212-
if ac_fn_c_try_compile "$LINENO"; then :
15213-
pgac_cv_func_wcstombs_l='yes (in xlocale.h)'
15214-
else
15215-
pgac_cv_func_wcstombs_l='no'
15216-
fi
15217-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15218-
fi
15219-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220-
fi
15221-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
15222-
$as_echo "$pgac_cv_func_wcstombs_l" >&6; }
15223-
if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
15224-
15225-
$as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
15226-
1522715036
fi
1522815037

1522915038
# Some versions of libedit contain strlcpy(), setproctitle(), and other
@@ -16975,50 +16784,6 @@ _ACEOF
1697516784

1697616785

1697716786

16978-
# Some platforms predefine the types int8, int16, etc. Only check
16979-
# a (hopefully) representative subset.
16980-
ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
16981-
"
16982-
if test "x$ac_cv_type_int8" = xyes; then :
16983-
16984-
cat >>confdefs.h <<_ACEOF
16985-
#define HAVE_INT8 1
16986-
_ACEOF
16987-
16988-
16989-
fi
16990-
ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
16991-
"
16992-
if test "x$ac_cv_type_uint8" = xyes; then :
16993-
16994-
cat >>confdefs.h <<_ACEOF
16995-
#define HAVE_UINT8 1
16996-
_ACEOF
16997-
16998-
16999-
fi
17000-
ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
17001-
"
17002-
if test "x$ac_cv_type_int64" = xyes; then :
17003-
17004-
cat >>confdefs.h <<_ACEOF
17005-
#define HAVE_INT64 1
17006-
_ACEOF
17007-
17008-
17009-
fi
17010-
ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
17011-
"
17012-
if test "x$ac_cv_type_uint64" = xyes; then :
17013-
17014-
cat >>confdefs.h <<_ACEOF
17015-
#define HAVE_UINT64 1
17016-
_ACEOF
17017-
17018-
17019-
fi
17020-
17021-
1702216787
# Some compilers offer a 128-bit integer scalar type.
1702316788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
1702416789
$as_echo_n "checking for __int128... " >&6; }

0 commit comments

Comments
 (0)