Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bffae26

Browse files
committed
Fix pg_gtt_statistic check
2 parents fd12c12 + 1d468b9 commit bffae26

File tree

722 files changed

+10138
-5317
lines changed

Some content is hidden

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

722 files changed

+10138
-5317
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
* whitespace=space-before-tab,trailing-space
22
*.[chly] whitespace=space-before-tab,trailing-space,indent-with-non-tab,tabwidth=4
3-
*.dsl whitespace=space-before-tab,trailing-space,tab-in-indent
4-
*.patch -whitespace
53
*.pl whitespace=space-before-tab,trailing-space,tabwidth=4
64
*.po whitespace=space-before-tab,trailing-space,tab-in-indent,-blank-at-eof
75
*.sgml whitespace=space-before-tab,trailing-space,tab-in-indent,-blank-at-eol
@@ -19,6 +17,7 @@ src/backend/catalog/sql_features.txt whitespace=space-before-tab,blank-at-eof,-
1917
# Test output files that contain extra whitespace
2018
*.out -whitespace
2119
contrib/*/output/*.source -whitespace
20+
src/pl/plpgsql/src/output/*.source -whitespace
2221
src/test/regress/output/*.source -whitespace
2322
src/interfaces/ecpg/test/expected/* -whitespace
2423
src/interfaces/libpq/test/expected.out whitespace=-blank-at-eof

configure

Lines changed: 65 additions & 237 deletions
Original file line numberDiff line numberDiff line change
@@ -866,8 +866,6 @@ with_system_tzdata
866866
with_zlib
867867
with_gnu_ld
868868
enable_largefile
869-
enable_float4_byval
870-
enable_float8_byval
871869
'
872870
ac_precious_vars='build_alias
873871
host_alias
@@ -1525,8 +1523,6 @@ Optional Features:
15251523
--enable-cassert enable assertion checks (for debugging)
15261524
--disable-thread-safety disable thread-safety in client libraries
15271525
--disable-largefile omit support for large files
1528-
--disable-float4-byval disable float4 passed by value
1529-
--disable-float8-byval disable float8 passed by value
15301526

15311527
Optional Packages:
15321528
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -11607,6 +11603,63 @@ if test "$ac_res" != no; then :
1160711603

1160811604
fi
1160911605

11606+
# *BSD:
11607+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
11608+
$as_echo_n "checking for library containing backtrace_symbols... " >&6; }
11609+
if ${ac_cv_search_backtrace_symbols+:} false; then :
11610+
$as_echo_n "(cached) " >&6
11611+
else
11612+
ac_func_search_save_LIBS=$LIBS
11613+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614+
/* end confdefs.h. */
11615+
11616+
/* Override any GCC internal prototype to avoid an error.
11617+
Use char because int might match the return type of a GCC
11618+
builtin and then its argument prototype would still apply. */
11619+
#ifdef __cplusplus
11620+
extern "C"
11621+
#endif
11622+
char backtrace_symbols ();
11623+
int
11624+
main ()
11625+
{
11626+
return backtrace_symbols ();
11627+
;
11628+
return 0;
11629+
}
11630+
_ACEOF
11631+
for ac_lib in '' execinfo; do
11632+
if test -z "$ac_lib"; then
11633+
ac_res="none required"
11634+
else
11635+
ac_res=-l$ac_lib
11636+
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11637+
fi
11638+
if ac_fn_c_try_link "$LINENO"; then :
11639+
ac_cv_search_backtrace_symbols=$ac_res
11640+
fi
11641+
rm -f core conftest.err conftest.$ac_objext \
11642+
conftest$ac_exeext
11643+
if ${ac_cv_search_backtrace_symbols+:} false; then :
11644+
break
11645+
fi
11646+
done
11647+
if ${ac_cv_search_backtrace_symbols+:} false; then :
11648+
11649+
else
11650+
ac_cv_search_backtrace_symbols=no
11651+
fi
11652+
rm conftest.$ac_ext
11653+
LIBS=$ac_func_search_save_LIBS
11654+
fi
11655+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
11656+
$as_echo "$ac_cv_search_backtrace_symbols" >&6; }
11657+
ac_res=$ac_cv_search_backtrace_symbols
11658+
if test "$ac_res" != no; then :
11659+
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11660+
11661+
fi
11662+
1161011663

1161111664
if test "$with_readline" = yes; then
1161211665

@@ -12705,7 +12758,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
1270512758
fi
1270612759

1270712760

12708-
for ac_header in atomic.h copyfile.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/ipc.h sys/prctl.h sys/procctl.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
12761+
for ac_header in atomic.h copyfile.h execinfo.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/ipc.h sys/prctl.h sys/procctl.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
1270912762
do :
1271012763
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1271112764
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
@@ -14170,123 +14223,6 @@ fi
1417014223

1417114224

1417214225

14173-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14174-
$as_echo_n "checking for unsigned long long int... " >&6; }
14175-
if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14176-
$as_echo_n "(cached) " >&6
14177-
else
14178-
ac_cv_type_unsigned_long_long_int=yes
14179-
if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14180-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181-
/* end confdefs.h. */
14182-
14183-
/* For now, do not test the preprocessor; as of 2007 there are too many
14184-
implementations with broken preprocessors. Perhaps this can
14185-
be revisited in 2012. In the meantime, code should not expect
14186-
#if to work with literals wider than 32 bits. */
14187-
/* Test literals. */
14188-
long long int ll = 9223372036854775807ll;
14189-
long long int nll = -9223372036854775807LL;
14190-
unsigned long long int ull = 18446744073709551615ULL;
14191-
/* Test constant expressions. */
14192-
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14193-
? 1 : -1)];
14194-
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14195-
? 1 : -1)];
14196-
int i = 63;
14197-
int
14198-
main ()
14199-
{
14200-
/* Test availability of runtime routines for shift and division. */
14201-
long long int llmax = 9223372036854775807ll;
14202-
unsigned long long int ullmax = 18446744073709551615ull;
14203-
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14204-
| (llmax / ll) | (llmax % ll)
14205-
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14206-
| (ullmax / ull) | (ullmax % ull));
14207-
;
14208-
return 0;
14209-
}
14210-
14211-
_ACEOF
14212-
if ac_fn_c_try_link "$LINENO"; then :
14213-
14214-
else
14215-
ac_cv_type_unsigned_long_long_int=no
14216-
fi
14217-
rm -f core conftest.err conftest.$ac_objext \
14218-
conftest$ac_exeext conftest.$ac_ext
14219-
fi
14220-
fi
14221-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14222-
$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14223-
if test $ac_cv_type_unsigned_long_long_int = yes; then
14224-
14225-
$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14226-
14227-
fi
14228-
14229-
14230-
14231-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14232-
$as_echo_n "checking for long long int... " >&6; }
14233-
if ${ac_cv_type_long_long_int+:} false; then :
14234-
$as_echo_n "(cached) " >&6
14235-
else
14236-
ac_cv_type_long_long_int=yes
14237-
if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14238-
ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14239-
if test $ac_cv_type_long_long_int = yes; then
14240-
if test "$cross_compiling" = yes; then :
14241-
:
14242-
else
14243-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244-
/* end confdefs.h. */
14245-
#include <limits.h>
14246-
#ifndef LLONG_MAX
14247-
# define HALF \
14248-
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
14249-
# define LLONG_MAX (HALF - 1 + HALF)
14250-
#endif
14251-
int
14252-
main ()
14253-
{
14254-
long long int n = 1;
14255-
int i;
14256-
for (i = 0; ; i++)
14257-
{
14258-
long long int m = n << i;
14259-
if (m >> i != n)
14260-
return 1;
14261-
if (LLONG_MAX / 2 < m)
14262-
break;
14263-
}
14264-
return 0;
14265-
;
14266-
return 0;
14267-
}
14268-
_ACEOF
14269-
if ac_fn_c_try_run "$LINENO"; then :
14270-
14271-
else
14272-
ac_cv_type_long_long_int=no
14273-
fi
14274-
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14275-
conftest.$ac_objext conftest.beam conftest.$ac_ext
14276-
fi
14277-
14278-
fi
14279-
fi
14280-
fi
14281-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14282-
$as_echo "$ac_cv_type_long_long_int" >&6; }
14283-
if test $ac_cv_type_long_long_int = yes; then
14284-
14285-
$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14286-
14287-
fi
14288-
14289-
1429014226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
1429114227
$as_echo_n "checking for locale_t... " >&6; }
1429214228
if ${pgac_cv_type_locale_t+:} false; then :
@@ -14846,6 +14782,12 @@ _ACEOF
1484614782

1484714783

1484814784

14785+
if test "$ac_cv_header_stdbool_h" = yes -a "$ac_cv_sizeof_bool" = 1; then
14786+
14787+
$as_echo "#define PG_USE_STDBOOL 1" >>confdefs.h
14788+
14789+
fi
14790+
1484914791

1485014792
##
1485114793
## Functions, global variables
@@ -15052,7 +14994,7 @@ fi
1505214994
LIBS_including_readline="$LIBS"
1505314995
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
1505414996

15055-
for ac_func in cbrt clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memset_s memmove poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale utime utimes wcstombs_l
14997+
for ac_func in backtrace_symbols cbrt clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memset_s memmove poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale utime utimes wcstombs_l
1505614998
do :
1505714999
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1505815000
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -16801,120 +16743,6 @@ _ACEOF
1680116743

1680216744

1680316745

16804-
# Decide whether float4 is passed by value: user-selectable, enabled by default
16805-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
16806-
$as_echo_n "checking whether to build with float4 passed by value... " >&6; }
16807-
16808-
16809-
# Check whether --enable-float4-byval was given.
16810-
if test "${enable_float4_byval+set}" = set; then :
16811-
enableval=$enable_float4_byval;
16812-
case $enableval in
16813-
yes)
16814-
16815-
$as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
16816-
16817-
float4passbyval=true
16818-
;;
16819-
no)
16820-
float4passbyval=false
16821-
;;
16822-
*)
16823-
as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
16824-
;;
16825-
esac
16826-
16827-
else
16828-
enable_float4_byval=yes
16829-
16830-
$as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
16831-
16832-
float4passbyval=true
16833-
fi
16834-
16835-
16836-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
16837-
$as_echo "$enable_float4_byval" >&6; }
16838-
16839-
cat >>confdefs.h <<_ACEOF
16840-
#define FLOAT4PASSBYVAL $float4passbyval
16841-
_ACEOF
16842-
16843-
16844-
# Decide whether float8 is passed by value.
16845-
# Note: this setting also controls int8 and related types such as timestamp.
16846-
# If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
16847-
# If not, trying to select it is an error.
16848-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
16849-
$as_echo_n "checking whether to build with float8 passed by value... " >&6; }
16850-
if test $ac_cv_sizeof_void_p -ge 8 ; then
16851-
16852-
16853-
# Check whether --enable-float8-byval was given.
16854-
if test "${enable_float8_byval+set}" = set; then :
16855-
enableval=$enable_float8_byval;
16856-
case $enableval in
16857-
yes)
16858-
:
16859-
;;
16860-
no)
16861-
:
16862-
;;
16863-
*)
16864-
as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
16865-
;;
16866-
esac
16867-
16868-
else
16869-
enable_float8_byval=yes
16870-
16871-
fi
16872-
16873-
16874-
else
16875-
16876-
16877-
# Check whether --enable-float8-byval was given.
16878-
if test "${enable_float8_byval+set}" = set; then :
16879-
enableval=$enable_float8_byval;
16880-
case $enableval in
16881-
yes)
16882-
:
16883-
;;
16884-
no)
16885-
:
16886-
;;
16887-
*)
16888-
as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
16889-
;;
16890-
esac
16891-
16892-
else
16893-
enable_float8_byval=no
16894-
16895-
fi
16896-
16897-
16898-
if test "$enable_float8_byval" = yes ; then
16899-
as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
16900-
fi
16901-
fi
16902-
if test "$enable_float8_byval" = yes ; then
16903-
16904-
$as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
16905-
16906-
float8passbyval=true
16907-
else
16908-
float8passbyval=false
16909-
fi
16910-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
16911-
$as_echo "$enable_float8_byval" >&6; }
16912-
16913-
cat >>confdefs.h <<_ACEOF
16914-
#define FLOAT8PASSBYVAL $float8passbyval
16915-
_ACEOF
16916-
16917-
1691816746
# Determine memory alignment requirements for the basic C data types.
1691916747

1692016748
# The cast to long int works around a bug in the HP C Compiler,

0 commit comments

Comments
 (0)