COPYRIGHT
New file @@ -0,0 +1,23 @@ PostgreSQL Database Management System (also known as Postgres, formerly known as Postgres95) Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group Portions Copyright (c) 1994, The Regents of the University of California Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies. IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. GNUmakefile.in
New file @@ -0,0 +1,137 @@ # # PostgreSQL top level makefile # # GNUmakefile.in # subdir = top_builddir = . include $(top_builddir)/src/Makefile.global $(call recurse,all install,src config) docs: $(MAKE) -C doc all $(call recurse,world,doc src config contrib,all) # build src/ before contrib/ world-contrib-recurse: world-src-recurse $(call recurse,world-bin,src config contrib,all) # build src/ before contrib/ world-bin-contrib-recurse: world-bin-src-recurse html man: $(MAKE) -C doc $@ install-docs: $(MAKE) -C doc install $(call recurse,install-world,doc src config contrib,install) # build src/ before contrib/ install-world-contrib-recurse: install-world-src-recurse $(call recurse,install-world-bin,src config contrib,install) # build src/ before contrib/ install-world-bin-contrib-recurse: install-world-bin-src-recurse $(call recurse,installdirs uninstall init-po update-po,doc src config) $(call recurse,coverage,doc src config contrib) # clean, distclean, etc should apply to contrib too, even though # it's not built by default $(call recurse,clean,doc contrib src config) clean: rm -rf tmp_install/ portlock/ # Garbage from autoconf: @rm -rf autom4te.cache/ # Important: distclean `src' last, otherwise Makefile.global # will be gone too soon. distclean: $(MAKE) -C doc $@ $(MAKE) -C contrib $@ $(MAKE) -C config $@ $(MAKE) -C src $@ rm -rf tmp_install/ portlock/ # Garbage from autoconf: @rm -rf autom4te.cache/ rm -f config.cache config.log config.status GNUmakefile check-tests: | temp-install check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers $(MAKE) -C src/test/regress $@ $(call recurse,check-world,src/test src/pl src/interfaces contrib src/bin src/tools/pg_bsd_indent,check) $(call recurse,checkprep, src/test src/pl src/interfaces contrib src/bin) $(call recurse,installcheck-world,src/test src/pl src/interfaces contrib src/bin,installcheck) $(call recurse,install-tests,src/test/regress,install-tests) GNUmakefile: GNUmakefile.in $(top_builddir)/config.status ./config.status $@ update-unicode: | submake-generated-headers submake-libpgport $(MAKE) -C src/common/unicode $@ $(MAKE) -C contrib/unaccent $@ ########################################################################## distdir = postgresql-$(VERSION) dummy = =install= # git revision to be packaged PG_GIT_REVISION = HEAD GIT = git dist: $(distdir).tar.gz $(distdir).tar.bz2 .PHONY: $(distdir).tar.gz $(distdir).tar.bz2 distdir-location: @echo $(distdir) # Note: core.autocrlf=false is needed to avoid line-ending conversion # in case the environment has a different setting. Without this, a # tarball created on Windows might be different than on, and unusable # on, Unix machines. $(distdir).tar.gz: $(GIT) -C $(srcdir) -c core.autocrlf=false archive --format tar.gz -9 --prefix $(distdir)/ $(PG_GIT_REVISION) -o $(abs_top_builddir)/$@ $(distdir).tar.bz2: $(GIT) -C $(srcdir) -c core.autocrlf=false -c tar.tar.bz2.command='$(BZIP2) -c' archive --format tar.bz2 --prefix $(distdir)/ $(PG_GIT_REVISION) -o $(abs_top_builddir)/$@ distcheck: dist rm -rf $(dummy) mkdir $(dummy) $(GZIP) -d -c $(distdir).tar.gz | $(TAR) xf - install_prefix=`cd $(dummy) && pwd`; \ cd $(distdir) \ && ./configure --prefix="$$install_prefix" $(MAKE) -C $(distdir) $(MAKE) -C $(distdir) install $(MAKE) -C $(distdir) uninstall @echo "checking whether \`$(MAKE) uninstall' works" test `find $(dummy) ! -type d | wc -l` -eq 0 $(MAKE) -C $(distdir) dist # Room for improvement: Check here whether this distribution tarball # is sufficiently similar to the original one. rm -rf $(distdir) $(dummy) @echo "Distribution integrity checks out." headerscheck: submake-generated-headers $(top_srcdir)/src/tools/pginclude/headerscheck $(top_srcdir) $(abs_top_builddir) cpluspluscheck: submake-generated-headers $(top_srcdir)/src/tools/pginclude/headerscheck --cplusplus $(top_srcdir) $(abs_top_builddir) .PHONY: dist distcheck docs install-docs world check-world install-world installcheck-world headerscheck cpluspluscheck HISTORY
New file @@ -0,0 +1,10 @@ Версия 26.04 от 20.04.26 - основана на PostgreSQL 18.2 и полностью совместима с ним; - включает необходимые доработки по информационной безопасности и выполнению требований ФСТЭК; - совместима с основными российскими бизнес-приложениями, включая 1С; - содержит встроенную in-memory компоненту; - содержит большое количество аналогов функций из DBMS и UTL-пакетов Oracle; - содержит дополнения для работы с геоданными; - имеет встроенную реализацию для векторного поиска (актуально для задач ИИ); - содержит расширения для доступа к внешним данным в популярных СУБД (fdw-модули); - содержит дополнения, позволяющие использовать для создания хранимой бизнес-логики языки платформы DotNet. LICENSE
New file @@ -0,0 +1,7 @@ В рамках данной Лицензии Вы получаете право изучать исходный код проекта RuDB, а также право использовать уже сформированные на его основе дистрибутивы СУБД RuDB (далее Продукт) следующим образом: - воспроизведение Продукта (способы и число копий не ограничивается); - установка и использование СУБД RuDB согласно предназначению Продукта (в т.ч. для коммерческой деятельности). Данные права предоставляются Вам безвозмездно. Данная Лицензия НЕ дает Вам права: - использовать RuDB или ее исходный код для создания производных и составных произведений без письменного разрешения Правообладателя (АНО "Ассоциация Разработчиков СУБД"). В случае необходимости Вы можете запросить такое разрешение, направив обращение по адресу: office@database.ru Makefile
New file @@ -0,0 +1,43 @@ # The PostgreSQL make files exploit features of GNU make that other # makes do not have. Because it is a common mistake for users to try # to build Postgres with a different make, we have this make file # that, as a service, will look for a GNU make and invoke it, or show # an error message if none could be found. # If the user were using GNU make now, this file would not get used # because GNU make uses a make file named "GNUmakefile" in preference # to "Makefile" if it exists. PostgreSQL is shipped with a # "GNUmakefile". If the user hasn't run the configure script yet, the # GNUmakefile won't exist yet, so we catch that case as well. # AIX make defaults to building *every* target of the first rule. Start with # a single-target, empty rule to make the other targets non-default. # (We don't support AIX anymore, but if someone tries to build on AIX anyway, # at least they'll get the instructions to run 'configure' first.) all: all check install installdirs installcheck installcheck-parallel uninstall clean distclean maintainer-clean dist distcheck world check-world install-world installcheck-world: @if [ ! -f GNUmakefile ] ; then \ echo "You need to run the 'configure' program first. Please see"; \ echo "<https://www.postgresql.org/docs/18/installation.html>" ; \ false ; \ fi @IFS=':' ; \ for dir in $$PATH; do \ for prog in gmake gnumake make; do \ if [ -f $$dir/$$prog ] && ( $$dir/$$prog -f /dev/null --version 2>/dev/null | grep GNU >/dev/null 2>&1 ) ; then \ GMAKE=$$dir/$$prog; \ break 2; \ fi; \ done; \ done; \ \ if [ x"$${GMAKE+set}" = xset ]; then \ echo "Using GNU make found at $${GMAKE}"; \ unset MAKELEVEL; \ $${GMAKE} $@ ; \ else \ echo "You must use GNU make to build PostgreSQL." ; \ false; \ fi README.md
@@ -1,3 +1,81 @@ # rudb # RuDB Database Management System Репозиторий исходных кодов проекта СУБД RuDB RuDB — специализированная система управления базами данных, основанная на ядре PostgreSQL 18. ## Настройки При использовании стандартных сценариев сборки применяются следующие параметры: - **Путь установки**: `/usr/local/rudb` - **Путь к БД**: `/usr/local/rudb/data1` - **Порт**: `5432` - **Пользователь**: `postgres` ## Инструкции сборки ### Скрипт сборки Основной скрипт сборки — `full_build.sh`. Он автоматически конфигурирует ядро и расширения `contrib`. #### Сборка ```bash ./full_build.sh ``` ### Alt Linux Support Для ОС семейства Alt Linux используйте флаг: ```bash ./full_build.sh --alt ``` ## Инициализаиция БД После завершения сборки выполните: ```bash ./db_cr_all.sh ``` ## Установка раширения pldotnet (интеграция .NET) Расширение `pldotnet` требует предварительно настроенного окружения. ### Инсталляция (если ядро уже собрано и БД инициализирована - сразу шаг 4) 1. Соберите ядро : ```bash ./full_build.sh ``` 2. Инициализируйте базу: ```bash ./db_cr_all.sh ``` 3. Перезапустите сервер: ```bash /usr/local/rudb/bin/pg_ctl -D /usr/local/rudb/data1 stop /usr/local/rudb/bin/pg_ctl -D /usr/local/rudb/data1 start ``` 4. Соберите расширение: ```bash cd contrib/pldotnet sudo bash ./prepare_linux_build_env.sh PG_CONFIG=/usr/local/rudb/bin/pg_config bash ./build_install.sh ``` 5. Активируйте расширение: ```sql CREATE EXTENSION pldotnet; ``` README_BUILD.txt
New file @@ -0,0 +1,60 @@ #Перенести расширения в папку Contrib В данной версии расширения уже перенесены Стандартные: amcheck auth_delay auto_explain basebackup_to_shell basic_archive bloom btree_gin btree_gist citext cube dblink dict_int dict_xsyn earthdistance file_fdw fuzzystrmatch hstore hstore_plperl hstore_plpython intagg intarray isn jsonb_plperl jsonb_plpython lo ltree ltree_plpython oid2name pageinspect passwordcheck pg_buffercache pgcrypto pg_freespacemap pg_logicalinspect pg_overexplain pg_prewarm pgrowlocks pg_stat_statements pgstattuple pg_surgery pg_trgm pg_visibility pg_walinspect postgres_fdw seg sepgsql spi sslinfo start-scripts tablefunc tcn test_decoding tsm_system_rows tsm_system_time unaccent uuid-ossp vacuumlo xml2 # Настройки сборки export OPTIMIZATION=2 export NLS=yes # Запуск конфигурации ./configure CFLAGS="-O$OPTIMIZATION -DDEPLOY_VERSION=$(date +"%Y%m%d")" \ --prefix=/usr/local/rudb \ --with-pgport=5445 \ --with-openssl \ --with-includes=/usr/include \ --with-libraries=/usr/lib \ --with-libxml \ --with-ldap \ --with-pam \ --with-uuid=e2fs \ --with-libxslt \ --with-icu \ --enable-tap-tests \ --with-systemd \ --enable-nls \ --with-selinux \ --enable-thread-safety \ --with-gnu-ld \ --with-perl \ --with-python #Сборка ядра make -j$(nproc) sudo make install #Поочередная сборка расширений (Contrib) # pldotnet исключен из общего цикла и собирается только отдельно cd contrib && ./check_build_config.sh #Отдельная сборка pldotnet cd contrib/pldotnet sudo bash ./prepare_linux_build_env.sh PG_CONFIG=/usr/local/rudb/bin/pg_config bash ./build_install.sh # Создание папки данных mkdir ~/rudb_data # Инициализация /usr/local/rudb/bin/initdb -D ~/rudb_data # Запуск сервера /usr/local/rudb/bin/pg_ctl -D ~/rudb_data -l logfile start # Подключение к базе (Порт 5445) /usr/local/rudb/bin/psql -p 5445 -d postgres aclocal.m4
New file @@ -0,0 +1,12 @@ dnl aclocal.m4 m4_include([config/ax_pthread.m4]) m4_include([config/c-compiler.m4]) m4_include([config/c-library.m4]) m4_include([config/check_decls.m4]) m4_include([config/general.m4]) m4_include([config/llvm.m4]) m4_include([config/perl.m4]) m4_include([config/pkg.m4]) m4_include([config/programs.m4]) m4_include([config/python.m4]) m4_include([config/tcl.m4]) config/Makefile
New file @@ -0,0 +1,17 @@ # config/Makefile subdir = config top_builddir = .. include $(top_builddir)/src/Makefile.global install: all installdirs $(INSTALL_SCRIPT) $(srcdir)/install-sh '$(DESTDIR)$(pgxsdir)/config/install-sh' $(INSTALL_SCRIPT) $(srcdir)/missing '$(DESTDIR)$(pgxsdir)/config/missing' installdirs: $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/config' uninstall: rm -f '$(DESTDIR)$(pgxsdir)/config/install-sh' rm -f '$(DESTDIR)$(pgxsdir)/config/missing' config/ax_pthread.m4
New file @@ -0,0 +1,485 @@ # =========================================================================== # https://www.gnu.org/software/autoconf-archive/ax_pthread.html # =========================================================================== # # SYNOPSIS # # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) # # DESCRIPTION # # This macro figures out how to build C programs using POSIX threads. It # sets the PTHREAD_LIBS output variable to the threads library and linker # flags, and the PTHREAD_CFLAGS output variable to any special C compiler # flags that are needed. (The user can also force certain compiler # flags/libs to be tested by setting these environment variables.) # # Also sets PTHREAD_CC to any special C compiler that is needed for # multi-threaded programs (defaults to the value of CC otherwise). (This # is necessary on AIX to use the special cc_r compiler alias.) # # NOTE: You are assumed to not only compile your program with these flags, # but also to link with them as well. For example, you might link with # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS # # If you are only building threaded programs, you may wish to use these # variables in your default LIBS, CFLAGS, and CC: # # LIBS="$PTHREAD_LIBS $LIBS" # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" # CC="$PTHREAD_CC" # # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant # has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to # that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX). # # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the # PTHREAD_PRIO_INHERIT symbol is defined when compiling with # PTHREAD_CFLAGS. # # ACTION-IF-FOUND is a list of shell commands to run if a threads library # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it # is not found. If ACTION-IF-FOUND is not specified, the default action # will define HAVE_PTHREAD. # # Please let the authors know if this macro fails on any platform, or if # you have any other suggestions or comments. This macro was based on work # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by # Alejandro Forero Cuervo to the autoconf macro repository. We are also # grateful for the helpful feedback of numerous users. # # Updated for Autoconf 2.68 by Daniel Richard G. # # LICENSE # # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> # Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG> # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or (at your # option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program. If not, see <https://www.gnu.org/licenses/>. # # As a special exception, the respective Autoconf Macro's copyright owner # gives unlimited permission to copy, distribute and modify the configure # scripts that are the output of Autoconf when processing the Macro. You # need not follow the terms of the GNU General Public License when using # or distributing such scripts, even though portions of the text of the # Macro appear in them. The GNU General Public License (GPL) does govern # all other use of the material that constitutes the Autoconf Macro. # # This special exception to the GPL applies to versions of the Autoconf # Macro released by the Autoconf Archive. When you make and distribute a # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. #serial 24 AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD]) AC_DEFUN([AX_PTHREAD], [ AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_PROG_SED]) AC_LANG_PUSH([C]) ax_pthread_ok=no # We used to check for pthread.h first, but this fails if pthread.h # requires special compiler flags (e.g. on Tru64 or Sequent). # It gets checked for in the link test anyway. # First of all, check if the user has set any of the PTHREAD_LIBS, # etcetera environment variables, and if threads linking works using # them: if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then ax_pthread_save_CC="$CC" ax_pthread_save_CFLAGS="$CFLAGS" ax_pthread_save_LIBS="$LIBS" AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"]) CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS]) AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes]) AC_MSG_RESULT([$ax_pthread_ok]) if test "x$ax_pthread_ok" = "xno"; then PTHREAD_LIBS="" PTHREAD_CFLAGS="" fi CC="$ax_pthread_save_CC" CFLAGS="$ax_pthread_save_CFLAGS" LIBS="$ax_pthread_save_LIBS" fi # We must check for the threads library under a number of different # names; the ordering is very important because some systems # (e.g. DEC) have both -lpthread and -lpthreads, where one of the # libraries is broken (non-POSIX). # Create a list of thread flags to try. Items starting with a "-" are # C compiler flags, and other items are library names, except for "none" # which indicates that we try without any flags at all, and "pthread-config" # which is a program returning the flags for the Pth emulation library. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" # The ordering *is* (sometimes) important. Some notes on the # individual items follow: # pthreads: AIX (must check this before -lpthread) # none: in case threads are in libc; should be tried before -Kthread and # other compiler flags to prevent continual compiler warnings # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 # (Note: HP C rejects this with "bad form for `-t' option") # -pthreads: Solaris/gcc (Note: HP C also rejects) # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it # doesn't hurt to check since this sometimes defines pthreads and # -D_REENTRANT too), HP C (must be checked before -lpthread, which # is present but should not be used directly; and before -mthreads, # because the compiler interprets this as "-mt" + "-hreads") # -mthreads: Mingw32/gcc, Lynx/gcc # pthread: Linux, etcetera # --thread-safe: KAI C++ # pthread-config: use pthread-config program (for GNU Pth library) case $host_os in freebsd*) # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) ax_pthread_flags="-kthread lthread $ax_pthread_flags" ;; hpux*) # From the cc(1) man page: "[-mt] Sets various -D flags to enable # multi-threading and also sets -lpthread." ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" ;; openedition*) # IBM z/OS requires a feature-test macro to be defined in order to # enable POSIX threads at all, so give the user a hint if this is # not set. (We don't define these ourselves, as they can affect # other portions of the system API in unpredictable ways.) AC_EGREP_CPP([AX_PTHREAD_ZOS_MISSING], [ # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) AX_PTHREAD_ZOS_MISSING # endif ], [AC_MSG_WARN([IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support.])]) ;; solaris*) # On Solaris (at least, for some versions), libc contains stubbed # (non-functional) versions of the pthreads routines, so link-based # tests will erroneously succeed. (N.B.: The stubs are missing # pthread_cleanup_push, or rather a function called by this macro, # so we could check for that, but who knows whether they'll stub # that too in a future libc.) So we'll check first for the # standard Solaris way of linking pthreads (-mt -lpthread). ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" ;; esac # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) AS_IF([test "x$GCC" = "xyes"], [ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"]) # The presence of a feature test macro requesting re-entrant function # definitions is, on some systems, a strong hint that pthreads support is # correctly enabled case $host_os in darwin* | hpux* | linux* | osf* | solaris*) ax_pthread_check_macro="_REENTRANT" ;; aix*) ax_pthread_check_macro="_THREAD_SAFE" ;; *) ax_pthread_check_macro="--" ;; esac AS_IF([test "x$ax_pthread_check_macro" = "x--"], [ax_pthread_check_cond=0], [ax_pthread_check_cond="!defined($ax_pthread_check_macro)"]) # Are we compiling with Clang? AC_CACHE_CHECK([whether $CC is Clang], [ax_cv_PTHREAD_CLANG], [ax_cv_PTHREAD_CLANG=no # Note that Autoconf sets GCC=yes for Clang as well as GCC if test "x$GCC" = "xyes"; then AC_EGREP_CPP([AX_PTHREAD_CC_IS_CLANG], [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ # if defined(__clang__) && defined(__llvm__) AX_PTHREAD_CC_IS_CLANG # endif ], [ax_cv_PTHREAD_CLANG=yes]) fi ]) ax_pthread_clang="$ax_cv_PTHREAD_CLANG" ax_pthread_clang_warning=no # Clang needs special handling, because older versions handle the -pthread # option in a rather... idiosyncratic way if test "x$ax_pthread_clang" = "xyes"; then # Clang takes -pthread; it has never supported any other flag # (Note 1: This will need to be revisited if a system that Clang # supports has POSIX threads in a separate library. This tends not # to be the way of modern systems, but it's conceivable.) # (Note 2: On some systems, notably Darwin, -pthread is not needed # to get POSIX threads support; the API is always present and # active. We could reasonably leave PTHREAD_CFLAGS empty. But # -pthread does define _REENTRANT, and while the Darwin headers # ignore this macro, third-party headers might not.) PTHREAD_CFLAGS="-pthread" PTHREAD_LIBS= ax_pthread_ok=yes # However, older versions of Clang make a point of warning the user # that, in an invocation where only linking and no compilation is # taking place, the -pthread option has no effect ("argument unused # during compilation"). They expect -pthread to be passed in only # when source code is being compiled. # # Problem is, this is at odds with the way Automake and most other # C build frameworks function, which is that the same flags used in # compilation (CFLAGS) are also used in linking. Many systems # supported by AX_PTHREAD require exactly this for POSIX threads # support, and in fact it is often not straightforward to specify a # flag that is used only in the compilation phase and not in # linking. Such a scenario is extremely rare in practice. # # Even though use of the -pthread flag in linking would only print # a warning, this can be a nuisance for well-run software projects # that build with -Werror. So if the active version of Clang has # this misfeature, we search for an option to squash it. AC_CACHE_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread], [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG], [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown # Create an alternate version of $ac_link that compiles and # links in two steps (.c -> .o, .o -> exe) instead of one # (.c -> exe), because the warning occurs only in the second # step ax_pthread_save_ac_link="$ac_link" ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" ax_pthread_save_CFLAGS="$CFLAGS" for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do AS_IF([test "x$ax_pthread_try" = "xunknown"], [break]) CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" ac_link="$ax_pthread_save_ac_link" AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])], [ac_link="$ax_pthread_2step_ac_link" AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])], [break]) ]) done ac_link="$ax_pthread_save_ac_link" CFLAGS="$ax_pthread_save_CFLAGS" AS_IF([test "x$ax_pthread_try" = "x"], [ax_pthread_try=no]) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" ]) case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in no | unknown) ;; *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; esac fi # $ax_pthread_clang = yes if test "x$ax_pthread_ok" = "xno"; then for ax_pthread_try_flag in $ax_pthread_flags; do case $ax_pthread_try_flag in none) AC_MSG_CHECKING([whether pthreads work without any flags]) ;; -mt,pthread) AC_MSG_CHECKING([whether pthreads work with -mt -lpthread]) PTHREAD_CFLAGS="-mt" PTHREAD_LIBS="-lpthread" ;; -*) AC_MSG_CHECKING([whether pthreads work with $ax_pthread_try_flag]) PTHREAD_CFLAGS="$ax_pthread_try_flag" ;; pthread-config) AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no]) AS_IF([test "x$ax_pthread_config" = "xno"], [continue]) PTHREAD_CFLAGS="`pthread-config --cflags`" PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" ;; *) AC_MSG_CHECKING([for the pthreads library -l$ax_pthread_try_flag]) PTHREAD_LIBS="-l$ax_pthread_try_flag" ;; esac ax_pthread_save_CFLAGS="$CFLAGS" ax_pthread_save_LIBS="$LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" # Check for various functions. We must include pthread.h, # since some functions may be macros. (On the Sequent, we # need a special flag -Kthread to make this header compile.) # We check for pthread_join because it is in -lpthread on IRIX # while pthread_create is in libc. We check for pthread_attr_init # due to DEC craziness with -lpthreads. We check for # pthread_cleanup_push because it is one of the few pthread # functions on Solaris that doesn't have a non-functional libc stub. # We try pthread_create on general principles. AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h> # if $ax_pthread_check_cond # error "$ax_pthread_check_macro must be defined" # endif static void routine(void *a) { a = 0; } static void *start_routine(void *a) { return a; }], [pthread_t th; pthread_attr_t attr; pthread_create(&th, 0, start_routine, 0); pthread_join(th, 0); pthread_attr_init(&attr); pthread_cleanup_push(routine, 0); pthread_cleanup_pop(0) /* ; */])], [ax_pthread_ok=yes], []) CFLAGS="$ax_pthread_save_CFLAGS" LIBS="$ax_pthread_save_LIBS" AC_MSG_RESULT([$ax_pthread_ok]) AS_IF([test "x$ax_pthread_ok" = "xyes"], [break]) PTHREAD_LIBS="" PTHREAD_CFLAGS="" done fi # Various other checks: if test "x$ax_pthread_ok" = "xyes"; then ax_pthread_save_CFLAGS="$CFLAGS" ax_pthread_save_LIBS="$LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS" # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. AC_CACHE_CHECK([for joinable pthread attribute], [ax_cv_PTHREAD_JOINABLE_ATTR], [ax_cv_PTHREAD_JOINABLE_ATTR=unknown for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>], [int attr = $ax_pthread_attr; return attr /* ; */])], [ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break], []) done ]) AS_IF([test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ test "x$ax_pthread_joinable_attr_defined" != "xyes"], [AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE], [$ax_cv_PTHREAD_JOINABLE_ATTR], [Define to necessary symbol if this constant uses a non-standard name on your system.]) ax_pthread_joinable_attr_defined=yes ]) AC_CACHE_CHECK([whether more special flags are required for pthreads], [ax_cv_PTHREAD_SPECIAL_FLAGS], [ax_cv_PTHREAD_SPECIAL_FLAGS=no case $host_os in solaris*) ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" ;; esac ]) AS_IF([test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ test "x$ax_pthread_special_flags_added" != "xyes"], [PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" ax_pthread_special_flags_added=yes]) AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT], [ax_cv_PTHREAD_PRIO_INHERIT], [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]], [[int i = PTHREAD_PRIO_INHERIT;]])], [ax_cv_PTHREAD_PRIO_INHERIT=yes], [ax_cv_PTHREAD_PRIO_INHERIT=no]) ]) AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ test "x$ax_pthread_prio_inherit_defined" != "xyes"], [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.]) ax_pthread_prio_inherit_defined=yes ]) CFLAGS="$ax_pthread_save_CFLAGS" LIBS="$ax_pthread_save_LIBS" # More AIX lossage: compile with *_r variant if test "x$GCC" != "xyes"; then case $host_os in aix*) AS_CASE(["x/$CC"], [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6], [#handle absolute path differently from PATH based program lookup AS_CASE(["x$CC"], [x/*], [AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])], [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])]) ;; esac fi fi test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" AC_SUBST([PTHREAD_LIBS]) AC_SUBST([PTHREAD_CFLAGS]) AC_SUBST([PTHREAD_CC]) # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: if test "x$ax_pthread_ok" = "xyes"; then ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1]) : else ax_pthread_ok=no $2 fi AC_LANG_POP ])dnl AX_PTHREAD config/c-compiler.m4
New file @@ -0,0 +1,800 @@ # Macros to detect C compiler features # config/c-compiler.m4 # PGAC_PRINTF_ARCHETYPE # --------------------- # Select the format archetype to be used by gcc to check printf-type functions. # We prefer "gnu_printf", as that most closely matches the features supported # by src/port/snprintf.c (particularly the %m conversion spec). However, # on some NetBSD versions, that doesn't work while "__syslog__" does. # If all else fails, use "printf". AC_DEFUN([PGAC_PRINTF_ARCHETYPE], [AC_CACHE_CHECK([for printf format archetype], pgac_cv_printf_archetype, [pgac_cv_printf_archetype=gnu_printf PGAC_TEST_PRINTF_ARCHETYPE if [[ "$ac_archetype_ok" = no ]]; then pgac_cv_printf_archetype=__syslog__ PGAC_TEST_PRINTF_ARCHETYPE if [[ "$ac_archetype_ok" = no ]]; then pgac_cv_printf_archetype=printf fi fi]) AC_DEFINE_UNQUOTED([PG_PRINTF_ATTRIBUTE], [$pgac_cv_printf_archetype], [Define to best printf format archetype, usually gnu_printf if available.]) ])# PGAC_PRINTF_ARCHETYPE # Subroutine: test $pgac_cv_printf_archetype, set $ac_archetype_ok to yes or no AC_DEFUN([PGAC_TEST_PRINTF_ARCHETYPE], [ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [extern void pgac_write(int ignore, const char *fmt,...) __attribute__((format($pgac_cv_printf_archetype, 2, 3)));], [pgac_write(0, "error %s: %m", "foo");])], [ac_archetype_ok=yes], [ac_archetype_ok=no]) ac_c_werror_flag=$ac_save_c_werror_flag ])# PGAC_TEST_PRINTF_ARCHETYPE # PGAC_TYPE_128BIT_INT # -------------------- # Check if __int128 is a working 128 bit integer type, and if so # define PG_INT128_TYPE to that typename, and define ALIGNOF_PG_INT128_TYPE # as its alignment requirement. # # This currently only detects a GCC/clang extension, but support for other # environments may be added in the future. # # For the moment we only test for support for 128bit math; support for # 128bit literals and snprintf is not required. AC_DEFUN([PGAC_TYPE_128BIT_INT], [AC_CACHE_CHECK([for __int128], [pgac_cv__128bit_int], [AC_LINK_IFELSE([AC_LANG_PROGRAM([ /* * We don't actually run this test, just link it to verify that any support * functions needed for __int128 are present. * * These are globals to discourage the compiler from folding all the * arithmetic tests down to compile-time constants. We do not have * convenient support for 128bit literals at this point... */ __int128 a = 48828125; __int128 b = 97656250; ],[ __int128 c,d; a = (a << 12) + 1; /* 200000000001 */ b = (b << 12) + 5; /* 400000000005 */ /* try the most relevant arithmetic ops */ c = a * b; d = (c + b) / b; /* must use the results, else compiler may optimize arithmetic away */ if (d != a+1) return 1; ])], [pgac_cv__128bit_int=yes], [pgac_cv__128bit_int=no])]) if test x"$pgac_cv__128bit_int" = xyes ; then # Use of non-default alignment with __int128 tickles bugs in some compilers. # If not cross-compiling, we can test for bugs and disable use of __int128 # with buggy compilers. If cross-compiling, hope for the best. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925 AC_CACHE_CHECK([for __int128 alignment bug], [pgac_cv__128bit_int_bug], [AC_RUN_IFELSE([AC_LANG_PROGRAM([ /* This must match the corresponding code in c.h: */ #if defined(__GNUC__) || defined(__SUNPRO_C) #define pg_attribute_aligned(a) __attribute__((aligned(a))) #elif defined(_MSC_VER) #define pg_attribute_aligned(a) __declspec(align(a)) #endif typedef __int128 int128a #if defined(pg_attribute_aligned) pg_attribute_aligned(8) #endif ; int128a holder; void pass_by_val(void *buffer, int128a par) { holder = par; } ],[ long int i64 = 97656225L << 12; int128a q; pass_by_val(main, (int128a) i64); q = (int128a) i64; if (q != holder) return 1; ])], [pgac_cv__128bit_int_bug=ok], [pgac_cv__128bit_int_bug=broken], [pgac_cv__128bit_int_bug="assuming ok"])]) if test x"$pgac_cv__128bit_int_bug" != xbroken ; then AC_DEFINE(PG_INT128_TYPE, __int128, [Define to the name of a signed 128-bit integer type.]) AC_CHECK_ALIGNOF(PG_INT128_TYPE) fi fi])# PGAC_TYPE_128BIT_INT # PGAC_C_STATIC_ASSERT # -------------------- # Check if the C compiler understands _Static_assert(), # and define HAVE__STATIC_ASSERT if so. # # We actually check the syntax ({ _Static_assert(...) }), because we need # gcc-style compound expressions to be able to wrap the thing into macros. AC_DEFUN([PGAC_C_STATIC_ASSERT], [AC_CACHE_CHECK(for _Static_assert, pgac_cv__static_assert, [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [({ _Static_assert(1, "foo"); })])], [pgac_cv__static_assert=yes], [pgac_cv__static_assert=no])]) if test x"$pgac_cv__static_assert" = xyes ; then AC_DEFINE(HAVE__STATIC_ASSERT, 1, [Define to 1 if your compiler understands _Static_assert.]) fi])# PGAC_C_STATIC_ASSERT # PGAC_C_TYPEOF # ------------- # Check if the C compiler understands typeof or a variant. Define # HAVE_TYPEOF if so, and define 'typeof' to the actual key word. # AC_DEFUN([PGAC_C_TYPEOF], [AC_CACHE_CHECK(for typeof, pgac_cv_c_typeof, [pgac_cv_c_typeof=no for pgac_kw in typeof __typeof__; do AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [int x = 0; $pgac_kw(x) y; y = x; return y;])], [pgac_cv_c_typeof=$pgac_kw]) test "$pgac_cv_c_typeof" != no && break done]) if test "$pgac_cv_c_typeof" != no; then AC_DEFINE(HAVE_TYPEOF, 1, [Define to 1 if your compiler understands `typeof' or something similar.]) if test "$pgac_cv_c_typeof" != typeof; then AC_DEFINE_UNQUOTED(typeof, $pgac_cv_c_typeof, [Define to how the compiler spells `typeof'.]) fi fi])# PGAC_C_TYPEOF # PGAC_C_TYPES_COMPATIBLE # ----------------------- # Check if the C compiler understands __builtin_types_compatible_p, # and define HAVE__BUILTIN_TYPES_COMPATIBLE_P if so. # # We check usage with __typeof__, though it's unlikely any compiler would # have the former and not the latter. AC_DEFUN([PGAC_C_TYPES_COMPATIBLE], [AC_CACHE_CHECK(for __builtin_types_compatible_p, pgac_cv__types_compatible, [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[ int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)]; ]])], [pgac_cv__types_compatible=yes], [pgac_cv__types_compatible=no])]) if test x"$pgac_cv__types_compatible" = xyes ; then AC_DEFINE(HAVE__BUILTIN_TYPES_COMPATIBLE_P, 1, [Define to 1 if your compiler understands __builtin_types_compatible_p.]) fi])# PGAC_C_TYPES_COMPATIBLE # PGAC_C_BUILTIN_CONSTANT_P # ------------------------- # Check if the C compiler understands __builtin_constant_p(), # and define HAVE__BUILTIN_CONSTANT_P if so. # We need __builtin_constant_p("string literal") to be true, but some older # compilers don't think that, so test for that case explicitly. AC_DEFUN([PGAC_C_BUILTIN_CONSTANT_P], [AC_CACHE_CHECK(for __builtin_constant_p, pgac_cv__builtin_constant_p, [AC_COMPILE_IFELSE([AC_LANG_SOURCE( [[static int x; static int y[__builtin_constant_p(x) ? x : 1]; static int z[__builtin_constant_p("string literal") ? 1 : x]; ]] )], [pgac_cv__builtin_constant_p=yes], [pgac_cv__builtin_constant_p=no])]) if test x"$pgac_cv__builtin_constant_p" = xyes ; then AC_DEFINE(HAVE__BUILTIN_CONSTANT_P, 1, [Define to 1 if your compiler understands __builtin_constant_p.]) fi])# PGAC_C_BUILTIN_CONSTANT_P # PGAC_C_BUILTIN_OP_OVERFLOW # -------------------------- # Check if the C compiler understands __builtin_$op_overflow(), # and define HAVE__BUILTIN_OP_OVERFLOW if so. # # Check for the most complicated case, 64 bit multiplication, as a # proxy for all of the operations. To detect the case where the compiler # knows the function but library support is missing, we must link not just # compile, and store the results in global variables so the compiler doesn't # optimize away the call. AC_DEFUN([PGAC_C_BUILTIN_OP_OVERFLOW], [AC_CACHE_CHECK(for __builtin_mul_overflow, pgac_cv__builtin_op_overflow, [AC_LINK_IFELSE([AC_LANG_PROGRAM([ #include <stdint.h> int64_t a = 1; int64_t b = 1; int64_t result; int oflo; ], [oflo = __builtin_mul_overflow(a, b, &result);])], [pgac_cv__builtin_op_overflow=yes], [pgac_cv__builtin_op_overflow=no])]) if test x"$pgac_cv__builtin_op_overflow" = xyes ; then AC_DEFINE(HAVE__BUILTIN_OP_OVERFLOW, 1, [Define to 1 if your compiler understands __builtin_$op_overflow.]) fi])# PGAC_C_BUILTIN_OP_OVERFLOW # PGAC_C_BUILTIN_UNREACHABLE # -------------------------- # Check if the C compiler understands __builtin_unreachable(), # and define HAVE__BUILTIN_UNREACHABLE if so. # # NB: Don't get the idea of putting a for(;;); or such before the # __builtin_unreachable() call. Some compilers would remove it before linking # and only a warning instead of an error would be produced. AC_DEFUN([PGAC_C_BUILTIN_UNREACHABLE], [AC_CACHE_CHECK(for __builtin_unreachable, pgac_cv__builtin_unreachable, [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [__builtin_unreachable();])], [pgac_cv__builtin_unreachable=yes], [pgac_cv__builtin_unreachable=no])]) if test x"$pgac_cv__builtin_unreachable" = xyes ; then AC_DEFINE(HAVE__BUILTIN_UNREACHABLE, 1, [Define to 1 if your compiler understands __builtin_unreachable.]) fi])# PGAC_C_BUILTIN_UNREACHABLE # PGAC_C_COMPUTED_GOTO # -------------------- # Check if the C compiler knows computed gotos (gcc extension, also # available in at least clang). If so, define HAVE_COMPUTED_GOTO. # # Checking whether computed gotos are supported syntax-wise ought to # be enough, as the syntax is otherwise illegal. AC_DEFUN([PGAC_C_COMPUTED_GOTO], [AC_CACHE_CHECK(for computed goto support, pgac_cv_computed_goto, [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[void *labeladdrs[] = {&&my_label}; goto *labeladdrs[0]; my_label: return 1; ]])], [pgac_cv_computed_goto=yes], [pgac_cv_computed_goto=no])]) if test x"$pgac_cv_computed_goto" = xyes ; then AC_DEFINE(HAVE_COMPUTED_GOTO, 1, [Define to 1 if your compiler handles computed gotos.]) fi])# PGAC_C_COMPUTED_GOTO # PGAC_CHECK_BUILTIN_FUNC # ----------------------- # This is similar to AC_CHECK_FUNCS(), except that it will work for compiler # builtin functions, as that usually fails to. # The first argument is the function name, eg [__builtin_clzl], and the # second is its argument list, eg [unsigned long x]. The current coding # works only for a single argument named x; we might generalize that later. # It's assumed that the function's result type is coercible to int. # On success, we define "HAVEfuncname" (there's usually more than enough # underscores already, so we don't add another one). AC_DEFUN([PGAC_CHECK_BUILTIN_FUNC], [AC_CACHE_CHECK(for $1, pgac_cv$1, [AC_LINK_IFELSE([AC_LANG_PROGRAM([ int call$1($2) { return $1(x); }], [])], [pgac_cv$1=yes], [pgac_cv$1=no])]) if test x"${pgac_cv$1}" = xyes ; then AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE$1]), 1, [Define to 1 if your compiler understands $1.]) fi])# PGAC_CHECK_BUILTIN_FUNC # PGAC_CHECK_BUILTIN_FUNC_PTR # ----------------------- # Like PGAC_CHECK_BUILTIN_FUNC, except that the function is assumed to # return a pointer type, and the argument(s) should be given literally. # This handles some cases that PGAC_CHECK_BUILTIN_FUNC doesn't. AC_DEFUN([PGAC_CHECK_BUILTIN_FUNC_PTR], [AC_CACHE_CHECK(for $1, pgac_cv$1, [AC_LINK_IFELSE([AC_LANG_PROGRAM([ void * call$1(void) { return $1($2); }], [])], [pgac_cv$1=yes], [pgac_cv$1=no])]) if test x"${pgac_cv$1}" = xyes ; then AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE$1]), 1, [Define to 1 if your compiler understands $1.]) fi])# PGAC_CHECK_BUILTIN_FUNC_PTR # PGAC_PROG_VARCC_VARFLAGS_OPT # ---------------------------- # Given a compiler, variable name and a string, check if the compiler # supports the string as a command-line option. If it does, add the # string to the given variable. AC_DEFUN([PGAC_PROG_VARCC_VARFLAGS_OPT], [define([Ac_cachevar], [AS_TR_SH([pgac_cv_prog_$1_cflags_$3])])dnl AC_CACHE_CHECK([whether ${$1} supports $3, for $2], [Ac_cachevar], [pgac_save_CFLAGS=$CFLAGS pgac_save_CC=$CC CC=${$1} CFLAGS="${$2} $3" ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes _AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [Ac_cachevar=yes], [Ac_cachevar=no]) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="$pgac_save_CFLAGS" CC="$pgac_save_CC"]) if test x"$Ac_cachevar" = x"yes"; then $2="${$2} $3" fi undefine([Ac_cachevar])dnl ])# PGAC_PROG_VARCC_VARFLAGS_OPT # PGAC_PROG_CC_CFLAGS_OPT # ----------------------- # Given a string, check if the compiler supports the string as a # command-line option. If it does, add the string to CFLAGS. AC_DEFUN([PGAC_PROG_CC_CFLAGS_OPT], [ PGAC_PROG_VARCC_VARFLAGS_OPT(CC, CFLAGS, $1) ])# PGAC_PROG_CC_CFLAGS_OPT # PGAC_PROG_CC_VAR_OPT # -------------------- # Given a variable name and a string, check if the compiler supports # the string as a command-line option. If it does, add the string to # the given variable. AC_DEFUN([PGAC_PROG_CC_VAR_OPT], [PGAC_PROG_VARCC_VARFLAGS_OPT(CC, $1, $2) ])# PGAC_PROG_CC_VAR_OPT # PGAC_PROG_VARCXX_VARFLAGS_OPT # ----------------------------- # Given a compiler, variable name and a string, check if the compiler # supports the string as a command-line option. If it does, add the # string to the given variable. AC_DEFUN([PGAC_PROG_VARCXX_VARFLAGS_OPT], [define([Ac_cachevar], [AS_TR_SH([pgac_cv_prog_$1_cxxflags_$3])])dnl AC_CACHE_CHECK([whether ${$1} supports $3, for $2], [Ac_cachevar], [pgac_save_CXXFLAGS=$CXXFLAGS pgac_save_CXX=$CXX CXX=${$1} CXXFLAGS="${$2} $3" ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes AC_LANG_PUSH(C++) _AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [Ac_cachevar=yes], [Ac_cachevar=no]) AC_LANG_POP([]) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="$pgac_save_CXXFLAGS" CXX="$pgac_save_CXX"]) if test x"$Ac_cachevar" = x"yes"; then $2="${$2} $3" fi undefine([Ac_cachevar])dnl ])# PGAC_PROG_VARCXX_VARFLAGS_OPT # PGAC_PROG_CXX_CFLAGS_OPT # ------------------------ # Given a string, check if the compiler supports the string as a # command-line option. If it does, add the string to CXXFLAGS. AC_DEFUN([PGAC_PROG_CXX_CFLAGS_OPT], [PGAC_PROG_VARCXX_VARFLAGS_OPT(CXX, CXXFLAGS, $1) ])# PGAC_PROG_CXX_CFLAGS_OPT # PGAC_PROG_CC_LD_VARFLAGS_OPT # ------------------------ # Given a string, check if the compiler supports the string as a # command-line option. If it does, add to the given variable. # For reasons you'd really rather not know about, this checks whether # you can link to a particular function, not just whether you can link. # In fact, we must actually check that the resulting program runs :-( AC_DEFUN([PGAC_PROG_CC_LD_VARFLAGS_OPT], [define([Ac_cachevar], [AS_TR_SH([pgac_cv_prog_cc_$1_$2])])dnl AC_CACHE_CHECK([whether $CC supports $2, for $1], [Ac_cachevar], [pgac_save_LDFLAGS=$LDFLAGS LDFLAGS="$pgac_save_LDFLAGS $2" AC_RUN_IFELSE([AC_LANG_PROGRAM([extern void $3 (); void (*fptr) () = $3;],[])], [Ac_cachevar=yes], [Ac_cachevar=no], [Ac_cachevar="assuming no"]) LDFLAGS="$pgac_save_LDFLAGS"]) if test x"$Ac_cachevar" = x"yes"; then $1="${$1} $2" fi undefine([Ac_cachevar])dnl ])# PGAC_PROG_CC_LD_VARFLAGS_OPT # PGAC_PROG_CC_LDFLAGS_OPT # ------------------------ # Convenience wrapper around PGAC_PROG_CC_LD_VARFLAGS_OPT that adds to # LDFLAGS. AC_DEFUN([PGAC_PROG_CC_LDFLAGS_OPT], [PGAC_PROG_CC_LD_VARFLAGS_OPT(LDFLAGS, [$1], [$2]) ])# PGAC_PROG_CC_LDFLAGS_OPT # PGAC_HAVE_GCC__SYNC_CHAR_TAS # ---------------------------- # Check if the C compiler understands __sync_lock_test_and_set(char), # and define HAVE_GCC__SYNC_CHAR_TAS # # NB: There are platforms where test_and_set is available but compare_and_swap # is not, so test this separately. # NB: Some platforms only do 32bit tas, others only do 8bit tas. Test both. AC_DEFUN([PGAC_HAVE_GCC__SYNC_CHAR_TAS], [AC_CACHE_CHECK(for builtin __sync char locking functions, pgac_cv_gcc_sync_char_tas, [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [char lock = 0; __sync_lock_test_and_set(&lock, 1); __sync_lock_release(&lock);])], [pgac_cv_gcc_sync_char_tas="yes"], [pgac_cv_gcc_sync_char_tas="no"])]) if test x"$pgac_cv_gcc_sync_char_tas" = x"yes"; then AC_DEFINE(HAVE_GCC__SYNC_CHAR_TAS, 1, [Define to 1 if you have __sync_lock_test_and_set(char *) and friends.]) fi])# PGAC_HAVE_GCC__SYNC_CHAR_TAS # PGAC_HAVE_GCC__SYNC_INT32_TAS # ----------------------------- # Check if the C compiler understands __sync_lock_test_and_set(), # and define HAVE_GCC__SYNC_INT32_TAS AC_DEFUN([PGAC_HAVE_GCC__SYNC_INT32_TAS], [AC_CACHE_CHECK(for builtin __sync int32 locking functions, pgac_cv_gcc_sync_int32_tas, [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [int lock = 0; __sync_lock_test_and_set(&lock, 1); __sync_lock_release(&lock);])], [pgac_cv_gcc_sync_int32_tas="yes"], [pgac_cv_gcc_sync_int32_tas="no"])]) if test x"$pgac_cv_gcc_sync_int32_tas" = x"yes"; then AC_DEFINE(HAVE_GCC__SYNC_INT32_TAS, 1, [Define to 1 if you have __sync_lock_test_and_set(int *) and friends.]) fi])# PGAC_HAVE_GCC__SYNC_INT32_TAS # PGAC_HAVE_GCC__SYNC_INT32_CAS # ----------------------------- # Check if the C compiler understands __sync_compare_and_swap() for 32bit # types, and define HAVE_GCC__SYNC_INT32_CAS if so. AC_DEFUN([PGAC_HAVE_GCC__SYNC_INT32_CAS], [AC_CACHE_CHECK(for builtin __sync int32 atomic operations, pgac_cv_gcc_sync_int32_cas, [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [int val = 0; __sync_val_compare_and_swap(&val, 0, 37);])], [pgac_cv_gcc_sync_int32_cas="yes"], [pgac_cv_gcc_sync_int32_cas="no"])]) if test x"$pgac_cv_gcc_sync_int32_cas" = x"yes"; then AC_DEFINE(HAVE_GCC__SYNC_INT32_CAS, 1, [Define to 1 if you have __sync_val_compare_and_swap(int *, int, int).]) fi])# PGAC_HAVE_GCC__SYNC_INT32_CAS # PGAC_HAVE_GCC__SYNC_INT64_CAS # ----------------------------- # Check if the C compiler understands __sync_compare_and_swap() for 64bit # types, and define HAVE_GCC__SYNC_INT64_CAS if so. AC_DEFUN([PGAC_HAVE_GCC__SYNC_INT64_CAS], [AC_CACHE_CHECK(for builtin __sync int64 atomic operations, pgac_cv_gcc_sync_int64_cas, [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdint.h>], [int64_t lock = 0; __sync_val_compare_and_swap(&lock, 0, (int64_t) 37);])], [pgac_cv_gcc_sync_int64_cas="yes"], [pgac_cv_gcc_sync_int64_cas="no"])]) if test x"$pgac_cv_gcc_sync_int64_cas" = x"yes"; then AC_DEFINE(HAVE_GCC__SYNC_INT64_CAS, 1, [Define to 1 if you have __sync_val_compare_and_swap(int64_t *, int64_t, int64_t).]) fi])# PGAC_HAVE_GCC__SYNC_INT64_CAS # PGAC_HAVE_GCC__ATOMIC_INT32_CAS # ------------------------------- # Check if the C compiler understands __atomic_compare_exchange_n() for 32bit # types, and define HAVE_GCC__ATOMIC_INT32_CAS if so. AC_DEFUN([PGAC_HAVE_GCC__ATOMIC_INT32_CAS], [AC_CACHE_CHECK(for builtin __atomic int32 atomic operations, pgac_cv_gcc_atomic_int32_cas, [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [int val = 0; int expect = 0; __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);])], [pgac_cv_gcc_atomic_int32_cas="yes"], [pgac_cv_gcc_atomic_int32_cas="no"])]) if test x"$pgac_cv_gcc_atomic_int32_cas" = x"yes"; then AC_DEFINE(HAVE_GCC__ATOMIC_INT32_CAS, 1, [Define to 1 if you have __atomic_compare_exchange_n(int *, int *, int).]) fi])# PGAC_HAVE_GCC__ATOMIC_INT32_CAS # PGAC_HAVE_GCC__ATOMIC_INT64_CAS # ------------------------------- # Check if the C compiler understands __atomic_compare_exchange_n() for 64bit # types, and define HAVE_GCC__ATOMIC_INT64_CAS if so. AC_DEFUN([PGAC_HAVE_GCC__ATOMIC_INT64_CAS], [AC_CACHE_CHECK(for builtin __atomic int64 atomic operations, pgac_cv_gcc_atomic_int64_cas, [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdint.h>], [int64_t val = 0; int64_t expect = 0; __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);])], [pgac_cv_gcc_atomic_int64_cas="yes"], [pgac_cv_gcc_atomic_int64_cas="no"])]) if test x"$pgac_cv_gcc_atomic_int64_cas" = x"yes"; then AC_DEFINE(HAVE_GCC__ATOMIC_INT64_CAS, 1, [Define to 1 if you have __atomic_compare_exchange_n(int64 *, int64 *, int64).]) fi])# PGAC_HAVE_GCC__ATOMIC_INT64_CAS # PGAC_SSE42_CRC32_INTRINSICS # --------------------------- # Check if the compiler supports the x86 CRC instructions added in SSE 4.2, # using the _mm_crc32_u8 and _mm_crc32_u32 intrinsic functions. (We don't # test the 8-byte variant, _mm_crc32_u64, but it is assumed to be present if # the other ones are, on x86-64 platforms) # # If the intrinsics are supported, sets pgac_sse42_crc32_intrinsics. # # To detect the case where the compiler knows the function but library support # is missing, we must link not just compile, and store the results in global # variables so the compiler doesn't optimize away the call. AC_DEFUN([PGAC_SSE42_CRC32_INTRINSICS], [define([Ac_cachevar], [AS_TR_SH([pgac_cv_sse42_crc32_intrinsics])])dnl AC_CACHE_CHECK([for _mm_crc32_u8 and _mm_crc32_u32], [Ac_cachevar], [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <nmmintrin.h> unsigned int crc; #if defined(__has_attribute) && __has_attribute (target) __attribute__((target("sse4.2"))) #endif static int crc32_sse42_test(void) { crc = _mm_crc32_u8(crc, 0); crc = _mm_crc32_u32(crc, 0); /* return computed value, to prevent the above being optimized away */ return crc == 0; }], [return crc32_sse42_test();])], [Ac_cachevar=yes], [Ac_cachevar=no])]) if test x"$Ac_cachevar" = x"yes"; then pgac_sse42_crc32_intrinsics=yes fi undefine([Ac_cachevar])dnl ])# PGAC_SSE42_CRC32_INTRINSICS # PGAC_AVX512_PCLMUL_INTRINSICS # --------------------------- # Check if the compiler supports AVX-512 carryless multiplication # and three-way exclusive-or instructions used for computing CRC. # AVX-512F is assumed to be supported if the above are. # # If the intrinsics are supported, sets pgac_avx512_pclmul_intrinsics. AC_DEFUN([PGAC_AVX512_PCLMUL_INTRINSICS], [define([Ac_cachevar], [AS_TR_SH([pgac_cv_avx512_pclmul_intrinsics])])dnl AC_CACHE_CHECK([for _mm512_clmulepi64_epi128], [Ac_cachevar], [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <immintrin.h> __m512i x; __m512i y; #if defined(__has_attribute) && __has_attribute (target) __attribute__((target("vpclmulqdq,avx512vl"))) #endif static int avx512_pclmul_test(void) { __m128i z; x = _mm512_xor_si512(_mm512_zextsi128_si512(_mm_cvtsi32_si128(0)), x); y = _mm512_clmulepi64_epi128(x, y, 0); z = _mm_ternarylogic_epi64( _mm512_castsi512_si128(y), _mm512_extracti32x4_epi32(y, 1), _mm512_extracti32x4_epi32(y, 2), 0x96); return _mm_crc32_u64(0, _mm_extract_epi64(z, 0)); }], [return avx512_pclmul_test();])], [Ac_cachevar=yes], [Ac_cachevar=no])]) if test x"$Ac_cachevar" = x"yes"; then pgac_avx512_pclmul_intrinsics=yes fi undefine([Ac_cachevar])dnl ])# PGAC_AVX512_PCLMUL_INTRINSICS # PGAC_ARMV8_CRC32C_INTRINSICS # ---------------------------- # Check if the compiler supports the CRC32C instructions using the __crc32cb, # __crc32ch, __crc32cw, and __crc32cd intrinsic functions. These instructions # were first introduced in ARMv8 in the optional CRC Extension, and became # mandatory in ARMv8.1. # # An optional compiler flag can be passed as argument (e.g. # -march=armv8-a+crc). If the intrinsics are supported, sets # pgac_armv8_crc32c_intrinsics, and CFLAGS_CRC. AC_DEFUN([PGAC_ARMV8_CRC32C_INTRINSICS], [define([Ac_cachevar], [AS_TR_SH([pgac_cv_armv8_crc32c_intrinsics_$1])])dnl AC_CACHE_CHECK([for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=$1], [Ac_cachevar], [pgac_save_CFLAGS=$CFLAGS CFLAGS="$pgac_save_CFLAGS $1" AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <arm_acle.h> unsigned int crc;], [crc = __crc32cb(crc, 0); crc = __crc32ch(crc, 0); crc = __crc32cw(crc, 0); crc = __crc32cd(crc, 0); /* return computed value, to prevent the above being optimized away */ return crc == 0;])], [Ac_cachevar=yes], [Ac_cachevar=no]) CFLAGS="$pgac_save_CFLAGS"]) if test x"$Ac_cachevar" = x"yes"; then CFLAGS_CRC="$1" pgac_armv8_crc32c_intrinsics=yes fi undefine([Ac_cachevar])dnl ])# PGAC_ARMV8_CRC32C_INTRINSICS # PGAC_LOONGARCH_CRC32C_INTRINSICS # --------------------------- # Check if the compiler supports the LoongArch CRCC instructions, using # __builtin_loongarch_crcc_w_b_w, __builtin_loongarch_crcc_w_h_w, # __builtin_loongarch_crcc_w_w_w and __builtin_loongarch_crcc_w_d_w # intrinsic functions. # # We test for the 8-byte variant since platforms capable of running # Postgres are 64-bit only (as of PG17), and we know CRC instructions # are available there without a runtime check. # # If the intrinsics are supported, sets pgac_loongarch_crc32c_intrinsics. AC_DEFUN([PGAC_LOONGARCH_CRC32C_INTRINSICS], [define([Ac_cachevar], [AS_TR_SH([pgac_cv_loongarch_crc32c_intrinsics])])dnl AC_CACHE_CHECK( [for __builtin_loongarch_crcc_w_b_w, __builtin_loongarch_crcc_w_h_w, __builtin_loongarch_crcc_w_w_w and __builtin_loongarch_crcc_w_d_w], [Ac_cachevar], [AC_LINK_IFELSE([AC_LANG_PROGRAM([unsigned int crc;], [crc = __builtin_loongarch_crcc_w_b_w(0, crc); crc = __builtin_loongarch_crcc_w_h_w(0, crc); crc = __builtin_loongarch_crcc_w_w_w(0, crc); crc = __builtin_loongarch_crcc_w_d_w(0, crc); /* return computed value, to prevent the above being optimized away */ return crc == 0;])], [Ac_cachevar=yes], [Ac_cachevar=no])]) if test x"$Ac_cachevar" = x"yes"; then pgac_loongarch_crc32c_intrinsics=yes fi undefine([Ac_cachevar])dnl ])# PGAC_LOONGARCH_CRC32C_INTRINSICS # PGAC_XSAVE_INTRINSICS # --------------------- # Check if the compiler supports the XSAVE instructions using the _xgetbv # intrinsic function. # # If the intrinsics are supported, sets pgac_xsave_intrinsics. AC_DEFUN([PGAC_XSAVE_INTRINSICS], [define([Ac_cachevar], [AS_TR_SH([pgac_cv_xsave_intrinsics])])dnl AC_CACHE_CHECK([for _xgetbv], [Ac_cachevar], [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <immintrin.h> #if defined(__has_attribute) && __has_attribute (target) __attribute__((target("xsave"))) #endif static int xsave_test(void) { return _xgetbv(0) & 0xe0; }], [return xsave_test();])], [Ac_cachevar=yes], [Ac_cachevar=no])]) if test x"$Ac_cachevar" = x"yes"; then pgac_xsave_intrinsics=yes fi undefine([Ac_cachevar])dnl ])# PGAC_XSAVE_INTRINSICS # PGAC_AVX512_POPCNT_INTRINSICS # ----------------------------- # Check if the compiler supports the AVX-512 popcount instructions using the # _mm512_setzero_si512, _mm512_maskz_loadu_epi8, _mm512_popcnt_epi64, # _mm512_add_epi64, and _mm512_reduce_add_epi64 intrinsic functions. # # If the intrinsics are supported, sets pgac_avx512_popcnt_intrinsics. AC_DEFUN([PGAC_AVX512_POPCNT_INTRINSICS], [define([Ac_cachevar], [AS_TR_SH([pgac_cv_avx512_popcnt_intrinsics])])dnl AC_CACHE_CHECK([for _mm512_popcnt_epi64], [Ac_cachevar], [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <immintrin.h> #include <stdint.h> char buf[sizeof(__m512i)]; #if defined(__has_attribute) && __has_attribute (target) __attribute__((target("avx512vpopcntdq,avx512bw"))) #endif static int popcount_test(void) { int64_t popcnt = 0; __m512i accum = _mm512_setzero_si512(); __m512i val = _mm512_maskz_loadu_epi8((__mmask64) 0xf0f0f0f0f0f0f0f0, (const __m512i *) buf); __m512i cnt = _mm512_popcnt_epi64(val); accum = _mm512_add_epi64(accum, cnt); popcnt = _mm512_reduce_add_epi64(accum); return (int) popcnt; }]], [return popcount_test();])], [Ac_cachevar=yes], [Ac_cachevar=no])]) if test x"$Ac_cachevar" = x"yes"; then pgac_avx512_popcnt_intrinsics=yes fi undefine([Ac_cachevar])dnl ])# PGAC_AVX512_POPCNT_INTRINSICS # PGAC_SVE_POPCNT_INTRINSICS # -------------------------- # Check if the compiler supports the SVE popcount instructions using the # svptrue_b64, svdup_u64, svcntb, svld1_u64, svld1_u8, svadd_u64_x, # svcnt_u64_x, svcnt_u8_x, svaddv_u64, svaddv_u8, svwhilelt_b8_s32, # svand_n_u64_x, and svand_n_u8_x intrinsic functions. # # If the intrinsics are supported, sets pgac_sve_popcnt_intrinsics. AC_DEFUN([PGAC_SVE_POPCNT_INTRINSICS], [define([Ac_cachevar], [AS_TR_SH([pgac_cv_sve_popcnt_intrinsics])])dnl AC_CACHE_CHECK([for svcnt_x], [Ac_cachevar], [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <arm_sve.h> char buf[128]; #if defined(__has_attribute) && __has_attribute (target) __attribute__((target("arch=armv8-a+sve"))) #endif static int popcount_test(void) { svbool_t pred = svptrue_b64(); svuint8_t vec8; svuint64_t accum1 = svdup_u64(0), accum2 = svdup_u64(0), vec64; char *p = buf; uint64_t popcnt, mask = 0x5555555555555555; vec64 = svand_n_u64_x(pred, svld1_u64(pred, (const uint64_t *) p), mask); accum1 = svadd_u64_x(pred, accum1, svcnt_u64_x(pred, vec64)); p += svcntb(); vec64 = svand_n_u64_x(pred, svld1_u64(pred, (const uint64_t *) p), mask); accum2 = svadd_u64_x(pred, accum2, svcnt_u64_x(pred, vec64)); p += svcntb(); popcnt = svaddv_u64(pred, svadd_u64_x(pred, accum1, accum2)); pred = svwhilelt_b8_s32(0, sizeof(buf)); vec8 = svand_n_u8_x(pred, svld1_u8(pred, (const uint8_t *) p), 0x55); return (int) (popcnt + svaddv_u8(pred, svcnt_u8_x(pred, vec8))); }]], [return popcount_test();])], [Ac_cachevar=yes], [Ac_cachevar=no])]) if test x"$Ac_cachevar" = x"yes"; then pgac_sve_popcnt_intrinsics=yes fi undefine([Ac_cachevar])dnl ])# PGAC_SVE_POPCNT_INTRINSICS config/c-library.m4
New file @@ -0,0 +1,83 @@ # Macros that test various C library quirks # config/c-library.m4 # PGAC_VAR_INT_TIMEZONE # --------------------- # Check if the global variable `timezone' exists. If so, define # HAVE_INT_TIMEZONE. AC_DEFUN([PGAC_VAR_INT_TIMEZONE], [AC_CACHE_CHECK(for int timezone, pgac_cv_var_int_timezone, [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <time.h> int res;], [#ifndef __CYGWIN__ res = timezone / 60; #else res = _timezone / 60; #endif])], [pgac_cv_var_int_timezone=yes], [pgac_cv_var_int_timezone=no])]) if test x"$pgac_cv_var_int_timezone" = xyes ; then AC_DEFINE(HAVE_INT_TIMEZONE, 1, [Define to 1 if you have the global variable 'int timezone'.]) fi])# PGAC_VAR_INT_TIMEZONE # PGAC_STRUCT_TIMEZONE # ------------------ # Figure out how to get the current timezone. If `struct tm' has a # `tm_zone' member, define `HAVE_STRUCT_TM_TM_ZONE'. Unlike the # standard macro AC_STRUCT_TIMEZONE, we don't check for `tzname[]' if # not found, since we don't use it. (We use `int timezone' as a # fallback.) AC_DEFUN([PGAC_STRUCT_TIMEZONE], [AC_CHECK_MEMBERS([struct tm.tm_zone],,,[#include <sys/types.h> #include <time.h> ]) ])# PGAC_STRUCT_TIMEZONE # PGAC_FUNC_STRERROR_R_INT # --------------------------- # Check if strerror_r() returns int (POSIX) rather than char * (GNU libc). # If so, define STRERROR_R_INT. # The result is uncertain if strerror_r() isn't provided, # but we don't much care. AC_DEFUN([PGAC_FUNC_STRERROR_R_INT], [AC_CACHE_CHECK(whether strerror_r returns int, pgac_cv_func_strerror_r_int, [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <string.h>], [[char buf[100]; switch (strerror_r(1, buf, sizeof(buf))) { case 0: break; default: break; } ]])], [pgac_cv_func_strerror_r_int=yes], [pgac_cv_func_strerror_r_int=no])]) if test x"$pgac_cv_func_strerror_r_int" = xyes ; then AC_DEFINE(STRERROR_R_INT, 1, [Define to 1 if strerror_r() returns int.]) fi ])# PGAC_FUNC_STRERROR_R_INT # PGAC_UNION_SEMUN # ---------------- # Check if `union semun' exists. Define HAVE_UNION_SEMUN if so. # If it doesn't then one could define it as # union semun { int val; struct semid_ds *buf; unsigned short *array; } AC_DEFUN([PGAC_UNION_SEMUN], [AC_CHECK_TYPES([union semun], [], [], [#include <sys/types.h> #include <sys/ipc.h> #include <sys/sem.h> ])])# PGAC_UNION_SEMUN # PGAC_STRUCT_SOCKADDR_MEMBERS # ---------------------------- # Check if struct sockaddr and subtypes have 4.4BSD-style length. AC_DEFUN([PGAC_STRUCT_SOCKADDR_SA_LEN], [AC_CHECK_MEMBERS([struct sockaddr.sa_len], [], [], [#include <sys/types.h> #include <sys/socket.h> ])])# PGAC_STRUCT_SOCKADDR_MEMBERS config/check_decls.m4
New file @@ -0,0 +1,116 @@ # config/check_decls.m4 # This file redefines the standard Autoconf macro _AC_CHECK_DECL_BODY, # and adds a supporting function _AC_UNDECLARED_WARNING, to make # AC_CHECK_DECLS behave correctly when checking for built-in library # functions with clang. # This is based on commit 82ef7805faffa151e724aa76c245ec590d174580 # in the Autoconf git repository. We can drop it if they ever get # around to releasing a new version of Autoconf. In the meantime, # it's distributed under Autoconf's license: # This file is part of Autoconf. This program is free # software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # Under Section 7 of GPL version 3, you are granted additional # permissions described in the Autoconf Configure Script Exception, # version 3.0, as published by the Free Software Foundation. # # You should have received a copy of the GNU General Public License # and a copy of the Autoconf Configure Script Exception along with # this program; see the files COPYINGv3 and COPYING.EXCEPTION # respectively. If not, see <http://www.gnu.org/licenses/>. # Written by David MacKenzie, with help from # Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor, # Roland McGrath, Noah Friedman, david d zuhn, and many others. # _AC_UNDECLARED_WARNING # ---------------------- # Set ac_[]_AC_LANG_ABBREV[]_decl_warn_flag=yes if the compiler uses a warning, # not a more-customary error, to report some undeclared identifiers. Fail when # an affected compiler warns also on valid input. _AC_PROG_PREPROC_WORKS_IFELSE # solves a related problem. AC_DEFUN([_AC_UNDECLARED_WARNING], [# The Clang compiler raises a warning for an undeclared identifier that matches # a compiler builtin function. All extant Clang versions are affected, as of # Clang 3.6.0. Test a builtin known to every version. This problem affects the # C and Objective C languages, but Clang does report an error under C++ and # Objective C++. # # Passing -fno-builtin to the compiler would suppress this problem. That # strategy would have the advantage of being insensitive to stray warnings, but # it would make tests less realistic. AC_CACHE_CHECK([how $[]_AC_CC[] reports undeclared, standard C functions], [ac_cv_[]_AC_LANG_ABBREV[]_decl_report], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [(void) strchr;])], [AS_IF([test -s conftest.err], [dnl # For AC_CHECK_DECL to react to warnings, the compiler must be silent on # valid AC_CHECK_DECL input. No library function is consistently available # on freestanding implementations, so test against a dummy declaration. # Include always-available headers on the off chance that they somehow # elicit warnings. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([dnl #include <float.h> #include <limits.h> #include <stdarg.h> #include <stddef.h> extern void ac_decl (int, char *);], [@%:@ifdef __cplusplus (void) ac_decl ((int) 0, (char *) 0); (void) ac_decl; @%:@else (void) ac_decl; @%:@endif ])], [AS_IF([test -s conftest.err], [AC_MSG_FAILURE([cannot detect from compiler exit status or warnings])], [ac_cv_[]_AC_LANG_ABBREV[]_decl_report=warning])], [AC_MSG_FAILURE([cannot compile a simple declaration test])])], [AC_MSG_FAILURE([compiler does not report undeclared identifiers])])], [ac_cv_[]_AC_LANG_ABBREV[]_decl_report=error])]) case $ac_cv_[]_AC_LANG_ABBREV[]_decl_report in warning) ac_[]_AC_LANG_ABBREV[]_decl_warn_flag=yes ;; *) ac_[]_AC_LANG_ABBREV[]_decl_warn_flag= ;; esac ])# _AC_UNDECLARED_WARNING # _AC_CHECK_DECL_BODY # ------------------- # Shell function body for AC_CHECK_DECL. m4_define([_AC_CHECK_DECL_BODY], [ AS_LINENO_PUSH([$[]1]) # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once. AC_DEFUN([_AC_UNDECLARED_WARNING_]_AC_LANG_ABBREV, [_AC_UNDECLARED_WARNING])dnl AC_REQUIRE([_AC_UNDECLARED_WARNING_]_AC_LANG_ABBREV)dnl [as_decl_name=`echo $][2|sed 's/ *(.*//'`] [as_decl_use=`echo $][2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`] AC_CACHE_CHECK([whether $as_decl_name is declared], [$[]3], [ac_save_werror_flag=$ac_[]_AC_LANG_ABBREV[]_werror_flag ac_[]_AC_LANG_ABBREV[]_werror_flag="$ac_[]_AC_LANG_ABBREV[]_decl_warn_flag$ac_[]_AC_LANG_ABBREV[]_werror_flag" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$[]4], [@%:@ifndef $[]as_decl_name @%:@ifdef __cplusplus (void) $[]as_decl_use; @%:@else (void) $[]as_decl_name; @%:@endif @%:@endif ])], [AS_VAR_SET([$[]3], [yes])], [AS_VAR_SET([$[]3], [no])]) ac_[]_AC_LANG_ABBREV[]_werror_flag=$ac_save_werror_flag]) AS_LINENO_POP ])# _AC_CHECK_DECL_BODY config/check_modules.pl
New file @@ -0,0 +1,30 @@ # Copyright (c) 2024-2025, PostgreSQL Global Development Group # # Verify that required Perl modules are available, # in at least the required minimum versions. # (The required minimum versions are all quite ancient now, # but specify them anyway for documentation's sake.) # use strict; use warnings FATAL => 'all'; use Config; use IPC::Run 0.79; # Test::More and Time::HiRes are supposed to be part of core Perl, # but some distros omit them in a minimal installation. use Test::More 0.98; use Time::HiRes 1.52; # While here, we might as well report exactly what versions we found. diag("IPC::Run::VERSION: $IPC::Run::VERSION"); diag("Test::More::VERSION: $Test::More::VERSION"); diag("Time::HiRes::VERSION: $Time::HiRes::VERSION"); # Check that if prove is using msys perl it is for an msys target ok( ($ENV{__CONFIG_HOST_OS__} || "") eq 'msys', "Msys perl used for correct target") if $Config{osname} eq 'msys'; ok(1); done_testing(); config/config.guess
New file @@ -0,0 +1,1815 @@ #! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2024 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2024-07-27' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see <https://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to <config-patches@gnu.org>. # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system '$me' is run on. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to <config-patches@gnu.org>." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try '$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi # Just in case it came from the environment. GUESS= # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still # use 'HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. tmp= # shellcheck disable=SC2172 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 set_cc_for_build() { # prevent multiple calls if $tmp is already set test "$tmp" && return 0 : "${TMPDIR=/tmp}" # shellcheck disable=SC2039,SC3028 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" for driver in cc gcc c17 c99 c89 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD=$driver break fi done if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac } # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if test -f /.attbin/uname ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case $UNAME_SYSTEM in Linux|GNU|GNU/*) LIBC=unknown set_cc_for_build cat <<-EOF > "$dummy.c" #if defined(__ANDROID__) LIBC=android #else #include <features.h> #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu #elif defined(__LLVM_LIBC__) LIBC=llvm #else #include <stdarg.h> /* First heuristic to detect musl libc. */ #ifdef __DEFINED_va_list LIBC=musl #endif #endif #endif EOF cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" # Second heuristic to detect musl libc. if [ "$LIBC" = unknown ] && command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl; then LIBC=musl fi # If the system lacks a compiler, then just pick glibc. # We could probably try harder. if [ "$LIBC" = unknown ]; then LIBC=gnu fi ;; esac # Note: order is significant - the case branches are not exclusive. case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ echo unknown)` case $UNAME_MACHINE_ARCH in aarch64eb) machine=aarch64_be-unknown ;; armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; *) machine=$UNAME_MACHINE_ARCH-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently (or will in the future) and ABI. case $UNAME_MACHINE_ARCH in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case $UNAME_MACHINE_ARCH in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case $UNAME_VERSION in Debian*) release='-gnu' ;; *) release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. GUESS=$machine-${os}${release}${abi-} ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE ;; *:SecBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE ;; *:MidnightBSD:*:*) GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE ;; *:ekkoBSD:*:*) GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE ;; *:SolidBSD:*:*) GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE ;; *:OS108:*:*) GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE ;; macppc:MirBSD:*:*) GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE ;; *:MirBSD:*:*) GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE ;; *:Sortix:*:*) GUESS=$UNAME_MACHINE-unknown-sortix ;; *:Twizzler:*:*) GUESS=$UNAME_MACHINE-unknown-twizzler ;; *:Redox:*:*) GUESS=$UNAME_MACHINE-unknown-redox ;; mips:OSF1:*.*) GUESS=mips-dec-osf1 ;; alpha:OSF1:*:*) # Reset EXIT trap before exiting to avoid spurious non-zero exit code. trap '' 0 case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case $ALPHA_CPU_TYPE in "EV4 (21064)") UNAME_MACHINE=alpha ;; "EV4.5 (21064)") UNAME_MACHINE=alpha ;; "LCA4 (21066/21068)") UNAME_MACHINE=alpha ;; "EV5 (21164)") UNAME_MACHINE=alphaev5 ;; "EV5.6 (21164A)") UNAME_MACHINE=alphaev56 ;; "EV5.6 (21164PC)") UNAME_MACHINE=alphapca56 ;; "EV5.7 (21164PC)") UNAME_MACHINE=alphapca57 ;; "EV6 (21264)") UNAME_MACHINE=alphaev6 ;; "EV6.7 (21264A)") UNAME_MACHINE=alphaev67 ;; "EV6.8CB (21264C)") UNAME_MACHINE=alphaev68 ;; "EV6.8AL (21264B)") UNAME_MACHINE=alphaev68 ;; "EV6.8CX (21264D)") UNAME_MACHINE=alphaev68 ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE=alphaev69 ;; "EV7 (21364)") UNAME_MACHINE=alphaev7 ;; "EV7.9 (21364A)") UNAME_MACHINE=alphaev79 ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` GUESS=$UNAME_MACHINE-dec-osf$OSF_REL ;; Amiga*:UNIX_System_V:4.0:*) GUESS=m68k-unknown-sysv4 ;; *:[Aa]miga[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-amigaos ;; *:[Mm]orph[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-morphos ;; *:OS/390:*:*) GUESS=i370-ibm-openedition ;; *:z/VM:*:*) GUESS=s390-ibm-zvmoe ;; *:OS400:*:*) GUESS=powerpc-ibm-os400 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) GUESS=arm-acorn-riscix$UNAME_RELEASE ;; arm*:riscos:*:*|arm*:RISCOS:*:*) GUESS=arm-unknown-riscos ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) GUESS=hppa1.1-hitachi-hiuxmpp ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. case `(/bin/universe) 2>/dev/null` in att) GUESS=pyramid-pyramid-sysv3 ;; *) GUESS=pyramid-pyramid-bsd ;; esac ;; NILE*:*:*:dcosx) GUESS=pyramid-pyramid-svr4 ;; DRS?6000:unix:4.0:6*) GUESS=sparc-icl-nx6 ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) GUESS=sparc-icl-nx7 ;; esac ;; s390x:SunOS:*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL ;; sun4H:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-hal-solaris2$SUN_REL ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris2$SUN_REL ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) GUESS=i386-pc-auroraux$UNAME_RELEASE ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) set_cc_for_build SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$SUN_ARCH-pc-solaris2$SUN_REL ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris3$SUN_REL ;; sun4*:SunOS:*:*) case `/usr/bin/arch -k` in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like '4.1.3-JL'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; sun3*:SunOS:*:*) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 case `/bin/arch` in sun3) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun4) GUESS=sparc-sun-sunos$UNAME_RELEASE ;; esac ;; aushp:SunOS:*:*) GUESS=sparc-auspex-sunos$UNAME_RELEASE ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) GUESS=m68k-milan-mint$UNAME_RELEASE ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) GUESS=m68k-hades-mint$UNAME_RELEASE ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) GUESS=m68k-unknown-mint$UNAME_RELEASE ;; m68k:machten:*:*) GUESS=m68k-apple-machten$UNAME_RELEASE ;; powerpc:machten:*:*) GUESS=powerpc-apple-machten$UNAME_RELEASE ;; RISC*:Mach:*:*) GUESS=mips-dec-mach_bsd4.3 ;; RISC*:ULTRIX:*:*) GUESS=mips-dec-ultrix$UNAME_RELEASE ;; VAX*:ULTRIX*:*:*) GUESS=vax-dec-ultrix$UNAME_RELEASE ;; 2020:CLIX:*:* | 2430:CLIX:*:*) GUESS=clipper-intergraph-clix$UNAME_RELEASE ;; mips:*:*:UMIPS | mips:*:*:RISCos) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #ifdef __cplusplus #include <stdio.h> /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`"$dummy" "$dummyarg"` && { echo "$SYSTEM_NAME"; exit; } GUESS=mips-mips-riscos$UNAME_RELEASE ;; Motorola:PowerMAX_OS:*:*) GUESS=powerpc-motorola-powermax ;; Motorola:*:4.3:PL8-*) GUESS=powerpc-harris-powermax ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) GUESS=powerpc-harris-powermax ;; Night_Hawk:Power_UNIX:*:*) GUESS=powerpc-harris-powerunix ;; m88k:CX/UX:7*:*) GUESS=m88k-harris-cxux7 ;; m88k:*:4*:R4*) GUESS=m88k-motorola-sysv4 ;; m88k:*:3*:R3*) GUESS=m88k-motorola-sysv3 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ test "$TARGET_BINARY_INTERFACE"x = x then GUESS=m88k-dg-dgux$UNAME_RELEASE else GUESS=m88k-dg-dguxbcs$UNAME_RELEASE fi else GUESS=i586-dg-dgux$UNAME_RELEASE fi ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) GUESS=m88k-dolphin-sysv3 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 GUESS=m88k-motorola-sysv3 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) GUESS=m88k-tektronix-sysv3 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) GUESS=m68k-tektronix-bsd ;; *:IRIX*:*:*) IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` GUESS=mips-sgi-irix$IRIX_REL ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) GUESS=i386-ibm-aix ;; ia64:AIX:*:*) if test -x /usr/bin/oslevel ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include <sys/systemcfg.h> int main () { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` then GUESS=$SYSTEM_NAME else GUESS=rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then GUESS=rs6000-ibm-aix3.2.4 else GUESS=rs6000-ibm-aix3.2 fi ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if test -x /usr/bin/lslpp ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$IBM_ARCH-ibm-aix$IBM_REV ;; *:AIX:*:*) GUESS=rs6000-ibm-aix ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) GUESS=romp-ibm-bsd4.4 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) GUESS=rs6000-bull-bosx ;; DPX/2?00:B.O.S.:*:*) GUESS=m68k-bull-sysv3 ;; 9000/[34]??:4.3bsd:1.*:*) GUESS=m68k-hp-bsd ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) GUESS=m68k-hp-bsd4.4 ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` case $UNAME_MACHINE in 9000/31?) HP_ARCH=m68000 ;; 9000/[34]??) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if test -x /usr/bin/getconf; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case $sc_cpu_version in 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case $sc_kernel_bits in 32) HP_ARCH=hppa2.0n ;; 64) HP_ARCH=hppa2.0w ;; '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 esac ;; esac fi if test "$HP_ARCH" = ""; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #define _HPUX_SOURCE #include <stdlib.h> #include <unistd.h> int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if test "$HP_ARCH" = hppa2.0w then set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH=hppa2.0w else HP_ARCH=hppa64 fi fi GUESS=$HP_ARCH-hp-hpux$HPUX_REV ;; ia64:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` GUESS=ia64-hp-hpux$HPUX_REV ;; 3050*:HI-UX:*:*) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" #include <unistd.h> int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } GUESS=unknown-hitachi-hiuxwe2 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) GUESS=hppa1.1-hp-bsd ;; 9000/8??:4.3bsd:*:*) GUESS=hppa1.0-hp-bsd ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) GUESS=hppa1.0-hp-mpeix ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) GUESS=hppa1.1-hp-osf ;; hp8??:OSF1:*:*) GUESS=hppa1.0-hp-osf ;; i*86:OSF1:*:*) if test -x /usr/sbin/sysversion ; then GUESS=$UNAME_MACHINE-unknown-osf1mk else GUESS=$UNAME_MACHINE-unknown-osf1 fi ;; parisc*:Lites*:*:*) GUESS=hppa1.1-hp-lites ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) GUESS=c1-convex-bsd ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) GUESS=c34-convex-bsd ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) GUESS=c38-convex-bsd ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) GUESS=c4-convex-bsd ;; CRAY*Y-MP:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=ymp-cray-unicos$CRAY_REL ;; CRAY*[A-Z]90:*:*:*) echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=t90-cray-unicos$CRAY_REL ;; CRAY*T3E:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=alphaev5-cray-unicosmk$CRAY_REL ;; CRAY*SV1:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=sv1-cray-unicos$CRAY_REL ;; *:UNICOS/mp:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=craynv-cray-unicosmp$CRAY_REL ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE ;; sparc*:BSD/OS:*:*) GUESS=sparc-unknown-bsdi$UNAME_RELEASE ;; *:BSD/OS:*:*) GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE ;; arm:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi else FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf fi ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL ;; i*:CYGWIN*:*) GUESS=$UNAME_MACHINE-pc-cygwin ;; *:MINGW64*:*) GUESS=$UNAME_MACHINE-pc-mingw64 ;; *:MINGW*:*) GUESS=$UNAME_MACHINE-pc-mingw32 ;; *:MSYS*:*) GUESS=$UNAME_MACHINE-pc-msys ;; i*:PW*:*) GUESS=$UNAME_MACHINE-pc-pw32 ;; *:SerenityOS:*:*) GUESS=$UNAME_MACHINE-pc-serenity ;; *:Interix*:*) case $UNAME_MACHINE in x86) GUESS=i586-pc-interix$UNAME_RELEASE ;; authenticamd | genuineintel | EM64T) GUESS=x86_64-unknown-interix$UNAME_RELEASE ;; IA64) GUESS=ia64-unknown-interix$UNAME_RELEASE ;; esac ;; i*:UWIN*:*) GUESS=$UNAME_MACHINE-pc-uwin ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) GUESS=x86_64-pc-cygwin ;; prep*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=powerpcle-unknown-solaris2$SUN_REL ;; *:GNU:*:*) # the GNU system GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL ;; *:GNU/*:*:*) # other systems with GNU libc and userland GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-pc-managarm-mlibc" ;; *:[Mm]anagarm:*:*) GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" ;; *:Minix:*:*) GUESS=$UNAME_MACHINE-unknown-minix ;; aarch64:Linux:*:*) set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __ARM_EABI__ #ifdef __ARM_PCS_VFP ABI=eabihf #else ABI=eabi #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;; esac fi GUESS=$CPU-unknown-linux-$LIBCABI ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arm*:Linux:*:*) set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then GUESS=$UNAME_MACHINE-unknown-linux-$LIBC else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi else GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf fi fi ;; avr32*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; cris:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; crisv32:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; e2k:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; frv:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; hexagon:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:Linux:*:*) GUESS=$UNAME_MACHINE-pc-linux-$LIBC ;; ia64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; k1om:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; kvx:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; kvx:cos:*:*) GUESS=$UNAME_MACHINE-unknown-cos ;; kvx:mbr:*:*) GUESS=$UNAME_MACHINE-unknown-mbr ;; loongarch32:Linux:*:* | loongarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m32r*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m68*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; mips:Linux:*:* | mips64:Linux:*:*) set_cc_for_build IS_GLIBC=0 test x"${LIBC}" = xgnu && IS_GLIBC=1 sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef mips #undef mipsel #undef mips64 #undef mips64el #if ${IS_GLIBC} && defined(_ABI64) LIBCABI=gnuabi64 #else #if ${IS_GLIBC} && defined(_ABIN32) LIBCABI=gnuabin32 #else LIBCABI=${LIBC} #endif #endif #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa64r6 #else #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa32r6 #else #if defined(__mips64) CPU=mips64 #else CPU=mips #endif #endif #endif #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) MIPS_ENDIAN=el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) MIPS_ENDIAN= #else MIPS_ENDIAN= #endif #endif EOF cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` eval "$cc_set_vars" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; openrisc*:Linux:*:*) GUESS=or1k-unknown-linux-$LIBC ;; or32:Linux:*:* | or1k*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; padre:Linux:*:*) GUESS=sparc-unknown-linux-$LIBC ;; parisc64:Linux:*:* | hppa64:Linux:*:*) GUESS=hppa64-unknown-linux-$LIBC ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; *) GUESS=hppa-unknown-linux-$LIBC ;; esac ;; ppc64:Linux:*:*) GUESS=powerpc64-unknown-linux-$LIBC ;; ppc:Linux:*:*) GUESS=powerpc-unknown-linux-$LIBC ;; ppc64le:Linux:*:*) GUESS=powerpc64le-unknown-linux-$LIBC ;; ppcle:Linux:*:*) GUESS=powerpcle-unknown-linux-$LIBC ;; riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; s390:Linux:*:* | s390x:Linux:*:*) GUESS=$UNAME_MACHINE-ibm-linux-$LIBC ;; sh64*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sh*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sparc:Linux:*:* | sparc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; tile*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; vax:Linux:*:*) GUESS=$UNAME_MACHINE-dec-linux-$LIBC ;; x86_64:Linux:*:*) set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __i386__ ABI=x86 #else #ifdef __ILP32__ ABI=x32 #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in x86) CPU=i686 ;; x32) LIBCABI=${LIBC}x32 ;; esac fi GUESS=$CPU-pc-linux-$LIBCABI ;; xtensa*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. GUESS=i386-sequent-sysv4 ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; i*86:OS/2:*:*) # If we were able to find 'uname', then EMX Unix compatibility # is probably installed. GUESS=$UNAME_MACHINE-pc-os2-emx ;; i*86:XTS-300:*:STOP) GUESS=$UNAME_MACHINE-unknown-stop ;; i*86:atheos:*:*) GUESS=$UNAME_MACHINE-unknown-atheos ;; i*86:syllable:*:*) GUESS=$UNAME_MACHINE-pc-syllable ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) GUESS=i386-unknown-lynxos$UNAME_RELEASE ;; i*86:*DOS:*:*) GUESS=$UNAME_MACHINE-pc-msdosdjgpp ;; i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL fi ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL elif /bin/uname -X 2>/dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv32 fi ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. GUESS=i586-pc-msdosdjgpp ;; Intel:Mach:3*:*) GUESS=i386-pc-mach3 ;; paragon:*:*:*) GUESS=i860-intel-osf1 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 fi ;; mini*:CTIX:SYS*5:*) # "miniframe" GUESS=m68010-convergent-sysv ;; mc68k:UNIX:SYSTEM5:3.51m) GUESS=m68k-convergent-sysv ;; M680?0:D-NIX:5.3:*) GUESS=m68k-diab-dnix ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) GUESS=m68k-unknown-lynxos$UNAME_RELEASE ;; mc68030:UNIX_System_V:4.*:*) GUESS=m68k-atari-sysv4 ;; TSUNAMI:LynxOS:2.*:*) GUESS=sparc-unknown-lynxos$UNAME_RELEASE ;; rs6000:LynxOS:2.*:*) GUESS=rs6000-unknown-lynxos$UNAME_RELEASE ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) GUESS=powerpc-unknown-lynxos$UNAME_RELEASE ;; SM[BE]S:UNIX_SV:*:*) GUESS=mips-dde-sysv$UNAME_RELEASE ;; RM*:ReliantUNIX-*:*:*) GUESS=mips-sni-sysv4 ;; RM*:SINIX-*:*:*) GUESS=mips-sni-sysv4 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` GUESS=$UNAME_MACHINE-sni-sysv4 else GUESS=ns32k-sni-sysv fi ;; PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort # says <Richard.M.Bartel@ccMail.Census.GOV> GUESS=i586-unisys-sysv4 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes <hewes@openmarket.com>. # How about differentiating between stratus architectures? -djm GUESS=hppa1.1-stratus-sysv4 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. GUESS=i860-stratus-sysv4 ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. GUESS=$UNAME_MACHINE-stratus-vos ;; *:VOS:*:*) # From Paul.Green@stratus.com. GUESS=hppa1.1-stratus-vos ;; mc68*:A/UX:*:*) GUESS=m68k-apple-aux$UNAME_RELEASE ;; news*:NEWS-OS:6*:*) GUESS=mips-sony-newsos6 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if test -d /usr/nec; then GUESS=mips-nec-sysv$UNAME_RELEASE else GUESS=mips-unknown-sysv$UNAME_RELEASE fi ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. GUESS=powerpc-be-beos ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. GUESS=powerpc-apple-beos ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. GUESS=i586-pc-beos ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. GUESS=i586-pc-haiku ;; ppc:Haiku:*:*) # Haiku running on Apple PowerPC GUESS=powerpc-apple-haiku ;; *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) GUESS=$UNAME_MACHINE-unknown-haiku ;; SX-4:SUPER-UX:*:*) GUESS=sx4-nec-superux$UNAME_RELEASE ;; SX-5:SUPER-UX:*:*) GUESS=sx5-nec-superux$UNAME_RELEASE ;; SX-6:SUPER-UX:*:*) GUESS=sx6-nec-superux$UNAME_RELEASE ;; SX-7:SUPER-UX:*:*) GUESS=sx7-nec-superux$UNAME_RELEASE ;; SX-8:SUPER-UX:*:*) GUESS=sx8-nec-superux$UNAME_RELEASE ;; SX-8R:SUPER-UX:*:*) GUESS=sx8r-nec-superux$UNAME_RELEASE ;; SX-ACE:SUPER-UX:*:*) GUESS=sxace-nec-superux$UNAME_RELEASE ;; Power*:Rhapsody:*:*) GUESS=powerpc-apple-rhapsody$UNAME_RELEASE ;; *:Rhapsody:*:*) GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE ;; arm64:Darwin:*:*) GUESS=aarch64-apple-darwin$UNAME_RELEASE ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac if command -v xcode-select > /dev/null 2> /dev/null && \ ! xcode-select --print-path > /dev/null 2> /dev/null ; then # Avoid executing cc if there is no toolchain installed as # cc will be a stub that puts up a graphical alert # prompting the user to install developer tools. CC_FOR_BUILD=no_compiler_found else set_cc_for_build fi if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi elif test "$UNAME_PROCESSOR" = i386 ; then # uname -m returns i386 or x86_64 UNAME_PROCESSOR=$UNAME_MACHINE fi GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE ;; *:QNX:*:4*) GUESS=i386-pc-qnx ;; NEO-*:NONSTOP_KERNEL:*:*) GUESS=neo-tandem-nsk$UNAME_RELEASE ;; NSE-*:NONSTOP_KERNEL:*:*) GUESS=nse-tandem-nsk$UNAME_RELEASE ;; NSR-*:NONSTOP_KERNEL:*:*) GUESS=nsr-tandem-nsk$UNAME_RELEASE ;; NSV-*:NONSTOP_KERNEL:*:*) GUESS=nsv-tandem-nsk$UNAME_RELEASE ;; NSX-*:NONSTOP_KERNEL:*:*) GUESS=nsx-tandem-nsk$UNAME_RELEASE ;; *:NonStop-UX:*:*) GUESS=mips-compaq-nonstopux ;; BS2000:POSIX*:*:*) GUESS=bs2000-siemens-sysv ;; DS/*:UNIX_System_V:*:*) GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "${cputype-}" = 386; then UNAME_MACHINE=i386 elif test "x${cputype-}" != x; then UNAME_MACHINE=$cputype fi GUESS=$UNAME_MACHINE-unknown-plan9 ;; *:TOPS-10:*:*) GUESS=pdp10-unknown-tops10 ;; *:TENEX:*:*) GUESS=pdp10-unknown-tenex ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) GUESS=pdp10-dec-tops20 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) GUESS=pdp10-xkl-tops20 ;; *:TOPS-20:*:*) GUESS=pdp10-unknown-tops20 ;; *:ITS:*:*) GUESS=pdp10-unknown-its ;; SEI:*:*:SEIUX) GUESS=mips-sei-seiux$UNAME_RELEASE ;; *:DragonFly:*:*) DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case $UNAME_MACHINE in A*) GUESS=alpha-dec-vms ;; I*) GUESS=ia64-dec-vms ;; V*) GUESS=vax-dec-vms ;; esac ;; *:XENIX:*:SysV) GUESS=i386-pc-xenix ;; i*86:skyos:*:*) SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL ;; i*86:rdos:*:*) GUESS=$UNAME_MACHINE-pc-rdos ;; i*86:Fiwix:*:*) GUESS=$UNAME_MACHINE-pc-fiwix ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; x86_64:VMkernel:*:*) GUESS=$UNAME_MACHINE-unknown-esx ;; amd64:Isilon\ OneFS:*:*) GUESS=x86_64-unknown-onefs ;; *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; *:Ironclad:*:*) GUESS=$UNAME_MACHINE-unknown-ironclad ;; esac # Do we have a guess based on uname results? if test "x$GUESS" != x; then echo "$GUESS" exit fi # No uname command or uname output not recognized. set_cc_for_build cat > "$dummy.c" <<EOF #ifdef _SEQUENT_ #include <sys/types.h> #include <sys/utsname.h> #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #include <signal.h> #if defined(_SIZE_T_) || defined(SIGLOST) #include <sys/utsname.h> #endif #endif #endif int main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include <sys/param.h> printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) #if !defined (ultrix) #include <sys/param.h> #if defined (BSD) #if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); #else #if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); #else printf ("vax-dec-bsd\n"); exit (0); #endif #endif #else printf ("vax-dec-bsd\n"); exit (0); #endif #else #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname un; uname (&un); printf ("vax-dec-ultrix%s\n", un.release); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname *un; uname (&un); printf ("mips-dec-ultrix%s\n", un.release); exit (0); #else printf ("mips-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; } echo "$0: unable to guess system type" >&2 case $UNAME_MACHINE:$UNAME_SYSTEM in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <<EOF NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize the system type. Please install a C compiler and try again. EOF ;; esac cat >&2 <<EOF This script (version $timestamp), has failed to recognize the operating system you are using. If your script is old, overwrite *all* copies of config.guess and config.sub with the latest versions from: https://git.savannah.gnu.org/cgit/config.git/plain/config.guess and https://git.savannah.gnu.org/cgit/config.git/plain/config.sub EOF our_year=`echo $timestamp | sed 's,-.*,,'` thisyear=`date +%Y` # shellcheck disable=SC2003 script_age=`expr "$thisyear" - "$our_year"` if test "$script_age" -lt 3 ; then cat >&2 <<EOF If $0 has already been updated, send the following data and any information you think might be pertinent to config-patches@gnu.org to provide the necessary information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = "$UNAME_MACHINE" UNAME_RELEASE = "$UNAME_RELEASE" UNAME_SYSTEM = "$UNAME_SYSTEM" UNAME_VERSION = "$UNAME_VERSION" EOF fi exit 1 # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: config/config.sub
New file @@ -0,0 +1,2354 @@ #! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2024 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale timestamp='2024-05-27' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see <https://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to <config-patches@gnu.org>. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to <config-patches@gnu.org>." version="\ GNU config.sub ($timestamp) Copyright 1992-2024 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try '$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; *local*) # First pass through any local machine types. echo "$1" exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Split fields of configuration type saved_IFS=$IFS IFS="-" read field1 field2 field3 field4 <<EOF $1 EOF IFS=$saved_IFS # Separate into logical components for further validation case $1 in *-*-*-*-*) echo "Invalid configuration '$1': more than four components" >&2 exit 1 ;; *-*-*-*) basic_machine=$field1-$field2 basic_os=$field3-$field4 ;; *-*-*) # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two # parts maybe_os=$field2-$field3 case $maybe_os in cloudabi*-eabi* \ | kfreebsd*-gnu* \ | knetbsd*-gnu* \ | kopensolaris*-gnu* \ | linux-* \ | managarm-* \ | netbsd*-eabi* \ | netbsd*-gnu* \ | nto-qnx* \ | os2-emx* \ | rtmk-nova* \ | storm-chaos* \ | uclinux-gnu* \ | uclinux-uclibc* \ | windows-* ) basic_machine=$field1 basic_os=$maybe_os ;; android-linux) basic_machine=$field1-unknown basic_os=linux-android ;; *) basic_machine=$field1-$field2 basic_os=$field3 ;; esac ;; *-*) case $field1-$field2 in # Shorthands that happen to contain a single dash convex-c[12] | convex-c3[248]) basic_machine=$field2-convex basic_os= ;; decstation-3100) basic_machine=mips-dec basic_os= ;; *-*) # Second component is usually, but not always the OS case $field2 in # Do not treat sunos as a manufacturer sun*os*) basic_machine=$field1 basic_os=$field2 ;; # Manufacturers 3100* \ | 32* \ | 3300* \ | 3600* \ | 7300* \ | acorn \ | altos* \ | apollo \ | apple \ | atari \ | att* \ | axis \ | be \ | bull \ | cbm \ | ccur \ | cisco \ | commodore \ | convergent* \ | convex* \ | cray \ | crds \ | dec* \ | delta* \ | dg \ | digital \ | dolphin \ | encore* \ | gould \ | harris \ | highlevel \ | hitachi* \ | hp \ | ibm* \ | intergraph \ | isi* \ | knuth \ | masscomp \ | microblaze* \ | mips* \ | motorola* \ | ncr* \ | news \ | next \ | ns \ | oki \ | omron* \ | pc533* \ | rebel \ | rom68k \ | rombug \ | semi \ | sequent* \ | siemens \ | sgi* \ | siemens \ | sim \ | sni \ | sony* \ | stratus \ | sun \ | sun[234]* \ | tektronix \ | tti* \ | ultra \ | unicom* \ | wec \ | winbond \ | wrs) basic_machine=$field1-$field2 basic_os= ;; zephyr*) basic_machine=$field1-unknown basic_os=$field2 ;; *) basic_machine=$field1 basic_os=$field2 ;; esac ;; esac ;; *) # Convert single-component short-hands not valid as part of # multi-component configurations. case $field1 in 386bsd) basic_machine=i386-pc basic_os=bsd ;; a29khif) basic_machine=a29k-amd basic_os=udi ;; adobe68k) basic_machine=m68010-adobe basic_os=scout ;; alliant) basic_machine=fx80-alliant basic_os= ;; altos | altos3068) basic_machine=m68k-altos basic_os= ;; am29k) basic_machine=a29k-none basic_os=bsd ;; amdahl) basic_machine=580-amdahl basic_os=sysv ;; amiga) basic_machine=m68k-unknown basic_os= ;; amigaos | amigados) basic_machine=m68k-unknown basic_os=amigaos ;; amigaunix | amix) basic_machine=m68k-unknown basic_os=sysv4 ;; apollo68) basic_machine=m68k-apollo basic_os=sysv ;; apollo68bsd) basic_machine=m68k-apollo basic_os=bsd ;; aros) basic_machine=i386-pc basic_os=aros ;; aux) basic_machine=m68k-apple basic_os=aux ;; balance) basic_machine=ns32k-sequent basic_os=dynix ;; blackfin) basic_machine=bfin-unknown basic_os=linux ;; cegcc) basic_machine=arm-unknown basic_os=cegcc ;; cray) basic_machine=j90-cray basic_os=unicos ;; crds | unos) basic_machine=m68k-crds basic_os= ;; da30) basic_machine=m68k-da30 basic_os= ;; decstation | pmax | pmin | dec3100 | decstatn) basic_machine=mips-dec basic_os= ;; delta88) basic_machine=m88k-motorola basic_os=sysv3 ;; dicos) basic_machine=i686-pc basic_os=dicos ;; djgpp) basic_machine=i586-pc basic_os=msdosdjgpp ;; ebmon29k) basic_machine=a29k-amd basic_os=ebmon ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson basic_os=ose ;; gmicro) basic_machine=tron-gmicro basic_os=sysv ;; go32) basic_machine=i386-pc basic_os=go32 ;; h8300hms) basic_machine=h8300-hitachi basic_os=hms ;; h8300xray) basic_machine=h8300-hitachi basic_os=xray ;; h8500hms) basic_machine=h8500-hitachi basic_os=hms ;; harris) basic_machine=m88k-harris basic_os=sysv3 ;; hp300 | hp300hpux) basic_machine=m68k-hp basic_os=hpux ;; hp300bsd) basic_machine=m68k-hp basic_os=bsd ;; hppaosf) basic_machine=hppa1.1-hp basic_os=osf ;; hppro) basic_machine=hppa1.1-hp basic_os=proelf ;; i386mach) basic_machine=i386-mach basic_os=mach ;; isi68 | isi) basic_machine=m68k-isi basic_os=sysv ;; m68knommu) basic_machine=m68k-unknown basic_os=linux ;; magnum | m3230) basic_machine=mips-mips basic_os=sysv ;; merlin) basic_machine=ns32k-utek basic_os=sysv ;; mingw64) basic_machine=x86_64-pc basic_os=mingw64 ;; mingw32) basic_machine=i686-pc basic_os=mingw32 ;; mingw32ce) basic_machine=arm-unknown basic_os=mingw32ce ;; monitor) basic_machine=m68k-rom68k basic_os=coff ;; morphos) basic_machine=powerpc-unknown basic_os=morphos ;; moxiebox) basic_machine=moxie-unknown basic_os=moxiebox ;; msdos) basic_machine=i386-pc basic_os=msdos ;; msys) basic_machine=i686-pc basic_os=msys ;; mvs) basic_machine=i370-ibm basic_os=mvs ;; nacl) basic_machine=le32-unknown basic_os=nacl ;; ncr3000) basic_machine=i486-ncr basic_os=sysv4 ;; netbsd386) basic_machine=i386-pc basic_os=netbsd ;; netwinder) basic_machine=armv4l-rebel basic_os=linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony basic_os=newsos ;; news1000) basic_machine=m68030-sony basic_os=newsos ;; necv70) basic_machine=v70-nec basic_os=sysv ;; nh3000) basic_machine=m68k-harris basic_os=cxux ;; nh[45]000) basic_machine=m88k-harris basic_os=cxux ;; nindy960) basic_machine=i960-intel basic_os=nindy ;; mon960) basic_machine=i960-intel basic_os=mon960 ;; nonstopux) basic_machine=mips-compaq basic_os=nonstopux ;; os400) basic_machine=powerpc-ibm basic_os=os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson basic_os=ose ;; os68k) basic_machine=m68k-none basic_os=os68k ;; paragon) basic_machine=i860-intel basic_os=osf ;; parisc) basic_machine=hppa-unknown basic_os=linux ;; psp) basic_machine=mipsallegrexel-sony basic_os=psp ;; pw32) basic_machine=i586-unknown basic_os=pw32 ;; rdos | rdos64) basic_machine=x86_64-pc basic_os=rdos ;; rdos32) basic_machine=i386-pc basic_os=rdos ;; rom68k) basic_machine=m68k-rom68k basic_os=coff ;; sa29200) basic_machine=a29k-amd basic_os=udi ;; sei) basic_machine=mips-sei basic_os=seiux ;; sequent) basic_machine=i386-sequent basic_os= ;; sps7) basic_machine=m68k-bull basic_os=sysv2 ;; st2000) basic_machine=m68k-tandem basic_os= ;; stratus) basic_machine=i860-stratus basic_os=sysv4 ;; sun2) basic_machine=m68000-sun basic_os= ;; sun2os3) basic_machine=m68000-sun basic_os=sunos3 ;; sun2os4) basic_machine=m68000-sun basic_os=sunos4 ;; sun3) basic_machine=m68k-sun basic_os= ;; sun3os3) basic_machine=m68k-sun basic_os=sunos3 ;; sun3os4) basic_machine=m68k-sun basic_os=sunos4 ;; sun4) basic_machine=sparc-sun basic_os= ;; sun4os3) basic_machine=sparc-sun basic_os=sunos3 ;; sun4os4) basic_machine=sparc-sun basic_os=sunos4 ;; sun4sol2) basic_machine=sparc-sun basic_os=solaris2 ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun basic_os= ;; sv1) basic_machine=sv1-cray basic_os=unicos ;; symmetry) basic_machine=i386-sequent basic_os=dynix ;; t3e) basic_machine=alphaev5-cray basic_os=unicos ;; t90) basic_machine=t90-cray basic_os=unicos ;; toad1) basic_machine=pdp10-xkl basic_os=tops20 ;; tpf) basic_machine=s390x-ibm basic_os=tpf ;; udi29k) basic_machine=a29k-amd basic_os=udi ;; ultra3) basic_machine=a29k-nyu basic_os=sym1 ;; v810 | necv810) basic_machine=v810-nec basic_os=none ;; vaxv) basic_machine=vax-dec basic_os=sysv ;; vms) basic_machine=vax-dec basic_os=vms ;; vsta) basic_machine=i386-pc basic_os=vsta ;; vxworks960) basic_machine=i960-wrs basic_os=vxworks ;; vxworks68) basic_machine=m68k-wrs basic_os=vxworks ;; vxworks29k) basic_machine=a29k-wrs basic_os=vxworks ;; xbox) basic_machine=i686-pc basic_os=mingw32 ;; ymp) basic_machine=ymp-cray basic_os=unicos ;; *) basic_machine=$1 basic_os= ;; esac ;; esac # Decode 1-component or ad-hoc basic machines case $basic_machine in # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) cpu=hppa1.1 vendor=winbond ;; op50n) cpu=hppa1.1 vendor=oki ;; op60c) cpu=hppa1.1 vendor=oki ;; ibm*) cpu=i370 vendor=ibm ;; orion105) cpu=clipper vendor=highlevel ;; mac | mpw | mac-mpw) cpu=m68k vendor=apple ;; pmac | pmac-mpw) cpu=powerpc vendor=apple ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) cpu=m68000 vendor=att ;; 3b*) cpu=we32k vendor=att ;; bluegene*) cpu=powerpc vendor=ibm basic_os=cnk ;; decsystem10* | dec10*) cpu=pdp10 vendor=dec basic_os=tops10 ;; decsystem20* | dec20*) cpu=pdp10 vendor=dec basic_os=tops20 ;; delta | 3300 | delta-motorola | 3300-motorola | motorola-delta | motorola-3300) cpu=m68k vendor=motorola ;; # This used to be dpx2*, but that gets the RS6000-based # DPX/20 and the x86-based DPX/2-100 wrong. See # https://oldskool.silicium.org/stations/bull_dpx20.htm # https://www.feb-patrimoine.com/english/bull_dpx2.htm # https://www.feb-patrimoine.com/english/unix_and_bull.htm dpx2 | dpx2[23]00 | dpx2[23]xx) cpu=m68k vendor=bull ;; dpx2100 | dpx21xx) cpu=i386 vendor=bull ;; dpx20) cpu=rs6000 vendor=bull ;; encore | umax | mmax) cpu=ns32k vendor=encore ;; elxsi) cpu=elxsi vendor=elxsi basic_os=${basic_os:-bsd} ;; fx2800) cpu=i860 vendor=alliant ;; genix) cpu=ns32k vendor=ns ;; h3050r* | hiux*) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) cpu=m68000 vendor=hp ;; hp9k3[2-9][0-9]) cpu=m68k vendor=hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) cpu=hppa1.1 vendor=hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; i*86v32) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv32 ;; i*86v4*) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv4 ;; i*86v) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv ;; i*86sol2) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=solaris2 ;; j90 | j90-cray) cpu=j90 vendor=cray basic_os=${basic_os:-unicos} ;; iris | iris4d) cpu=mips vendor=sgi case $basic_os in irix*) ;; *) basic_os=irix4 ;; esac ;; miniframe) cpu=m68000 vendor=convergent ;; *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) cpu=m68k vendor=atari basic_os=mint ;; news-3600 | risc-news) cpu=mips vendor=sony basic_os=newsos ;; next | m*-next) cpu=m68k vendor=next ;; np1) cpu=np1 vendor=gould ;; op50n-* | op60c-*) cpu=hppa1.1 vendor=oki basic_os=proelf ;; pa-hitachi) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; pbd) cpu=sparc vendor=tti ;; pbb) cpu=m68k vendor=tti ;; pc532) cpu=ns32k vendor=pc532 ;; pn) cpu=pn vendor=gould ;; power) cpu=power vendor=ibm ;; ps2) cpu=i386 vendor=ibm ;; rm[46]00) cpu=mips vendor=siemens ;; rtpc | rtpc-*) cpu=romp vendor=ibm ;; sde) cpu=mipsisa32 vendor=sde basic_os=${basic_os:-elf} ;; simso-wrs) cpu=sparclite vendor=wrs basic_os=vxworks ;; tower | tower-32) cpu=m68k vendor=ncr ;; vpp*|vx|vx-*) cpu=f301 vendor=fujitsu ;; w65) cpu=w65 vendor=wdc ;; w89k-*) cpu=hppa1.1 vendor=winbond basic_os=proelf ;; none) cpu=none vendor=none ;; leon|leon[3-9]) cpu=sparc vendor=$basic_machine ;; leon-*|leon[3-9]-*) cpu=sparc vendor=`echo "$basic_machine" | sed 's/-.*//'` ;; *-*) saved_IFS=$IFS IFS="-" read cpu vendor <<EOF $basic_machine EOF IFS=$saved_IFS ;; # We use 'pc' rather than 'unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) cpu=$basic_machine vendor=pc ;; # These rules are duplicated from below for sake of the special case above; # i.e. things that normalized to x86 arches should also default to "pc" pc98) cpu=i386 vendor=pc ;; x64 | amd64) cpu=x86_64 vendor=pc ;; # Recognize the basic CPU types without company name. *) cpu=$basic_machine vendor=unknown ;; esac unset -v basic_machine # Decode basic machines in the full and proper CPU-Company form. case $cpu-$vendor in # Here we handle the default manufacturer of certain CPU types in canonical form. # It is in some cases the only manufacturer, in others, it is the most popular. c[12]-convex | c[12]-unknown | c3[248]-convex | c3[248]-unknown) vendor=convex basic_os=${basic_os:-bsd} ;; craynv-unknown) vendor=cray basic_os=${basic_os:-unicosmp} ;; c90-unknown | c90-cray) vendor=cray basic_os=${basic_os:-unicos} ;; fx80-unknown) vendor=alliant ;; romp-unknown) vendor=ibm ;; mmix-unknown) vendor=knuth ;; microblaze-unknown | microblazeel-unknown) vendor=xilinx ;; rs6000-unknown) vendor=ibm ;; vax-unknown) vendor=dec ;; pdp11-unknown) vendor=dec ;; we32k-unknown) vendor=att ;; cydra-unknown) vendor=cydrome ;; i370-ibm*) vendor=ibm ;; orion-unknown) vendor=highlevel ;; xps-unknown | xps100-unknown) cpu=xps100 vendor=honeywell ;; # Here we normalize CPU types with a missing or matching vendor armh-unknown | armh-alt) cpu=armv7l vendor=alt basic_os=${basic_os:-linux-gnueabihf} ;; # Normalized CPU+vendor pairs that imply an OS, if not otherwise specified m68k-isi) basic_os=${basic_os:-sysv} ;; m68k-sony) basic_os=${basic_os:-newsos} ;; m68k-tektronix) basic_os=${basic_os:-bsd} ;; m88k-harris) basic_os=${basic_os:-sysv3} ;; i386-bull | m68k-bull) basic_os=${basic_os:-sysv3} ;; rs6000-bull) basic_os=${basic_os:-bosx} ;; mips-sni) basic_os=${basic_os:-sysv4} ;; # Here we normalize CPU types irrespective of the vendor amd64-*) cpu=x86_64 ;; blackfin-*) cpu=bfin basic_os=${basic_os:-linux} ;; c54x-*) cpu=tic54x ;; c55x-*) cpu=tic55x ;; c6x-*) cpu=tic6x ;; e500v[12]-*) cpu=powerpc basic_os=${basic_os}"spe" ;; mips3*-*) cpu=mips64 ;; ms1-*) cpu=mt ;; m68knommu-*) cpu=m68k basic_os=${basic_os:-linux} ;; m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) cpu=s12z ;; openrisc-*) cpu=or32 ;; parisc-*) cpu=hppa basic_os=${basic_os:-linux} ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) cpu=i586 ;; pentiumpro-* | p6-* | 6x86-* | athlon-* | athlon_*-*) cpu=i686 ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) cpu=i686 ;; pentium4-*) cpu=i786 ;; ppc-* | ppcbe-*) cpu=powerpc ;; ppcle-* | powerpclittle-*) cpu=powerpcle ;; ppc64-*) cpu=powerpc64 ;; ppc64le-* | powerpc64little-*) cpu=powerpc64le ;; sb1-*) cpu=mipsisa64sb1 ;; sb1el-*) cpu=mipsisa64sb1el ;; sh5e[lb]-*) cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'` ;; spur-*) cpu=spur ;; strongarm-* | thumb-*) cpu=arm ;; tx39-*) cpu=mipstx39 ;; tx39el-*) cpu=mipstx39el ;; xscale-* | xscalee[bl]-*) cpu=`echo "$cpu" | sed 's/^xscale/arm/'` ;; arm64-* | aarch64le-*) cpu=aarch64 ;; # Recognize the canonical CPU Types that limit and/or modify the # company names they are paired with. cr16-*) basic_os=${basic_os:-elf} ;; crisv32-* | etraxfs*-*) cpu=crisv32 vendor=axis ;; cris-* | etrax*-*) cpu=cris vendor=axis ;; crx-*) basic_os=${basic_os:-elf} ;; neo-tandem) cpu=neo vendor=tandem ;; nse-tandem) cpu=nse vendor=tandem ;; nsr-tandem) cpu=nsr vendor=tandem ;; nsv-tandem) cpu=nsv vendor=tandem ;; nsx-tandem) cpu=nsx vendor=tandem ;; mipsallegrexel-sony) cpu=mipsallegrexel vendor=sony ;; tile*-*) basic_os=${basic_os:-linux-gnu} ;; *) # Recognize the canonical CPU types that are allowed with any # company name. case $cpu in 1750a \ | 580 \ | [cjt]90 \ | a29k \ | aarch64 \ | aarch64_be \ | aarch64c \ | abacus \ | alpha \ | alpha64 \ | alpha64ev56 \ | alpha64ev6[78] \ | alpha64ev[4-8] \ | alpha64pca5[67] \ | alphaev56 \ | alphaev6[78] \ | alphaev[4-8] \ | alphapca5[67] \ | am33_2.0 \ | amdgcn \ | arc \ | arc32 \ | arc64 \ | arceb \ | arm \ | arm64e \ | arm64ec \ | arm[lb]e \ | arme[lb] \ | armv* \ | asmjs \ | avr \ | avr32 \ | ba \ | be32 \ | be64 \ | bfin \ | bpf \ | bs2000 \ | c30 \ | c4x \ | c8051 \ | c[123]* \ | clipper \ | craynv \ | csky \ | cydra \ | d10v \ | d30v \ | dlx \ | dsp16xx \ | e2k \ | elxsi \ | epiphany \ | f30[01] \ | f700 \ | fido \ | fr30 \ | frv \ | ft32 \ | fx80 \ | h8300 \ | h8500 \ | hexagon \ | hppa \ | hppa1.[01] \ | hppa2.0 \ | hppa2.0[nw] \ | hppa64 \ | i*86 \ | i370 \ | i860 \ | i960 \ | ia16 \ | ia64 \ | ip2k \ | iq2000 \ | javascript \ | k1om \ | kvx \ | le32 \ | le64 \ | lm32 \ | loongarch32 \ | loongarch64 \ | m32c \ | m32r \ | m32rle \ | m5200 \ | m68000 \ | m680[012346]0 \ | m6811 \ | m6812 \ | m68360 \ | m683?2 \ | m68hc11 \ | m68hc12 \ | m68hcs12x \ | m68k \ | m88110 \ | m88k \ | maxq \ | mb \ | mcore \ | mep \ | metag \ | microblaze \ | microblazeel \ | mips* \ | mmix \ | mn10200 \ | mn10300 \ | moxie \ | msp430 \ | mt \ | nanomips* \ | nds32 \ | nds32be \ | nds32le \ | nfp \ | nios \ | nios2 \ | nios2eb \ | nios2el \ | none \ | np1 \ | ns16k \ | ns32k \ | nvptx \ | open8 \ | or1k* \ | or32 \ | orion \ | pdp10 \ | pdp11 \ | picochip \ | pj \ | pjl \ | pn \ | power \ | powerpc \ | powerpc64 \ | powerpc64le \ | powerpcle \ | powerpcspe \ | pru \ | pyramid \ | riscv \ | riscv32 \ | riscv32be \ | riscv64 \ | riscv64be \ | rl78 \ | romp \ | rs6000 \ | rx \ | s390 \ | s390x \ | score \ | sh \ | sh64 \ | sh64le \ | sh[12345][lb]e \ | sh[1234] \ | sh[1234]e[lb] \ | sh[23]e \ | sh[23]ele \ | sh[24]a \ | sh[24]ae[lb] \ | sh[lb]e \ | she[lb] \ | shl \ | sparc \ | sparc64 \ | sparc64b \ | sparc64v \ | sparc86x \ | sparclet \ | sparclite \ | sparcv8 \ | sparcv9 \ | sparcv9b \ | sparcv9v \ | spu \ | sv1 \ | sx* \ | tahoe \ | thumbv7* \ | tic30 \ | tic4x \ | tic54x \ | tic55x \ | tic6x \ | tic80 \ | tron \ | ubicom32 \ | v70 \ | v810 \ | v850 \ | v850e \ | v850e1 \ | v850e2 \ | v850e2v3 \ | v850es \ | vax \ | vc4 \ | visium \ | w65 \ | wasm32 \ | wasm64 \ | we32k \ | x86 \ | x86_64 \ | xc16x \ | xgate \ | xps100 \ | xstormy16 \ | xtensa* \ | ymp \ | z80 \ | z8k) ;; *) echo "Invalid configuration '$1': machine '$cpu-$vendor' not recognized" 1>&2 exit 1 ;; esac ;; esac # Here we canonicalize certain aliases for manufacturers. case $vendor in digital*) vendor=dec ;; commodore*) vendor=cbm ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if test x"$basic_os" != x then # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just # set os. obj= case $basic_os in gnu/linux*) kernel=linux os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` ;; os2-emx) kernel=os2 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` ;; nto-qnx*) kernel=nto os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` ;; *-*) saved_IFS=$IFS IFS="-" read kernel os <<EOF $basic_os EOF IFS=$saved_IFS ;; # Default OS when just kernel was specified nto*) kernel=nto os=`echo "$basic_os" | sed -e 's|nto|qnx|'` ;; linux*) kernel=linux os=`echo "$basic_os" | sed -e 's|linux|gnu|'` ;; managarm*) kernel=managarm os=`echo "$basic_os" | sed -e 's|managarm|mlibc|'` ;; *) kernel= os=$basic_os ;; esac # Now, normalize the OS (knowing we just have one component, it's not a kernel, # etc.) case $os in # First match some system type aliases that might get confused # with valid system types. # solaris* is a basic system type, with this one exception. auroraux) os=auroraux ;; bluegene*) os=cnk ;; solaris1 | solaris1.*) os=`echo "$os" | sed -e 's|solaris1|sunos4|'` ;; solaris) os=solaris2 ;; unixware*) os=sysv4.2uw ;; # The marketing names for NeXT's operating systems were # NeXTSTEP, NeXTSTEP 2, OpenSTEP 3, OpenSTEP 4. 'openstep' is # mapped to 'openstep3', but 'openstep1' and 'openstep2' are # mapped to 'nextstep' and 'nextstep2', consistent with the # treatment of SunOS/Solaris. ns | ns1 | nextstep | nextstep1 | openstep1) os=nextstep ;; ns2 | nextstep2 | openstep2) os=nextstep2 ;; ns3 | nextstep3 | openstep | openstep3) os=openstep3 ;; ns4 | nextstep4 | openstep4) os=openstep4 ;; # es1800 is here to avoid being matched by es* (a different OS) es1800*) os=ose ;; # Some version numbers need modification chorusos*) os=chorusos ;; isc) os=isc2.2 ;; sco6) os=sco5v6 ;; sco5) os=sco3.2v5 ;; sco4) os=sco3.2v4 ;; sco3.2.[4-9]*) os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'` ;; sco*v* | scout) # Don't match below ;; sco*) os=sco3.2v2 ;; psos*) os=psos ;; qnx*) os=qnx ;; hiux*) os=hiuxwe2 ;; lynx*178) os=lynxos178 ;; lynx*5) os=lynxos5 ;; lynxos*) # don't get caught up in next wildcard ;; lynx*) os=lynxos ;; mac[0-9]*) os=`echo "$os" | sed -e 's|mac|macos|'` ;; opened*) os=openedition ;; os400*) os=os400 ;; sunos5*) os=`echo "$os" | sed -e 's|sunos5|solaris2|'` ;; sunos6*) os=`echo "$os" | sed -e 's|sunos6|solaris3|'` ;; wince*) os=wince ;; utek*) os=bsd vendor=`echo "$vendor" | sed -e 's|^unknown$|tektronix|'` ;; dynix*) os=bsd ;; acis*) os=aos ;; atheos*) os=atheos ;; syllable*) os=syllable ;; 386bsd) os=bsd ;; ctix*) os=sysv vendor=`echo "$vendor" | sed -e 's|^unknown$|convergent|'` ;; uts*) os=sysv ;; nova*) kernel=rtmk os=nova ;; # Preserve the version number of sinix5. sinix5.*) os=`echo "$os" | sed -e 's|sinix|sysv|'` vendor=`echo "$vendor" | sed -e 's|^unknown$|sni|'` ;; sinix*) os=sysv4 vendor=`echo "$vendor" | sed -e 's|^unknown$|sni|'` ;; tpf*) os=tpf ;; triton*) os=sysv3 ;; oss*) os=sysv3 ;; svr4*) os=sysv4 ;; svr3) os=sysv3 ;; sysvr4) os=sysv4 ;; ose*) os=ose ;; *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) os=mint ;; dicos*) os=dicos ;; pikeos*) # Until real need of OS specific support for # particular features comes up, bare metal # configurations are quite functional. case $cpu in arm*) os=eabi ;; *) os= obj=elf ;; esac ;; aout* | coff* | elf* | pe*) # These are machine code file formats, not OSes obj=$os os= ;; *) # No normalization, but not necessarily accepted, that comes below. ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. kernel= obj= case $cpu-$vendor in score-*) os= obj=elf ;; spu-*) os= obj=elf ;; *-acorn) os=riscix1.2 ;; arm*-rebel) kernel=linux os=gnu ;; arm*-semi) os= obj=aout ;; c4x-* | tic4x-*) os= obj=coff ;; c8051-*) os= obj=elf ;; clipper-intergraph) os=clix ;; hexagon-*) os= obj=elf ;; tic54x-*) os= obj=coff ;; tic55x-*) os= obj=coff ;; tic6x-*) os= obj=coff ;; # This must come before the *-dec entry. pdp10-*) os=tops20 ;; pdp11-*) os=none ;; *-dec | vax-*) os=ultrix4.2 ;; m68*-apollo) os=domain ;; i386-sun) os=sunos4.0.2 ;; m68000-sun) os=sunos3 ;; m68*-cisco) os= obj=aout ;; mep-*) os= obj=elf ;; # The -sgi and -siemens entries must be before the mips- entry # or we get the wrong os. *-sgi) os=irix ;; *-siemens) os=sysv4 ;; mips*-cisco) os= obj=elf ;; mips*-*|nanomips*-*) os= obj=elf ;; or32-*) os= obj=coff ;; # This must be before the sparc-* entry or we get the wrong os. *-tti) os=sysv3 ;; sparc-* | *-sun) os=sunos4.1.1 ;; pru-*) os= obj=elf ;; *-be) os=beos ;; *-ibm) os=aix ;; *-knuth) os=mmixware ;; *-wec) os=proelf ;; *-winbond) os=proelf ;; *-oki) os=proelf ;; *-hp) os=hpux ;; *-hitachi) os=hiuxwe2 ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=sysv ;; *-cbm) os=amigaos ;; *-dg) os=dgux ;; *-dolphin) os=sysv3 ;; m68k-ccur) os=rtu ;; m88k-omron*) os=luna ;; *-next) os=nextstep ;; *-sequent) os=ptx ;; *-crds) os=unos ;; *-ns) os=genix ;; i370-*) os=mvs ;; *-gould) os=sysv ;; *-highlevel) os=bsd ;; *-encore) os=bsd ;; *-masscomp) os=rtu ;; f30[01]-fujitsu | f700-fujitsu) os=uxpv ;; *-rom68k) os= obj=coff ;; *-*bug) os= obj=coff ;; *-apple) os=macos ;; *-atari*) os=mint ;; *-wrs) os=vxworks ;; *) os=none ;; esac fi # Now, validate our (potentially fixed-up) individual pieces (OS, OBJ). case $os in # Sometimes we do "kernel-libc", so those need to count as OSes. llvm* | musl* | newlib* | relibc* | uclibc*) ;; # Likewise for "kernel-abi" eabi* | gnueabi*) ;; # VxWorks passes extra cpu info in the 4th filed. simlinux | simwindows | spe) ;; # See `case $cpu-$os` validation below ghcjs) ;; # Now accept the basic system types. # Each alternative MUST end in a * to match a version number. abug \ | aix* \ | amdhsa* \ | amigados* \ | amigaos* \ | android* \ | aof* \ | aos* \ | aros* \ | atheos* \ | auroraux* \ | aux* \ | beos* \ | bitrig* \ | bme* \ | bosx* \ | bsd* \ | cegcc* \ | chorusos* \ | chorusrdb* \ | clix* \ | cloudabi* \ | cnk* \ | conix* \ | cos* \ | cxux* \ | cygwin* \ | darwin* \ | dgux* \ | dicos* \ | dnix* \ | domain* \ | dragonfly* \ | drops* \ | ebmon* \ | ecoff* \ | ekkobsd* \ | emscripten* \ | emx* \ | es* \ | fiwix* \ | freebsd* \ | fuchsia* \ | genix* \ | genode* \ | glidix* \ | gnu* \ | go32* \ | haiku* \ | hcos* \ | hiux* \ | hms* \ | hpux* \ | ieee* \ | interix* \ | ios* \ | iris* \ | irix* \ | ironclad* \ | isc* \ | its* \ | l4re* \ | libertybsd* \ | lites* \ | lnews* \ | luna* \ | lynxos* \ | mach* \ | macos* \ | magic* \ | mbr* \ | midipix* \ | midnightbsd* \ | mingw32* \ | mingw64* \ | minix* \ | mint* \ | mirbsd* \ | mks* \ | mlibc* \ | mmixware* \ | mon960* \ | morphos* \ | moss* \ | moxiebox* \ | mpeix* \ | mpw* \ | msdos* \ | msys* \ | mvs* \ | nacl* \ | netbsd* \ | netware* \ | newsos* \ | nextstep* \ | nindy* \ | nonstopux* \ | nova* \ | nsk* \ | nucleus* \ | nx6 \ | nx7 \ | oabi* \ | ohos* \ | onefs* \ | openbsd* \ | openedition* \ | openstep* \ | os108* \ | os2* \ | os400* \ | os68k* \ | os9* \ | ose* \ | osf* \ | oskit* \ | osx* \ | palmos* \ | phoenix* \ | plan9* \ | powermax* \ | powerunix* \ | proelf* \ | psos* \ | psp* \ | ptx* \ | pw32* \ | qnx* \ | rdos* \ | redox* \ | rhapsody* \ | riscix* \ | riscos* \ | rtems* \ | rtmk* \ | rtu* \ | scout* \ | secbsd* \ | sei* \ | serenity* \ | sim* \ | skyos* \ | solaris* \ | solidbsd* \ | sortix* \ | storm-chaos* \ | sunos \ | sunos[34]* \ | superux* \ | syllable* \ | sym* \ | sysv* \ | tenex* \ | tirtos* \ | toppers* \ | tops10* \ | tops20* \ | tpf* \ | tvos* \ | twizzler* \ | uclinux* \ | udi* \ | udk* \ | ultrix* \ | unicos* \ | uniplus* \ | unleashed* \ | unos* \ | uwin* \ | uxpv* \ | v88r* \ |*vms* \ | vos* \ | vsta* \ | vxsim* \ | vxworks* \ | wasi* \ | watchos* \ | wince* \ | windiss* \ | windows* \ | winnt* \ | xenix* \ | xray* \ | zephyr* \ | zvmoe* ) ;; # This one is extra strict with allowed versions sco3.2v2 | sco3.2v[4-9]* | sco5v6*) # Don't forget version if it is 3.2v4 or newer. ;; # This refers to builds using the UEFI calling convention # (which depends on the architecture) and PE file format. # Note that this is both a different calling convention and # different file format than that of GNU-EFI # (x86_64-w64-mingw32). uefi) ;; none) ;; kernel* | msvc* ) # Restricted further below ;; '') if test x"$obj" = x then echo "Invalid configuration '$1': Blank OS only allowed with explicit machine code file format" 1>&2 fi ;; *) echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2 exit 1 ;; esac case $obj in aout* | coff* | elf* | pe*) ;; '') # empty is fine ;; *) echo "Invalid configuration '$1': Machine code format '$obj' not recognized" 1>&2 exit 1 ;; esac # Here we handle the constraint that a (synthetic) cpu and os are # valid only in combination with each other and nowhere else. case $cpu-$os in # The "javascript-unknown-ghcjs" triple is used by GHC; we # accept it here in order to tolerate that, but reject any # variations. javascript-ghcjs) ;; javascript-* | *-ghcjs) echo "Invalid configuration '$1': cpu '$cpu' is not valid with os '$os$obj'" 1>&2 exit 1 ;; esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. case $kernel-$os-$obj in linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \ | linux-mlibc*- | linux-musl*- | linux-newlib*- \ | linux-relibc*- | linux-uclibc*- | linux-ohos*- ) ;; uclinux-uclibc*- | uclinux-gnu*- ) ;; managarm-mlibc*- | managarm-kernel*- ) ;; windows*-msvc*-) ;; -dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \ | -uclibc*- ) # These are just libc implementations, not actual OSes, and thus # require a kernel. echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 exit 1 ;; -kernel*- ) echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2 exit 1 ;; *-kernel*- ) echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2 exit 1 ;; *-msvc*- ) echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2 exit 1 ;; kfreebsd*-gnu*- | knetbsd*-gnu*- | netbsd*-gnu*- | kopensolaris*-gnu*-) ;; vxworks-simlinux- | vxworks-simwindows- | vxworks-spe-) ;; nto-qnx*-) ;; os2-emx-) ;; rtmk-nova-) ;; *-eabi*- | *-gnueabi*-) ;; none--*) # None (no kernel, i.e. freestanding / bare metal), # can be paired with an machine code file format ;; -*-) # Blank kernel with real OS is always fine. ;; --*) # Blank kernel and OS with real machine code file format is always fine. ;; *-*-*) echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2 exit 1 ;; esac # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. case $vendor in unknown) case $cpu-$os in *-riscix*) vendor=acorn ;; *-sunos* | *-solaris*) vendor=sun ;; *-cnk* | *-aix*) vendor=ibm ;; *-beos*) vendor=be ;; *-hpux*) vendor=hp ;; *-mpeix*) vendor=hp ;; *-hiux*) vendor=hitachi ;; *-unos*) vendor=crds ;; *-dgux*) vendor=dg ;; *-luna*) vendor=omron ;; *-genix*) vendor=ns ;; *-clix*) vendor=intergraph ;; *-mvs* | *-opened*) vendor=ibm ;; *-os400*) vendor=ibm ;; s390-* | s390x-*) vendor=ibm ;; *-ptx*) vendor=sequent ;; *-tpf*) vendor=ibm ;; *-vxsim* | *-vxworks* | *-windiss*) vendor=wrs ;; *-aux*) vendor=apple ;; *-hms*) vendor=hitachi ;; *-mpw* | *-macos*) vendor=apple ;; *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) vendor=atari ;; *-vos*) vendor=stratus ;; esac ;; esac echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" exit # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: config/general.m4
New file @@ -0,0 +1,149 @@ # config/general.m4 # This file defines new macros to process configure command line # arguments, to replace the brain-dead AC_ARG_WITH and AC_ARG_ENABLE. # The flaw in these is particularly that they only differentiate # between "given" and "not given" and do not provide enough help to # process arguments that only accept "yes/no", that require an # argument (other than "yes/no"), etc. # # The point of this implementation is to reduce code size and # redundancy in configure.ac and to improve robustness and consistency # in the option evaluation code. # Convert type and name to shell variable name (e.g., "enable_long_strings") m4_define([pgac_arg_to_variable], [$1[]_[]patsubst($2, -, _)]) # PGAC_ARG(TYPE, NAME, HELP-STRING-LHS-EXTRA, HELP-STRING-RHS, # [ACTION-IF-YES], [ACTION-IF-NO], [ACTION-IF-ARG], # [ACTION-IF-OMITTED]) # ------------------------------------------------------------ # This is the base layer. TYPE is either "with" or "enable", depending # on what you like. NAME is the rest of the option name. # HELP-STRING-LHS-EXTRA is a string to append to the option name on # the left-hand side of the help output, e.g., an argument name. If # set to "-", append nothing, but let the option appear in the # negative form (disable/without). HELP-STRING-RHS is the option # description, for the right-hand side of the help output. # ACTION-IF-YES is executed if the option is given without an argument # (or "yes", which is the same); similar for ACTION-IF-NO. AC_DEFUN([PGAC_ARG], [ m4_case([$1], enable, [ AC_ARG_ENABLE([$2], [AS_HELP_STRING([--]m4_if($3, -, disable, enable)[-$2]m4_if($3, -, , $3), [$4])], [ case [$]enableval in yes) m4_default([$5], :) ;; no) m4_default([$6], :) ;; *) $7 ;; esac ], [$8])[]dnl AC_ARG_ENABLE ], with, [ AC_ARG_WITH([$2], [AS_HELP_STRING([--]m4_if($3, -, without, with)[-$2]m4_if($3, -, , $3), [$4])], [ case [$]withval in yes) m4_default([$5], :) ;; no) m4_default([$6], :) ;; *) $7 ;; esac ], [$8])[]dnl AC_ARG_WITH ], [m4_fatal([first argument of $0 must be 'enable' or 'with', not '$1'])] ) ])# PGAC_ARG # PGAC_ARG_BOOL(TYPE, NAME, DEFAULT, HELP-STRING-RHS, # [ACTION-IF-YES], [ACTION-IF-NO]) # --------------------------------------------------- # Accept a boolean option, that is, one that only takes yes or no. # ("no" is equivalent to "disable" or "without"). DEFAULT is what # should be done if the option is omitted; it should be "yes" or "no". # (Consequently, one of ACTION-IF-YES and ACTION-IF-NO will always # execute.) AC_DEFUN([PGAC_ARG_BOOL], [dnl The following hack is necessary because in a few instances this dnl macro is called twice for the same option with different default dnl values. But we only want it to appear once in the help. We achieve dnl that by making the help string look the same, which is why we need to dnl save the default that was passed in previously. m4_define([_pgac_helpdefault], m4_ifdef([pgac_defined_$1_$2_bool], [m4_defn([pgac_defined_$1_$2_bool])], [$3]))dnl PGAC_ARG([$1], [$2], [m4_if(_pgac_helpdefault, yes, -)], [$4], [$5], [$6], [AC_MSG_ERROR([no argument expected for --$1-$2 option])], [m4_case([$3], yes, [pgac_arg_to_variable([$1], [$2])=yes $5], no, [pgac_arg_to_variable([$1], [$2])=no $6], [m4_fatal([third argument of $0 must be 'yes' or 'no', not '$3'])])])[]dnl m4_define([pgac_defined_$1_$2_bool], [$3])dnl ])# PGAC_ARG_BOOL # PGAC_ARG_REQ(TYPE, NAME, HELP-ARGNAME, HELP-STRING-RHS, # [ACTION-IF-GIVEN], [ACTION-IF-NOT-GIVEN]) # ------------------------------------------------------- # This option will require an argument; "yes" or "no" will not be # accepted. HELP-ARGNAME is a name for the argument for the help output. AC_DEFUN([PGAC_ARG_REQ], [PGAC_ARG([$1], [$2], [=$3], [$4], [AC_MSG_ERROR([argument required for --$1-$2 option])], [AC_MSG_ERROR([argument required for --$1-$2 option])], [$5], [$6])])# PGAC_ARG_REQ # PGAC_ARG_OPTARG(TYPE, NAME, HELP-ARGNAME, HELP-STRING-RHS, # [DEFAULT-ACTION], [ARG-ACTION], # [ACTION-ENABLED], [ACTION-DISABLED]) # ---------------------------------------------------------- # This will create an option that behaves as follows: If omitted, or # called with "no", then set the enable_variable to "no" and do # nothing else. If called with "yes", then execute DEFAULT-ACTION. If # called with argument, set enable_variable to "yes" and execute # ARG-ACTION. Additionally, execute ACTION-ENABLED if we ended up with # "yes" either way, else ACTION-DISABLED. # # The intent is to allow enabling a feature, and optionally pass an # additional piece of information. AC_DEFUN([PGAC_ARG_OPTARG], [PGAC_ARG([$1], [$2], [@<:@=$3@:>@], [$4], [$5], [], [pgac_arg_to_variable([$1], [$2])=yes $6], [pgac_arg_to_variable([$1], [$2])=no]) dnl Add this code only if there's a ACTION-ENABLED or ACTION-DISABLED. m4_ifval([$7[]$8], [ if test "[$]pgac_arg_to_variable([$1], [$2])" = yes; then m4_default([$7], :) m4_ifval([$8], [else $8 ])[]dnl fi ])[]dnl ])# PGAC_ARG_OPTARG config/install-sh
New file @@ -0,0 +1,527 @@ #!/bin/sh # install - install a program, script, or datafile scriptversion=2011-11-20.07; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: config/llvm.m4
New file @@ -0,0 +1,120 @@ # config/llvm.m4 # PGAC_LLVM_SUPPORT # ----------------- # # Look for the LLVM installation, check that it's new enough, set the # corresponding LLVM_{CFLAGS,CXXFLAGS,BINPATH,LIBS} # variables. Also verify that CLANG is available, to transform C # into bitcode. # AC_DEFUN([PGAC_LLVM_SUPPORT], [ AC_REQUIRE([AC_PROG_AWK]) AC_ARG_VAR(LLVM_CONFIG, [path to llvm-config command]) PGAC_PATH_PROGS(LLVM_CONFIG, llvm-config) # no point continuing if llvm wasn't found if test -z "$LLVM_CONFIG"; then AC_MSG_ERROR([llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=]) fi # check if detected $LLVM_CONFIG is executable pgac_llvm_version="$($LLVM_CONFIG --version 2> /dev/null || echo no)" if test "x$pgac_llvm_version" = "xno"; then AC_MSG_ERROR([$LLVM_CONFIG does not work]) fi # and whether the version is supported if echo $pgac_llvm_version | $AWK -F '.' '{ if ([$]1 >= 14) exit 1; else exit 0;}';then AC_MSG_ERROR([$LLVM_CONFIG version is $pgac_llvm_version but at least 14 is required]) fi AC_MSG_NOTICE([using llvm $pgac_llvm_version]) # need clang to create some bitcode files AC_ARG_VAR(CLANG, [path to clang compiler to generate bitcode]) PGAC_PATH_PROGS(CLANG, clang) if test -z "$CLANG"; then AC_MSG_ERROR([clang not found, but required when compiling --with-llvm, specify with CLANG=]) fi # make sure clang is executable if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then AC_MSG_ERROR([$CLANG does not work]) fi # Could check clang version, but it doesn't seem that # important. Systems with a new enough LLVM version are usually # going to have a decent clang version too. It's also not entirely # clear what the minimum version is. # Collect compiler flags necessary to build the LLVM dependent # shared library. for pgac_option in `$LLVM_CONFIG --cppflags`; do case $pgac_option in -I*|-D*) LLVM_CPPFLAGS="$pgac_option $LLVM_CPPFLAGS";; esac done for pgac_option in `$LLVM_CONFIG --ldflags`; do case $pgac_option in -L*) LLVM_LIBS="$LLVM_LIBS $pgac_option";; esac done # ABI influencing options, standard influencing options for pgac_option in `$LLVM_CONFIG --cxxflags`; do case $pgac_option in -fno-rtti*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";; -std=*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";; esac done # Look for components we're interested in, collect necessary # libs. As some components are optional, we can't just list all of # them as it'd raise an error. pgac_components=''; for pgac_component in `$LLVM_CONFIG --components`; do case $pgac_component in engine) pgac_components="$pgac_components $pgac_component";; debuginfodwarf) pgac_components="$pgac_components $pgac_component";; orcjit) pgac_components="$pgac_components $pgac_component";; passes) pgac_components="$pgac_components $pgac_component";; native) pgac_components="$pgac_components $pgac_component";; perfjitevents) pgac_components="$pgac_components $pgac_component";; esac done; # And then get the libraries that need to be linked in for the # selected components. They're large libraries, we only want to # link them into the LLVM using shared library. for pgac_option in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do case $pgac_option in -l*) LLVM_LIBS="$LLVM_LIBS $pgac_option";; esac done LLVM_BINPATH=`$LLVM_CONFIG --bindir` dnl LLVM_CONFIG, CLANG are already output via AC_ARG_VAR AC_SUBST(LLVM_LIBS) AC_SUBST(LLVM_CPPFLAGS) AC_SUBST(LLVM_CFLAGS) AC_SUBST(LLVM_CXXFLAGS) AC_SUBST(LLVM_BINPATH) ])# PGAC_LLVM_SUPPORT # PGAC_CHECK_LLVM_FUNCTIONS # ------------------------- # # Check presence of some optional LLVM functions. # (This shouldn't happen until we're ready to run AC_CHECK_DECLS tests; # because PGAC_LLVM_SUPPORT runs very early, it's not an appropriate place.) # AC_DEFUN([PGAC_CHECK_LLVM_FUNCTIONS], [ # Check which functionality is present SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $LLVM_CPPFLAGS" AC_CHECK_DECLS([LLVMCreateGDBRegistrationListener, LLVMCreatePerfJITEventListener], [], [], [[#include <llvm-c/ExecutionEngine.h>]]) CPPFLAGS="$SAVE_CPPFLAGS" ])# PGAC_CHECK_LLVM_FUNCTIONS config/meson.build
New file @@ -0,0 +1,4 @@ install_data( 'install-sh', 'missing', install_dir: dir_pgxs / 'config' ) config/missing
New file @@ -0,0 +1,54 @@ #! /bin/sh # config/missing # This is *not* the GNU `missing' script, although it is similar in # concept. You can call it from the makefiles to get consistent # behavior when certain utility programs are missing. case $1 in flex|bison) # `missing flex|bison <input> <output>' input=$2 output=$3 if test -f "$output"; then echo "\ *** WARNING: \`$1' is missing on your system. You should only need it if you changed the file \`$input'; these changes will not take effect. You can get $1 from a GNU mirror site. ***" >&2 echo "touch $output" touch "$output" exit 0 else # ! test -f $output echo "\ *** ERROR: \`$1' is missing on your system. It is needed to create the file \`$output'. You can either get $1 from a GNU mirror site or download an official distribution of PostgreSQL, which contains pre-packaged $1 output. ***" >&2 exit 1 fi ;; perl) # `missing perl' echo "\ *** ERROR: Perl is missing on your system. It is needed unless you are building from an unmodified official distribution of PostgreSQL. ***" >&2 exit 1 ;; *) # `missing something-or-other' echo "\ *** ERROR: \`$1' is missing on your system. ***" >&2 exit 1 ;; esac config/perl.m4
New file @@ -0,0 +1,116 @@ # config/perl.m4 # PGAC_PATH_PERL # -------------- AC_DEFUN([PGAC_PATH_PERL], [PGAC_PATH_PROGS(PERL, perl) AC_ARG_VAR(PERL, [Perl program])dnl if test "$PERL"; then pgac_perl_version=`$PERL -v 2>/dev/null | sed -n ['s/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p']` AC_MSG_NOTICE([using perl $pgac_perl_version]) if echo "$pgac_perl_version" | sed ['s/[.a-z_]/ /g'] | \ $AWK '{ if ([$]1 == 5 && ([$]2 >= 14)) exit 1; else exit 0;}' then AC_MSG_ERROR([ *** The installed version of Perl, $PERL, is too old to use with PostgreSQL. *** Perl version 5.14 or later is required, but this is $pgac_perl_version.]) fi fi if test -z "$PERL"; then AC_MSG_ERROR([Perl not found]) fi ])# PGAC_PATH_PERL # PGAC_CHECK_PERL_CONFIG(NAME) # ---------------------------- AC_DEFUN([PGAC_CHECK_PERL_CONFIG], [AC_REQUIRE([PGAC_PATH_PERL]) AC_MSG_CHECKING([for Perl $1]) perl_$1=`$PERL -MConfig -e 'print $Config{$1}'` test "$PORTNAME" = "win32" && perl_$1=`echo $perl_$1 | sed 's,\\\\,/,g'` AC_SUBST(perl_$1)dnl AC_MSG_RESULT([$perl_$1])]) # PGAC_CHECK_PERL_CONFIGS(NAMES) # ------------------------------ AC_DEFUN([PGAC_CHECK_PERL_CONFIGS], [m4_foreach([pgac_item], [$1], [PGAC_CHECK_PERL_CONFIG(pgac_item)])]) # PGAC_CHECK_PERL_EMBED_CCFLAGS # ----------------------------- # We selectively extract stuff from $Config{ccflags}. For debugging purposes, # let's have the configure output report the raw ccflags value as well as the # set of flags we chose to adopt. We don't really need anything except -D # switches, and other sorts of compiler switches can actively break things if # Perl was compiled with a different compiler. Moreover, although Perl likes # to put stuff like -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 here, it # would be fatal to try to compile PL/Perl to a different libc ABI than core # Postgres uses. The available information says that most symbols that affect # Perl's own ABI begin with letters, so it's almost sufficient to adopt -D # switches for symbols not beginning with underscore. # Some exceptions are the Windows-specific -D_USE_32BIT_TIME_T and # -D__MINGW_USE_VC2005_COMPAT. To be exact, Windows offers several 32-bit ABIs. # Perl is sensitive to sizeof(time_t), one of the ABI dimensions. PostgreSQL # doesn't support building with pre-MSVC-2005 compilers, but it does support # linking to Perl built with such a compiler. MSVC-built Perl 5.13.4 and # later report -D_USE_32BIT_TIME_T in $Config{ccflags} if applicable, but # MinGW-built Perl never reports -D_USE_32BIT_TIME_T despite typically needing # it. # # Consequently, we don't support using MinGW to link to MSVC-built Perl. As # of 2017, all supported ActivePerl and Strawberry Perl are MinGW-built. If # that changes or an MSVC-built Perl distribution becomes prominent, we can # revisit this limitation. AC_DEFUN([PGAC_CHECK_PERL_EMBED_CCFLAGS], [AC_REQUIRE([PGAC_PATH_PERL]) AC_MSG_CHECKING([for CFLAGS recommended by Perl]) perl_ccflags=`$PERL -MConfig -e ['print $Config{ccflags}']` AC_MSG_RESULT([$perl_ccflags]) AC_MSG_CHECKING([for CFLAGS to compile embedded Perl]) perl_embed_ccflags=`$PERL -MConfig -e ['foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}']` AC_SUBST(perl_embed_ccflags)dnl AC_MSG_RESULT([$perl_embed_ccflags]) ])# PGAC_CHECK_PERL_EMBED_CCFLAGS # PGAC_CHECK_PERL_EMBED_LDFLAGS # ----------------------------- # We are after Embed's ldopts, but without the subset mentioned in # Config's ccdlflags and ldflags. (Those are the choices of those who # built the Perl installation, which are not necessarily appropriate # for building PostgreSQL.) AC_DEFUN([PGAC_CHECK_PERL_EMBED_LDFLAGS], [AC_REQUIRE([PGAC_PATH_PERL]) AC_MSG_CHECKING(for flags to link embedded Perl) if test "$PORTNAME" = "win32" ; then perl_lib=`basename $perl_archlibexp/CORE/perl[[5-9]]*.lib .lib` if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib" else perl_lib=`basename $perl_archlibexp/CORE/libperl[[5-9]]*.a .a | sed 's/^lib//'` if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib" fi fi else pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts` pgac_tmp2=`$PERL -MConfig -e 'print "$Config{ccdlflags} $Config{ldflags}"'` perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%"` fi AC_SUBST(perl_embed_ldflags)dnl if test -z "$perl_embed_ldflags" ; then AC_MSG_RESULT(no) AC_MSG_ERROR([could not determine flags for linking embedded Perl. This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not installed.]) else AC_MSG_RESULT([$perl_embed_ldflags]) fi ])# PGAC_CHECK_PERL_EMBED_LDFLAGS config/pkg.m4
New file @@ -0,0 +1,275 @@ # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 12 (pkg-config-0.29.2) dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.2]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurrence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $2]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_INSTALLDIR dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_NOARCH_INSTALLDIR dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR config/prep_buildtree
New file @@ -0,0 +1,45 @@ #! /bin/sh # This script prepares a PostgreSQL build tree. It is intended # to be run by the configure script. me=`basename $0` help="\ Usage: $me sourcetree [buildtree]" if test -z "$1"; then echo "$help" 1>&2 exit 1 elif test x"$1" = x"--help"; then echo "$help" exit 0 fi unset CDPATH sourcetree=`cd $1 && pwd` buildtree=`cd ${2:-'.'} && pwd` # We must not auto-create the subdirectories holding built documentation. # If we did, it would interfere with installation of prebuilt docs from # the source tree, if a VPATH build is done from a distribution tarball. # See bug #5595. for item in `find "$sourcetree" -type d \( \( -name CVS -prune \) -o \( -name .git -prune \) -o -print \) | grep -v "$sourcetree/doc/src/sgml/\+"`; do subdir=`expr "$item" : "$sourcetree\(.*\)"` if test ! -d "$buildtree/$subdir"; then mkdir -p "$buildtree/$subdir" || exit 1 fi done for item in `find "$sourcetree" -name Makefile -print -o -name GNUmakefile -print | grep -v "$sourcetree/doc/src/sgml/images/"`; do filename=`expr "$item" : "$sourcetree\(.*\)"` if test ! -f "${item}.in"; then if cmp "$item" "$buildtree/$filename" >/dev/null 2>&1; then : ; else ln -fs "$item" "$buildtree/$filename" || exit 1 fi fi done exit 0 config/programs.m4
New file @@ -0,0 +1,362 @@ # config/programs.m4 # PGAC_PATH_PROGS # --------------- # This wrapper for AC_PATH_PROGS behaves like that macro except when # VARIABLE is already set; in that case we just accept the value verbatim. # (AC_PATH_PROGS would accept it only if it looks like an absolute path.) # A desirable future improvement would be to convert a non-absolute-path # input into absolute form. AC_DEFUN([PGAC_PATH_PROGS], [if test -z "$$1"; then AC_PATH_PROGS($@) else # Report the value of $1 in configure's output in all cases. AC_MSG_CHECKING([for $1]) AC_MSG_RESULT([$$1]) fi ]) # PGAC_PATH_BISON # --------------- # Look for Bison, set the output variable BISON to its path if found. # Reject versions before 2.3 (the earliest version in the buildfarm # as of 2022). Note we do not accept other implementations of yacc. AC_DEFUN([PGAC_PATH_BISON], [PGAC_PATH_PROGS(BISON, bison) if test "$BISON"; then pgac_bison_version=`$BISON --version 2>/dev/null | sed q` AC_MSG_NOTICE([using $pgac_bison_version]) if echo "$pgac_bison_version" | $AWK '{ if ([$]4 < 2.3) exit 0; else exit 1;}' then AC_MSG_ERROR([ *** The installed version of Bison, $BISON, is too old to use with PostgreSQL. *** Bison version 2.3 or later is required, but this is $pgac_bison_version.]) fi # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead # of the now preferred %name-prefix "base_yy", but the latter # doesn't work with Bison 2.3 or less. So for now we silence the # deprecation warnings. if echo "$pgac_bison_version" | $AWK '{ if ([$]4 >= 3) exit 0; else exit 1;}' then BISONFLAGS="$BISONFLAGS -Wno-deprecated" fi fi if test -z "$BISON"; then AC_MSG_ERROR([bison not found]) fi dnl We don't need AC_SUBST(BISON) because PGAC_PATH_PROGS did it AC_SUBST(BISONFLAGS) ])# PGAC_PATH_BISON # PGAC_PATH_FLEX # -------------- # Look for Flex, set the output variable FLEX to its path if found. AC_DEFUN([PGAC_PATH_FLEX], [PGAC_PATH_PROGS(FLEX, flex) if test -z "$FLEX"; then AC_MSG_ERROR([flex not found]) fi pgac_flex_version=`$FLEX --version 2>/dev/null` AC_MSG_NOTICE([using $pgac_flex_version]) AC_SUBST(FLEX) AC_SUBST(FLEXFLAGS) ])# PGAC_PATH_FLEX # PGAC_LDAP_SAFE # -------------- # PostgreSQL sometimes loads libldap_r and plain libldap into the same # process. Check for OpenLDAP versions known not to tolerate doing so; assume # non-OpenLDAP implementations are safe. The dblink test suite exercises the # hazardous interaction directly. AC_DEFUN([PGAC_LDAP_SAFE], [AC_CACHE_CHECK([for compatible LDAP implementation], [pgac_cv_ldap_safe], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [#include <ldap.h> #if !defined(LDAP_VENDOR_VERSION) || \ (defined(LDAP_API_FEATURE_X_OPENLDAP) && \ LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431) choke me #endif], [])], [pgac_cv_ldap_safe=yes], [pgac_cv_ldap_safe=no])]) if test "$pgac_cv_ldap_safe" != yes; then AC_MSG_WARN([ *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and *** also uses LDAP will crash on exit.]) fi]) # PGAC_CHECK_READLINE # ------------------- # Check for the readline library and dependent libraries, either # termcap or curses. Also try libedit, since NetBSD's is compatible. # Add the required flags to LIBS, define HAVE_LIBREADLINE. AC_DEFUN([PGAC_CHECK_READLINE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_CACHE_CHECK([for library containing readline], [pgac_cv_check_readline], [pgac_cv_check_readline=no pgac_save_LIBS=$LIBS if test x"$with_libedit_preferred" != x"yes" then READLINE_ORDER="-lreadline -ledit" else READLINE_ORDER="-ledit -lreadline" fi for pgac_rllib in $READLINE_ORDER ; do for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS" AC_TRY_LINK_FUNC([readline], [[ # Older NetBSD and OpenBSD have a broken linker that does not # recognize dependent libraries; assume curses is needed if we didn't # find any dependency. case $host_os in netbsd* | openbsd*) if test x"$pgac_lib" = x"" ; then pgac_lib=" -lcurses" fi ;; esac pgac_cv_check_readline="${pgac_rllib}${pgac_lib}" break ]]) done if test "$pgac_cv_check_readline" != no ; then break fi done LIBS=$pgac_save_LIBS ])[]dnl AC_CACHE_CHECK if test "$pgac_cv_check_readline" != no ; then LIBS="$pgac_cv_check_readline $LIBS" AC_DEFINE(HAVE_LIBREADLINE, 1, [Define if you have a function readline library]) fi ])# PGAC_CHECK_READLINE # PGAC_READLINE_VARIABLES # ----------------------- # Some Readline versions lack rl_completion_suppress_quote. # Libedit lacks rl_filename_quote_characters and rl_filename_quoting_function AC_DEFUN([PGAC_READLINE_VARIABLES], [AC_CACHE_CHECK([for rl_completion_suppress_quote], pgac_cv_var_rl_completion_suppress_quote, [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdio.h> #if defined(HAVE_READLINE_READLINE_H) #include <readline/readline.h> #elif defined(HAVE_EDITLINE_READLINE_H) #include <editline/readline.h> #elif defined(HAVE_READLINE_H) #include <readline.h> #endif ], [rl_completion_suppress_quote = 1;])], [pgac_cv_var_rl_completion_suppress_quote=yes], [pgac_cv_var_rl_completion_suppress_quote=no])]) if test x"$pgac_cv_var_rl_completion_suppress_quote" = x"yes"; then AC_DEFINE(HAVE_RL_COMPLETION_SUPPRESS_QUOTE, 1, [Define to 1 if you have the global variable 'rl_completion_suppress_quote'.]) fi AC_CACHE_CHECK([for rl_filename_quote_characters], pgac_cv_var_rl_filename_quote_characters, [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdio.h> #if defined(HAVE_READLINE_READLINE_H) #include <readline/readline.h> #elif defined(HAVE_EDITLINE_READLINE_H) #include <editline/readline.h> #elif defined(HAVE_READLINE_H) #include <readline.h> #endif ], [rl_filename_quote_characters = "x";])], [pgac_cv_var_rl_filename_quote_characters=yes], [pgac_cv_var_rl_filename_quote_characters=no])]) if test x"$pgac_cv_var_rl_filename_quote_characters" = x"yes"; then AC_DEFINE(HAVE_RL_FILENAME_QUOTE_CHARACTERS, 1, [Define to 1 if you have the global variable 'rl_filename_quote_characters'.]) fi AC_CACHE_CHECK([for rl_filename_quoting_function], pgac_cv_var_rl_filename_quoting_function, [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdio.h> #if defined(HAVE_READLINE_READLINE_H) #include <readline/readline.h> #elif defined(HAVE_EDITLINE_READLINE_H) #include <editline/readline.h> #elif defined(HAVE_READLINE_H) #include <readline.h> #endif ], [rl_filename_quoting_function = 0;])], [pgac_cv_var_rl_filename_quoting_function=yes], [pgac_cv_var_rl_filename_quoting_function=no])]) if test x"$pgac_cv_var_rl_filename_quoting_function" = x"yes"; then AC_DEFINE(HAVE_RL_FILENAME_QUOTING_FUNCTION, 1, [Define to 1 if you have the global variable 'rl_filename_quoting_function'.]) fi ])# PGAC_READLINE_VARIABLES # PGAC_CHECK_GETTEXT # ------------------ # We check for bind_textdomain_codeset() not just gettext(). GNU gettext # before 0.10.36 does not have that function, and is generally too incomplete # to be usable. AC_DEFUN([PGAC_CHECK_GETTEXT], [ AC_SEARCH_LIBS(bind_textdomain_codeset, intl, [], [AC_MSG_ERROR([a gettext implementation is required for NLS])]) AC_CHECK_HEADER([libintl.h], [], [AC_MSG_ERROR([header file <libintl.h> is required for NLS])]) PGAC_PATH_PROGS(MSGFMT, msgfmt) AC_ARG_VAR(MSGFMT, [msgfmt program for NLS])dnl if test -z "$MSGFMT"; then AC_MSG_ERROR([msgfmt is required for NLS]) fi AC_CACHE_CHECK([for msgfmt flags], pgac_cv_msgfmt_flags, [if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then pgac_cv_msgfmt_flags=-c fi]) AC_SUBST(MSGFMT_FLAGS, $pgac_cv_msgfmt_flags) PGAC_PATH_PROGS(MSGMERGE, msgmerge) PGAC_PATH_PROGS(XGETTEXT, xgettext) ])# PGAC_CHECK_GETTEXT # PGAC_CHECK_STRIP # ---------------- # Check for a 'strip' program, and figure out if that program can # strip libraries. AC_DEFUN([PGAC_CHECK_STRIP], [ AC_CHECK_TOOL(STRIP, strip, :) AC_MSG_CHECKING([whether it is possible to strip libraries]) if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then STRIP_STATIC_LIB="$STRIP --strip-unneeded" STRIP_SHARED_LIB="$STRIP --strip-unneeded" AC_MSG_RESULT(yes) else case $host_os in darwin*) STRIP="$STRIP -x" STRIP_STATIC_LIB=$STRIP STRIP_SHARED_LIB=$STRIP AC_MSG_RESULT(yes) ;; *) STRIP_STATIC_LIB=: STRIP_SHARED_LIB=: AC_MSG_RESULT(no) ;; esac fi AC_SUBST(STRIP_STATIC_LIB) AC_SUBST(STRIP_SHARED_LIB) ])# PGAC_CHECK_STRIP # PGAC_CHECK_LIBCURL # ------------------ # Check for required libraries and headers, and test to see whether the current # installation of libcurl is thread-safe. AC_DEFUN([PGAC_CHECK_LIBCURL], [ # libcurl compiler/linker flags are kept separate from the global flags, so # they have to be added back temporarily for the following tests. pgac_save_CPPFLAGS=$CPPFLAGS pgac_save_LDFLAGS=$LDFLAGS pgac_save_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" LDFLAGS="$LDFLAGS $LIBCURL_LDFLAGS" AC_CHECK_HEADER(curl/curl.h, [], [AC_MSG_ERROR([header file <curl/curl.h> is required for --with-libcurl])]) # LIBCURL_LDLIBS is determined here. Like the compiler flags, it should not # pollute the global LIBS setting. AC_CHECK_LIB(curl, curl_multi_init, [ AC_DEFINE([HAVE_LIBCURL], [1], [Define to 1 if you have the `curl' library (-lcurl).]) AC_SUBST(LIBCURL_LDLIBS, -lcurl) ], [AC_MSG_ERROR([library 'curl' does not provide curl_multi_init])]) LIBS="$LIBCURL_LDLIBS $LIBS" # Check to see whether the current platform supports threadsafe Curl # initialization. AC_CACHE_CHECK([for curl_global_init thread safety], [pgac_cv__libcurl_threadsafe_init], [AC_RUN_IFELSE([AC_LANG_PROGRAM([ #include <curl/curl.h> ],[ curl_version_info_data *info; if (curl_global_init(CURL_GLOBAL_ALL)) return -1; info = curl_version_info(CURLVERSION_NOW); #ifdef CURL_VERSION_THREADSAFE if (info->features & CURL_VERSION_THREADSAFE) return 0; #endif return 1; ])], [pgac_cv__libcurl_threadsafe_init=yes], [pgac_cv__libcurl_threadsafe_init=no], [pgac_cv__libcurl_threadsafe_init=unknown])]) if test x"$pgac_cv__libcurl_threadsafe_init" = xyes ; then AC_DEFINE(HAVE_THREADSAFE_CURL_GLOBAL_INIT, 1, [Define to 1 if curl_global_init() is guaranteed to be thread-safe.]) fi # Fail if a thread-friendly DNS resolver isn't built. AC_CACHE_CHECK([for curl support for asynchronous DNS], [pgac_cv__libcurl_async_dns], [AC_RUN_IFELSE([AC_LANG_PROGRAM([ #include <curl/curl.h> ],[ curl_version_info_data *info; if (curl_global_init(CURL_GLOBAL_ALL)) return -1; info = curl_version_info(CURLVERSION_NOW); return (info->features & CURL_VERSION_ASYNCHDNS) ? 0 : 1; ])], [pgac_cv__libcurl_async_dns=yes], [pgac_cv__libcurl_async_dns=no], [pgac_cv__libcurl_async_dns=unknown])]) if test x"$pgac_cv__libcurl_async_dns" = xno ; then AC_MSG_ERROR([ *** The installed version of libcurl does not support asynchronous DNS *** lookups. Rebuild libcurl with the AsynchDNS feature enabled in order *** to use it with libpq.]) fi CPPFLAGS=$pgac_save_CPPFLAGS LDFLAGS=$pgac_save_LDFLAGS LIBS=$pgac_save_LIBS ])# PGAC_CHECK_LIBCURL config/python.m4
New file @@ -0,0 +1,177 @@ # # Autoconf macros for configuring the build of Python extension modules # # config/python.m4 # # PGAC_PATH_PYTHON # ---------------- # Look for Python and set the output variable 'PYTHON' if found, # fail otherwise. # # Since we are supporting only Python 3.x, prefer python3 to plain python. If # the latter exists at all, it very possibly points to python2. # As the Python 3 transition happens and PEP 394 isn't updated, we # need to cater to systems that don't have unversioned "python" by # default. Some systems ship with "python3" by default and perhaps # have "python" in an optional package. Some systems only have # "python2" and "python3", in which case it's reasonable to prefer the # newer version. AC_DEFUN([PGAC_PATH_PYTHON], [PGAC_PATH_PROGS(PYTHON, [python3 python]) AC_ARG_VAR(PYTHON, [Python program])dnl if test x"$PYTHON" = x""; then AC_MSG_ERROR([Python not found]) fi ]) # _PGAC_CHECK_PYTHON_DIRS # ----------------------- # Determine the name of various directories of a given Python installation, # as well as the Python version. AC_DEFUN([_PGAC_CHECK_PYTHON_DIRS], [AC_REQUIRE([PGAC_PATH_PYTHON]) python_fullversion=`${PYTHON} -c "import sys; print(sys.version)" | sed q` AC_MSG_NOTICE([using python $python_fullversion]) # python_fullversion is typically n.n.n plus some trailing junk python_majorversion=`echo "$python_fullversion" | sed '[s/^\([0-9]*\).*/\1/]'` python_minorversion=`echo "$python_fullversion" | sed '[s/^[0-9]*\.\([0-9]*\).*/\1/]'` python_version=`echo "$python_fullversion" | sed '[s/^\([0-9]*\.[0-9]*\).*/\1/]'` # Reject unsupported Python versions as soon as practical. if test "$python_majorversion" -lt 3; then AC_MSG_ERROR([Python version $python_version is too old (version 3 or later is required)]) fi AC_MSG_CHECKING([for Python sysconfig module]) if "${PYTHON}" -c 'import sysconfig' 2>&AS_MESSAGE_LOG_FD then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) AC_MSG_ERROR([sysconfig module not found]) fi AC_MSG_CHECKING([Python configuration directory]) python_configdir=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBPL'))))"` AC_MSG_RESULT([$python_configdir]) AC_MSG_CHECKING([Python include directory]) python_includespec=`${PYTHON} -c "import sysconfig; print('-I' + sysconfig.get_config_var('INCLUDEPY'))"` if test "$PORTNAME" = win32 ; then python_includespec=`echo $python_includespec | sed 's,[[\]],/,g'` fi AC_MSG_RESULT([$python_includespec]) AC_SUBST(python_majorversion)[]dnl AC_SUBST(python_version)[]dnl AC_SUBST(python_includespec)[]dnl ])# _PGAC_CHECK_PYTHON_DIRS # PGAC_CHECK_PYTHON_EMBED_SETUP # ----------------------------- # # Set python_libdir to the path of the directory containing the Python shared # library. Set python_libspec to the -L/-l linker switches needed to link it. # Set python_additional_libs to contain any additional linker switches needed # for subsidiary libraries. # # In modern, well-configured Python installations, LIBDIR gives the correct # directory name and LDLIBRARY is the file name of the shlib. But in older # installations LDLIBRARY is frequently a useless path fragment, and it's also # possible that the shlib is in a standard library directory such as /usr/lib # so that LIBDIR is irrelevant. Also, some packagers put the .so symlink for # the shlib in ${python_configdir} even though Python itself never does. # We must also check that what we found is a shared library not a plain # library, which we do by checking its extension. (We used to rely on # Py_ENABLE_SHARED, but that only tells us that a shlib exists, not that # we found it.) AC_DEFUN([PGAC_CHECK_PYTHON_EMBED_SETUP], [AC_REQUIRE([_PGAC_CHECK_PYTHON_DIRS]) AC_MSG_CHECKING([how to link an embedded Python application]) python_libdir=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBDIR'))))"` python_ldlibrary=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDLIBRARY'))))"` # If LDLIBRARY exists and has a shlib extension, use it verbatim. ldlibrary=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'` if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}" then ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"` found_shlib=1 else # Otherwise, guess the base name of the shlib. # LDVERSION was added in Python 3.2, before that use VERSION, # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS. python_ldversion=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDVERSION'))))"` if test x"${python_ldversion}" != x""; then ldlibrary="python${python_ldversion}" else python_version_var=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('VERSION'))))"` if test x"${python_version_var}" != x""; then ldlibrary="python${python_version_var}" else ldlibrary="python${python_version}" fi fi # Search for a likely-looking file. found_shlib=0 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib do if test -e "$d/lib${ldlibrary}${DLSUFFIX}"; then python_libdir="$d" found_shlib=1 break 2 fi done # Some platforms (OpenBSD) require us to accept a bare versioned shlib # (".so.n.n") as well. However, check this only after failing to find # ".so" anywhere, because yet other platforms (Debian) put the .so # symlink in a different directory from the underlying versioned shlib. if test "$found_shlib" != 1; then for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib do for f in "$d/lib${ldlibrary}.so."* ; do if test -e "$f"; then python_libdir="$d" found_shlib=1 break 2 fi done done fi # As usual, Windows has its own ideas. Possible default library # locations include c:/Windows/System32 and (for Cygwin) /usr/bin, # and the "lib" prefix might not be there. if test "$found_shlib" != 1 -a \( "$PORTNAME" = win32 -o "$PORTNAME" = cygwin \); then for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32 /usr/bin do for f in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do if test -e "$f"; then python_libdir="$d" found_shlib=1 break 2 fi done done fi fi if test "$found_shlib" != 1; then AC_MSG_ERROR([could not find shared library for Python You might have to rebuild your Python installation. Refer to the documentation for details. Use --without-python to disable building PL/Python.]) fi python_libspec="-L${python_libdir} -l${ldlibrary}" python_additional_libs=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"` AC_MSG_RESULT([${python_libspec} ${python_additional_libs}]) AC_SUBST(python_libdir)[]dnl AC_SUBST(python_libspec)[]dnl AC_SUBST(python_additional_libs)[]dnl ])# PGAC_CHECK_PYTHON_EMBED_SETUP config/tcl.m4
New file @@ -0,0 +1,105 @@ # config/tcl.m4 # Autoconf macros to check for Tcl related things AC_DEFUN([PGAC_PATH_TCLSH], [PGAC_PATH_PROGS(TCLSH, [tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84]) AC_ARG_VAR(TCLSH, [Tcl interpreter program (tclsh)])dnl if test x"$TCLSH" = x""; then AC_MSG_ERROR([Tcl shell not found]) fi ]) # PGAC_PATH_TCLCONFIGSH([SEARCH-PATH]) # ------------------------------------ # If the user doesn't specify $TCL_CONFIG_SH directly, search for it in # the list of directories passed as parameter (from --with-tclconfig). # If no list is given, try the Tcl shell's $auto_path. AC_DEFUN([PGAC_PATH_TCLCONFIGSH], [AC_REQUIRE([PGAC_PATH_TCLSH])[]dnl AC_BEFORE([$0], [PGAC_PATH_TKCONFIGSH])[]dnl AC_MSG_CHECKING([for tclConfig.sh]) # Let user override test if test -z "$TCL_CONFIG_SH"; then pgac_test_dirs="$1" set X $pgac_test_dirs; shift if test $[#] -eq 0; then test -z "$TCLSH" && AC_MSG_ERROR([unable to locate tclConfig.sh because no Tcl shell was found]) pgac_test_dirs=`echo 'puts $auto_path' | $TCLSH` # On newer macOS, $auto_path frequently doesn't include the place # where tclConfig.sh actually lives. Append that to the end, so as not # to break cases where a non-default Tcl installation is being used. if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then pgac_test_dirs="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework" fi set X $pgac_test_dirs; shift fi for pgac_dir do if test -r "$pgac_dir/tclConfig.sh"; then TCL_CONFIG_SH=$pgac_dir/tclConfig.sh break fi done fi if test -z "$TCL_CONFIG_SH"; then AC_MSG_RESULT(no) AC_MSG_ERROR([file 'tclConfig.sh' is required for Tcl]) else AC_MSG_RESULT([$TCL_CONFIG_SH]) fi AC_SUBST([TCL_CONFIG_SH]) ])# PGAC_PATH_TCLCONFIGSH # PGAC_PATH_TKCONFIGSH([SEARCH-PATH]) # ------------------------------------ AC_DEFUN([PGAC_PATH_TKCONFIGSH], [AC_REQUIRE([PGAC_PATH_TCLSH])[]dnl AC_MSG_CHECKING([for tkConfig.sh]) # Let user override test if test -z "$TK_CONFIG_SH"; then pgac_test_dirs="$1" set X $pgac_test_dirs; shift if test $[#] -eq 0; then test -z "$TCLSH" && AC_MSG_ERROR([unable to locate tkConfig.sh because no Tcl shell was found]) set X `echo 'puts $auto_path' | $TCLSH`; shift fi for pgac_dir do if test -r "$pgac_dir/tkConfig.sh"; then TK_CONFIG_SH=$pgac_dir/tkConfig.sh break fi done fi if test -z "$TK_CONFIG_SH"; then AC_MSG_RESULT(no) AC_MSG_ERROR([file 'tkConfig.sh' is required for Tk]) else AC_MSG_RESULT([$TK_CONFIG_SH]) fi AC_SUBST([TK_CONFIG_SH]) ])# PGAC_PATH_TKCONFIGSH # PGAC_EVAL_TCLCONFIGSH(FILE, WANTED-VARS) # ---------------------------------------- # Assigns variables listed in WANTED-VARS by reading FILE and # evaluating it according to the quoting scheme of tclConfig.sh and # tkConfig.sh. Calls AC_SUBST for each variable. AC_DEFUN([PGAC_EVAL_TCLCONFIGSH], [. "$1" m4_foreach([pgac_item], [$2], [eval pgac_item=\"[$]pgac_item\" AC_SUBST(pgac_item)])]) configure
New file Diff too large configure.ac
New file @@ -0,0 +1,2568 @@ dnl Process this file with autoconf to produce a configure script. dnl configure.ac dnl dnl Developers, please strive to achieve this order: dnl dnl 0. Initialization and options processing dnl 1. Programs dnl 2. Libraries dnl 3. Header files dnl 4. Types dnl 5. Structures dnl 6. Compiler characteristics dnl 7. Functions, global variables dnl 8. System services dnl dnl Read the Autoconf manual for details. dnl m4_pattern_forbid(^PGAC_)dnl to catch undefined macros AC_INIT([PostgreSQL], [18.2], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/]) m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required. Untested combinations of 'autoconf' and PostgreSQL versions are not recommended. You can remove the check from 'configure.ac' but it is then your responsibility whether the result works or not.])]) AC_COPYRIGHT([Copyright (c) 1996-2025, PostgreSQL Global Development Group]) AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c]) AC_CONFIG_AUX_DIR(config) AC_PREFIX_DEFAULT(/usr/local/pgsql) AC_DEFINE_UNQUOTED(CONFIGURE_ARGS, ["$ac_configure_args"], [Saved arguments from configure]) [PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`] [PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`] test -n "$PG_MINORVERSION" || PG_MINORVERSION=0 AC_SUBST(PG_MAJORVERSION) AC_DEFINE_UNQUOTED(PG_MAJORVERSION, "$PG_MAJORVERSION", [PostgreSQL major version as a string]) AC_DEFINE_UNQUOTED(PG_MAJORVERSION_NUM, $PG_MAJORVERSION, [PostgreSQL major version number]) AC_DEFINE_UNQUOTED(PG_MINORVERSION_NUM, $PG_MINORVERSION, [PostgreSQL minor version number]) PGAC_ARG_REQ(with, extra-version, [STRING], [append STRING to version], [PG_VERSION="$PACKAGE_VERSION$withval"], [PG_VERSION="$PACKAGE_VERSION"]) AC_DEFINE_UNQUOTED(PG_VERSION, "$PG_VERSION", [PostgreSQL version as a string]) RUDB_VERSION="26.04" AC_DEFINE_UNQUOTED(RUDB_VERSION, "$RUDB_VERSION", [RuDB version as a string]) AC_CANONICAL_HOST template= AC_MSG_CHECKING([which template to use]) PGAC_ARG_REQ(with, template, [NAME], [override operating system template], [ case $withval in list) echo; ls "$srcdir/src/template"; exit;; *) if test -f "$srcdir/src/template/$with_template" ; then template=$withval else AC_MSG_ERROR(['$withval' is not a valid template name. Use 'list' for a list.]) fi;; esac ], [ # --with-template not given case $host_os in cygwin*|msys*) template=cygwin ;; darwin*) template=darwin ;; dragonfly*) template=netbsd ;; freebsd*) template=freebsd ;; linux*|gnu*|k*bsd*-gnu) template=linux ;; mingw*) template=win32 ;; netbsd*) template=netbsd ;; openbsd*) template=openbsd ;; solaris*) template=solaris ;; esac if test x"$template" = x"" ; then AC_MSG_ERROR([[ ******************************************************************* PostgreSQL has apparently not been ported to your platform yet. To try a manual configuration, look into the src/template directory for a similar platform and use the '--with-template=' option. Please also contact <]AC_PACKAGE_BUGREPORT[> to see about rectifying this. Include the above 'checking host system type...' line. ******************************************************************* ]]) fi ]) AC_MSG_RESULT([$template]) PORTNAME=$template AC_SUBST(PORTNAME) # Initialize default assumption that we do not need separate assembly code # for TAS (test-and-set). This can be overridden by the template file # when it's executed. need_tas=no tas_file=dummy.s # Default, works for most platforms, override in template file if needed DLSUFFIX=".so" ## ## Command line options ## # # Add non-standard directories to the include path # PGAC_ARG_REQ(with, includes, [DIRS], [look for additional header files in DIRS]) # # Add non-standard directories to the library search path # PGAC_ARG_REQ(with, libraries, [DIRS], [look for additional libraries in DIRS], [LIBRARY_DIRS=$withval]) PGAC_ARG_REQ(with, libs, [DIRS], [alternative spelling of --with-libraries], [LIBRARY_DIRS=$withval]) # # 64-bit integer date/time storage is now the only option, but to avoid # unnecessary breakage of build scripts, continue to accept an explicit # "--enable-integer-datetimes" switch. # PGAC_ARG_BOOL(enable, integer-datetimes, yes, [obsolete option, no longer supported], [], [AC_MSG_ERROR([--disable-integer-datetimes is no longer supported])]) # # NLS # AC_MSG_CHECKING([whether NLS is wanted]) PGAC_ARG_OPTARG(enable, nls, [LANGUAGES], [enable Native Language Support], [], [WANTED_LANGUAGES=$enableval], [AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if you want National Language Support. (--enable-nls)])]) AC_MSG_RESULT([$enable_nls]) AC_SUBST(enable_nls) AC_SUBST(WANTED_LANGUAGES) # # Default port number (--with-pgport), default 5432 # AC_MSG_CHECKING([for default port number]) PGAC_ARG_REQ(with, pgport, [PORTNUM], [set default port number [5432]], [default_port=$withval], [default_port=5432]) AC_MSG_RESULT([$default_port]) # Need both of these because some places want an integer and some a string AC_DEFINE_UNQUOTED(DEF_PGPORT, ${default_port}, [Define to the default TCP port number on which the server listens and to which clients will try to connect. This can be overridden at run-time, but it's convenient if your clients have the right default compiled in. (--with-pgport=PORTNUM)]) AC_DEFINE_UNQUOTED(DEF_PGPORT_STR, "${default_port}", [Define to the default TCP port number as a string constant.]) AC_SUBST(default_port) # It's worth validating port; you can get very confusing errors otherwise if test x"$default_port" = x""; then AC_MSG_ERROR([invalid --with-pgport specification: empty string]) elif test ! x`echo "$default_port" | sed -e 's/[[0-9]]*//'` = x""; then AC_MSG_ERROR([invalid --with-pgport specification: must be a number]) elif test ! x`echo "$default_port" | sed -e 's/^0.//'` = x"$default_port"; then AC_MSG_ERROR([invalid --with-pgport specification: must not have leading 0]) elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then AC_MSG_ERROR([invalid --with-pgport specification: must be between 1 and 65535]) fi # # '-rpath'-like feature can be disabled # PGAC_ARG_BOOL(enable, rpath, yes, [do not embed shared library search path in executables]) AC_SUBST(enable_rpath) # # --enable-debug adds -g to compiler flags # PGAC_ARG_BOOL(enable, debug, no, [build with debugging symbols (-g)]) AC_SUBST(enable_debug) # # --enable-profiling enables gcc profiling # PGAC_ARG_BOOL(enable, profiling, no, [build with profiling enabled ]) # # --enable-coverage enables generation of code coverage metrics with gcov # PGAC_ARG_BOOL(enable, coverage, no, [build with coverage testing instrumentation], [PGAC_PATH_PROGS(GCOV, gcov) if test -z "$GCOV"; then AC_MSG_ERROR([gcov not found]) fi PGAC_PATH_PROGS(LCOV, lcov) if test -z "$LCOV"; then AC_MSG_ERROR([lcov not found]) fi PGAC_PATH_PROGS(GENHTML, genhtml) if test -z "$GENHTML"; then AC_MSG_ERROR([genhtml not found]) fi]) AC_SUBST(enable_coverage) # # DTrace # PGAC_ARG_BOOL(enable, dtrace, no, [build with DTrace support], [PGAC_PATH_PROGS(DTRACE, dtrace) if test -z "$DTRACE"; then AC_MSG_ERROR([dtrace not found]) fi AC_SUBST(DTRACEFLAGS)]) AC_SUBST(enable_dtrace) # # TAP tests # PGAC_ARG_BOOL(enable, tap-tests, no, [enable TAP tests (requires Perl and IPC::Run)]) AC_SUBST(enable_tap_tests) AC_ARG_VAR(PG_TEST_EXTRA, [enable selected extra tests (overridden at runtime by PG_TEST_EXTRA environment variable)]) # # Injection points # PGAC_ARG_BOOL(enable, injection-points, no, [enable injection points (for testing)], [AC_DEFINE([USE_INJECTION_POINTS], 1, [Define to 1 to build with injection points. (--enable-injection-points)])]) AC_SUBST(enable_injection_points) # # Block size # AC_MSG_CHECKING([for block size]) PGAC_ARG_REQ(with, blocksize, [BLOCKSIZE], [set table block size in kB [8]], [blocksize=$withval], [blocksize=8]) case ${blocksize} in 1) BLCKSZ=1024;; 2) BLCKSZ=2048;; 4) BLCKSZ=4096;; 8) BLCKSZ=8192;; 16) BLCKSZ=16384;; 32) BLCKSZ=32768;; *) AC_MSG_ERROR([Invalid block size. Allowed values are 1,2,4,8,16,32.]) esac AC_MSG_RESULT([${blocksize}kB]) AC_DEFINE_UNQUOTED([BLCKSZ], ${BLCKSZ}, [ Size of a disk block --- this also limits the size of a tuple. You can set it bigger if you need bigger tuples (although TOAST should reduce the need to have large tuples, since fields can be spread across multiple tuples). BLCKSZ must be a power of 2. The maximum possible value of BLCKSZ is currently 2^15 (32768). This is determined by the 15-bit widths of the lp_off and lp_len fields in ItemIdData (see include/storage/itemid.h). Changing BLCKSZ requires an initdb. ]) # # Relation segment size # PGAC_ARG_REQ(with, segsize, [SEGSIZE], [set table segment size in GB [1]], [segsize=$withval], [segsize=1]) PGAC_ARG_REQ(with, segsize-blocks, [SEGSIZE_BLOCKS], [set table segment size in blocks [0]], [segsize_blocks=$withval], [segsize_blocks=0]) # If --with-segsize-blocks is non-zero, it is used, --with-segsize # otherwise. segsize-blocks is only really useful for developers wanting to # test segment related code. Warn if both are used. if test $segsize_blocks -ne 0 -a $segsize -ne 1; then AC_MSG_WARN([both --with-segsize and --with-segsize-blocks specified, --with-segsize-blocks wins]) fi AC_MSG_CHECKING([for segment size]) if test $segsize_blocks -eq 0; then # this expression is set up to avoid unnecessary integer overflow # blocksize is already guaranteed to be a factor of 1024 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024` test $? -eq 0 || exit 1 AC_MSG_RESULT([${segsize}GB]) else RELSEG_SIZE=$segsize_blocks AC_MSG_RESULT([${RELSEG_SIZE} blocks]) fi AC_DEFINE_UNQUOTED([RELSEG_SIZE], ${RELSEG_SIZE}, [ RELSEG_SIZE is the maximum number of blocks allowed in one disk file. Thus, the maximum size of a single file is RELSEG_SIZE * BLCKSZ; relations bigger than that are divided into multiple files. RELSEG_SIZE * BLCKSZ must be less than your OS' limit on file size. This is often 2 GB or 4GB in a 32-bit operating system, unless you have large file support enabled. By default, we make the limit 1 GB to avoid any possible integer-overflow problems within the OS. A limit smaller than necessary only means we divide a large relation into more chunks than necessary, so it seems best to err in the direction of a small limit. A power-of-2 value is recommended to save a few cycles in md.c, but is not absolutely required. Changing RELSEG_SIZE requires an initdb. ]) # # WAL block size # AC_MSG_CHECKING([for WAL block size]) PGAC_ARG_REQ(with, wal-blocksize, [BLOCKSIZE], [set WAL block size in kB [8]], [wal_blocksize=$withval], [wal_blocksize=8]) case ${wal_blocksize} in 1) XLOG_BLCKSZ=1024;; 2) XLOG_BLCKSZ=2048;; 4) XLOG_BLCKSZ=4096;; 8) XLOG_BLCKSZ=8192;; 16) XLOG_BLCKSZ=16384;; 32) XLOG_BLCKSZ=32768;; 64) XLOG_BLCKSZ=65536;; *) AC_MSG_ERROR([Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64.]) esac AC_MSG_RESULT([${wal_blocksize}kB]) AC_DEFINE_UNQUOTED([XLOG_BLCKSZ], ${XLOG_BLCKSZ}, [ Size of a WAL file block. This need have no particular relation to BLCKSZ. XLOG_BLCKSZ must be a power of 2, and if your system supports O_DIRECT I/O, XLOG_BLCKSZ must be a multiple of the alignment requirement for direct-I/O buffers, else direct I/O may fail. Changing XLOG_BLCKSZ requires an initdb. ]) # # C compiler # # If you don't specify a list of compilers to test, the AC_PROG_CC and # AC_PROG_CXX macros test for a long list of unsupported compilers. pgac_cc_list="gcc cc" pgac_cxx_list="g++ c++" AC_PROG_CC([$pgac_cc_list]) AC_PROG_CC_C99() # Error out if the compiler does not support C99, as the codebase # relies on that. if test "$ac_cv_prog_cc_c99" = no; then AC_MSG_ERROR([C compiler "$CC" does not support C99]) fi AC_PROG_CXX([$pgac_cxx_list]) # Check if it's Intel's compiler, which (usually) pretends to be gcc, # but has idiosyncrasies of its own. We assume icc will define # __INTEL_COMPILER regardless of CFLAGS. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [@%:@ifndef __INTEL_COMPILER choke me @%:@endif])], [ICC=yes], [ICC=no]) # Check if it's Sun Studio compiler. We assume that # __SUNPRO_C will be defined for Sun Studio compilers AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [@%:@ifndef __SUNPRO_C choke me @%:@endif])], [SUN_STUDIO_CC=yes], [SUN_STUDIO_CC=no]) AC_SUBST(SUN_STUDIO_CC) # # LLVM # # Checked early because subsequent tests depend on it. PGAC_ARG_BOOL(with, llvm, no, [build with LLVM based JIT support], [AC_DEFINE([USE_LLVM], 1, [Define to 1 to build with LLVM based JIT support. (--with-llvm)])]) AC_SUBST(with_llvm) dnl must use AS_IF here, else AC_REQUIRES inside PGAC_LLVM_SUPPORT malfunctions AS_IF([test "$with_llvm" = yes], [ PGAC_LLVM_SUPPORT() ]) # fi unset CFLAGS unset CXXFLAGS # # Read the template # . "$srcdir/src/template/$template" || exit # C[XX]FLAGS are selected so: # If the user specifies something in the environment, that is used. # else: If the template file set something, that is used. # else: If coverage was enabled, don't set anything. # else: If the compiler is GCC, then we use -O2. # else: If the compiler is something else, then we use -O, unless debugging. if test "$ac_env_CFLAGS_set" = set; then CFLAGS=$ac_env_CFLAGS_value elif test "${CFLAGS+set}" = set; then : # (keep what template set) elif test "$enable_coverage" = yes; then : # no optimization by default elif test "$GCC" = yes; then CFLAGS="-O2" else # if the user selected debug mode, don't use -O if test "$enable_debug" != yes; then CFLAGS="-O" fi fi if test "$ac_env_CXXFLAGS_set" = set; then CXXFLAGS=$ac_env_CXXFLAGS_value elif test "${CXXFLAGS+set}" = set; then : # (keep what template set) elif test "$enable_coverage" = yes; then : # no optimization by default elif test "$GCC" = yes; then CXXFLAGS="-O2" else # if the user selected debug mode, don't use -O if test "$enable_debug" != yes; then CXXFLAGS="-O" fi fi # When generating bitcode (for inlining) we always want to use -O2 # even when --enable-debug is specified. The bitcode is not going to # be used for line-by-line debugging, and JIT inlining doesn't work # without at least -O1 (otherwise clang will emit 'noinline' # attributes everywhere), which is bad for testing. Still allow the # environment to override if done explicitly. if test "$ac_env_BITCODE_CFLAGS_set" = set; then BITCODE_CFLAGS=$ac_env_BITCODE_CFLAGS_value else BITCODE_CFLAGS="-O2 $BITCODE_CFLAGS" fi if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then BITCODE_CXXFLAGS=$ac_env_BITCODE_CXXFLAGS_value else BITCODE_CXXFLAGS="-O2 $BITCODE_CXXFLAGS" fi # C[XX]FLAGS we determined above will be added back at the end user_CFLAGS=$CFLAGS CFLAGS="" user_CXXFLAGS=$CXXFLAGS CXXFLAGS="" user_BITCODE_CFLAGS=$BITCODE_CFLAGS BITCODE_CFLAGS="" user_BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS BITCODE_CXXFLAGS="" # set CFLAGS_UNROLL_LOOPS and CFLAGS_VECTORIZE from the environment, if present if test "$ac_env_CFLAGS_UNROLL_LOOPS_set" = set; then CFLAGS_UNROLL_LOOPS=$ac_env_CFLAGS_UNROLL_LOOPS_value fi if test "$ac_env_CFLAGS_VECTORIZE_set" = set; then CFLAGS_VECTORIZE=$ac_env_CFLAGS_VECTORIZE_value fi # Some versions of GCC support some additional useful warning flags. # Check whether they are supported, and add them to CFLAGS if so. # ICC pretends to be GCC but it's lying; it doesn't support these flags, # but has its own. Also check other compiler-specific flags here. if test "$GCC" = yes -a "$ICC" = no; then CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith" CXXFLAGS="-Wall -Wpointer-arith" # These work in some but not all gcc versions save_CFLAGS=$CFLAGS PGAC_PROG_CC_CFLAGS_OPT([-Wdeclaration-after-statement]) # -Wdeclaration-after-statement isn't applicable for C++. Specific C files # disable it, so AC_SUBST the negative form. PERMIT_DECLARATION_AFTER_STATEMENT= if test x"$save_CFLAGS" != x"$CFLAGS"; then PERMIT_DECLARATION_AFTER_STATEMENT=-Wno-declaration-after-statement fi AC_SUBST(PERMIT_DECLARATION_AFTER_STATEMENT) # Really don't want VLAs to be used in our dialect of C PGAC_PROG_CC_CFLAGS_OPT([-Werror=vla]) # On macOS, complain about usage of symbols newer than the deployment target PGAC_PROG_CC_CFLAGS_OPT([-Werror=unguarded-availability-new]) PGAC_PROG_CXX_CFLAGS_OPT([-Werror=unguarded-availability-new]) # -Wvla is not applicable for C++ PGAC_PROG_CC_CFLAGS_OPT([-Wendif-labels]) PGAC_PROG_CXX_CFLAGS_OPT([-Wendif-labels]) PGAC_PROG_CC_CFLAGS_OPT([-Wmissing-format-attribute]) PGAC_PROG_CXX_CFLAGS_OPT([-Wmissing-format-attribute]) PGAC_PROG_CC_CFLAGS_OPT([-Wimplicit-fallthrough=3]) PGAC_PROG_CXX_CFLAGS_OPT([-Wimplicit-fallthrough=3]) PGAC_PROG_CC_CFLAGS_OPT([-Wcast-function-type]) PGAC_PROG_CXX_CFLAGS_OPT([-Wcast-function-type]) PGAC_PROG_CC_CFLAGS_OPT([-Wshadow=compatible-local]) PGAC_PROG_CXX_CFLAGS_OPT([-Wshadow=compatible-local]) # This was included in -Wall/-Wformat in older GCC versions PGAC_PROG_CC_CFLAGS_OPT([-Wformat-security]) PGAC_PROG_CXX_CFLAGS_OPT([-Wformat-security]) # gcc 14+, clang for a while # (Supported in C++ by clang but not gcc. For consistency, omit in C++.) save_CFLAGS=$CFLAGS PGAC_PROG_CC_CFLAGS_OPT([-Wmissing-variable-declarations]) PERMIT_MISSING_VARIABLE_DECLARATIONS= if test x"$save_CFLAGS" != x"$CFLAGS"; then PERMIT_MISSING_VARIABLE_DECLARATIONS=-Wno-missing-variable-declarations fi AC_SUBST(PERMIT_MISSING_VARIABLE_DECLARATIONS) # Disable strict-aliasing rules; needed for gcc 3.3+ PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing]) PGAC_PROG_CXX_CFLAGS_OPT([-fno-strict-aliasing]) # Disable optimizations that assume no overflow; needed for gcc 4.3+ PGAC_PROG_CC_CFLAGS_OPT([-fwrapv]) PGAC_PROG_CXX_CFLAGS_OPT([-fwrapv]) # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+ PGAC_PROG_CC_CFLAGS_OPT([-fexcess-precision=standard]) PGAC_PROG_CXX_CFLAGS_OPT([-fexcess-precision=standard]) # Optimization flags for specific files that benefit from loop unrolling PGAC_PROG_CC_VAR_OPT(CFLAGS_UNROLL_LOOPS, [-funroll-loops]) # Optimization flags for specific files that benefit from vectorization PGAC_PROG_CC_VAR_OPT(CFLAGS_VECTORIZE, [-ftree-vectorize]) # # The following tests want to suppress various unhelpful warnings by adding # -Wno-foo switches. But gcc won't complain about unrecognized -Wno-foo # switches, so we have to test for the positive form and if that works, # add the negative form. Note that tests of this form typically need to # be duplicated in the BITCODE_CFLAGS setup stanza below. # # Suppress clang's unhelpful unused-command-line-argument warnings. NOT_THE_CFLAGS="" PGAC_PROG_CC_VAR_OPT(NOT_THE_CFLAGS, [-Wunused-command-line-argument]) if test -n "$NOT_THE_CFLAGS"; then CFLAGS="$CFLAGS -Wno-unused-command-line-argument" fi # Remove clang 12+'s compound-token-split-by-macro, as this causes a lot # of warnings when building plperl because of usages in the Perl headers. NOT_THE_CFLAGS="" PGAC_PROG_CC_VAR_OPT(NOT_THE_CFLAGS, [-Wcompound-token-split-by-macro]) if test -n "$NOT_THE_CFLAGS"; then CFLAGS="$CFLAGS -Wno-compound-token-split-by-macro" fi # Similarly disable useless truncation warnings from gcc 8+ NOT_THE_CFLAGS="" PGAC_PROG_CC_VAR_OPT(NOT_THE_CFLAGS, [-Wformat-truncation]) if test -n "$NOT_THE_CFLAGS"; then CFLAGS="$CFLAGS -Wno-format-truncation" fi NOT_THE_CFLAGS="" PGAC_PROG_CC_VAR_OPT(NOT_THE_CFLAGS, [-Wstringop-truncation]) if test -n "$NOT_THE_CFLAGS"; then CFLAGS="$CFLAGS -Wno-stringop-truncation" fi # Suppress clang 16's strict warnings about function casts NOT_THE_CFLAGS="" PGAC_PROG_CC_VAR_OPT(NOT_THE_CFLAGS, [-Wcast-function-type-strict]) if test -n "$NOT_THE_CFLAGS"; then CFLAGS="$CFLAGS -Wno-cast-function-type-strict" fi elif test "$ICC" = yes; then # Intel's compiler has a bug/misoptimization in checking for # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS. PGAC_PROG_CC_CFLAGS_OPT([-mp1]) PGAC_PROG_CXX_CFLAGS_OPT([-mp1]) # Make sure strict aliasing is off (though this is said to be the default) PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing]) PGAC_PROG_CXX_CFLAGS_OPT([-fno-strict-aliasing]) fi # If the compiler knows how to hide symbols, add the switch needed for that to # CFLAGS_SL_MODULE and define HAVE_VISIBILITY_ATTRIBUTE. # # This is done separately from the above because -fvisibility is supported by # quite a few different compilers, making the required repetition bothersome. # # We might need to add a separate test to check if # __attribute__((visibility("hidden"))) is supported, if we encounter a # compiler that supports one of the supported variants of -fvisibility=hidden # but uses a different syntax to mark a symbol as exported. if test "$GCC" = yes -o "$SUN_STUDIO_CC" = yes ; then PGAC_PROG_CC_VAR_OPT(CFLAGS_SL_MODULE, [-fvisibility=hidden]) # For C++ we additionally want -fvisibility-inlines-hidden PGAC_PROG_VARCXX_VARFLAGS_OPT(CXX, CXXFLAGS_SL_MODULE, [-fvisibility=hidden]) PGAC_PROG_VARCXX_VARFLAGS_OPT(CXX, CXXFLAGS_SL_MODULE, [-fvisibility-inlines-hidden]) have_visibility_attribute=$pgac_cv_prog_CC_cflags__fvisibility_hidden fi if test "$have_visibility_attribute" = "yes"; then AC_DEFINE([HAVE_VISIBILITY_ATTRIBUTE], 1, [Define to 1 if your compiler knows the visibility("hidden") attribute.]) fi AC_SUBST(CFLAGS_UNROLL_LOOPS) AC_SUBST(CFLAGS_VECTORIZE) AC_SUBST(CFLAGS_SL_MODULE) AC_SUBST(CXXFLAGS_SL_MODULE) # Determine flags used to emit bitcode for JIT inlining. # 1. We must duplicate any behaviour-changing compiler flags used above, # to keep compatibility with the compiler used for normal Postgres code. # 2. We don't bother to duplicate extra-warnings switches --- seeing a # warning in the main build is enough. # 3. But we must duplicate -Wno-warning flags, else we'll see those anyway. if test "$with_llvm" = yes ; then CLANGXX="$CLANG -xc++" PGAC_PROG_VARCC_VARFLAGS_OPT(CLANG, BITCODE_CFLAGS, [-fno-strict-aliasing]) PGAC_PROG_VARCXX_VARFLAGS_OPT(CLANGXX, BITCODE_CXXFLAGS, [-fno-strict-aliasing]) PGAC_PROG_VARCC_VARFLAGS_OPT(CLANG, BITCODE_CFLAGS, [-fwrapv]) PGAC_PROG_VARCXX_VARFLAGS_OPT(CLANGXX, BITCODE_CXXFLAGS, [-fwrapv]) PGAC_PROG_VARCC_VARFLAGS_OPT(CLANG, BITCODE_CFLAGS, [-fexcess-precision=standard]) PGAC_PROG_VARCXX_VARFLAGS_OPT(CLANGXX, BITCODE_CXXFLAGS, [-fexcess-precision=standard]) # Ideally bitcode should perhaps match $CC's use, or not, of outline atomic # functions, but for now we err on the side of suppressing them in bitcode, # because we can't assume they're available at runtime. This affects aarch64 # builds using the basic armv8-a ISA without LSE support. PGAC_PROG_VARCXX_VARFLAGS_OPT(CLANG, BITCODE_CFLAGS, [-mno-outline-atomics]) PGAC_PROG_VARCXX_VARFLAGS_OPT(CLANG, BITCODE_CXXFLAGS, [-mno-outline-atomics]) NOT_THE_CFLAGS="" PGAC_PROG_VARCC_VARFLAGS_OPT(CLANG, NOT_THE_CFLAGS, [-Wunused-command-line-argument]) if test -n "$NOT_THE_CFLAGS"; then BITCODE_CFLAGS="$BITCODE_CFLAGS -Wno-unused-command-line-argument" fi NOT_THE_CFLAGS="" PGAC_PROG_VARCC_VARFLAGS_OPT(CLANG, NOT_THE_CFLAGS, [-Wcompound-token-split-by-macro]) if test -n "$NOT_THE_CFLAGS"; then BITCODE_CFLAGS="$BITCODE_CFLAGS -Wno-compound-token-split-by-macro" fi NOT_THE_CFLAGS="" PGAC_PROG_VARCC_VARFLAGS_OPT(CLANG, NOT_THE_CFLAGS, [-Wformat-truncation]) if test -n "$NOT_THE_CFLAGS"; then BITCODE_CFLAGS="$BITCODE_CFLAGS -Wno-format-truncation" fi NOT_THE_CFLAGS="" PGAC_PROG_VARCC_VARFLAGS_OPT(CLANG, NOT_THE_CFLAGS, [-Wstringop-truncation]) if test -n "$NOT_THE_CFLAGS"; then BITCODE_CFLAGS="$BITCODE_CFLAGS -Wno-stringop-truncation" fi fi # supply -g if --enable-debug if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then CFLAGS="$CFLAGS -g" fi if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then CXXFLAGS="$CXXFLAGS -g" fi # enable code coverage if --enable-coverage if test "$enable_coverage" = yes; then if test "$GCC" = yes; then CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage" else AC_MSG_ERROR([--enable-coverage is supported only when using GCC]) fi fi # enable profiling if --enable-profiling if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then if test "$GCC" = yes; then AC_DEFINE([PROFILE_PID_DIR], 1, [Define to 1 to allow profiling output to be saved separately for each process.]) CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS" CXXFLAGS="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS" else AC_MSG_ERROR([--enable-profiling is supported only when using GCC]) fi fi # On Solaris, we need these #defines to get POSIX-conforming versions # of many interfaces (sigwait, getpwuid_r, shmdt, ...). if test "$PORTNAME" = "solaris"; then CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS" fi # We already have this in Makefile.win32, but configure needs it too if test "$PORTNAME" = "win32"; then CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32" fi # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the # user-specified flags (if any) at the end. This lets users override # the automatic additions. CFLAGS="$CFLAGS $user_CFLAGS" CXXFLAGS="$CXXFLAGS $user_CXXFLAGS" BITCODE_CFLAGS="$BITCODE_CFLAGS $user_BITCODE_CFLAGS" BITCODE_CXXFLAGS="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS" AC_SUBST(BITCODE_CFLAGS) AC_SUBST(BITCODE_CXXFLAGS) # The template file must set up CFLAGS_SL; we don't support user override AC_SUBST(CFLAGS_SL) # Check if the compiler still works with the final flag settings # (note, we're not checking that for CXX, which is optional) AC_MSG_CHECKING([whether the C compiler still works]) AC_LINK_IFELSE([AC_LANG_PROGRAM([], [return 0;])], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) AC_MSG_ERROR([cannot proceed])]) # Defend against gcc -ffast-math if test "$GCC" = yes; then AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [@%:@ifdef __FAST_MATH__ choke me @%:@endif])], [], [AC_MSG_ERROR([do not put -ffast-math in CFLAGS])]) fi # Defend against clang being used on x86-32 without SSE2 enabled. As current # versions of clang do not understand -fexcess-precision=standard, the use of # x87 floating point operations leads to problems like isinf possibly returning # false for a value that is infinite when converted from the 80bit register to # the 8byte memory representation. # # Only perform the test if the compiler doesn't understand # -fexcess-precision=standard, that way a potentially fixed compiler will work # automatically. if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no; then AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ @%:@if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__) choke me @%:@endif ])], [], [AC_MSG_ERROR([Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc.])]) fi AC_PROG_CPP AC_SUBST(GCC) # # Set up TAS assembly code if needed; the template file has now had its # chance to request this. # AC_CONFIG_LINKS([src/backend/port/tas.s:src/backend/port/tas/${tas_file}]) if test "$need_tas" = yes ; then TAS=tas.o else TAS="" fi AC_SUBST(TAS) AC_SUBST(DLSUFFIX)dnl AC_DEFINE_UNQUOTED([DLSUFFIX], ["$DLSUFFIX"], [Define to the file name extension of dynamically-loadable modules.]) # # Set up pkg_config in case we need it below # PKG_PROG_PKG_CONFIG # # Automatic dependency tracking # PGAC_ARG_BOOL(enable, depend, no, [turn on automatic dependency tracking], [autodepend=yes]) AC_SUBST(autodepend) # # Enable assert checks # PGAC_ARG_BOOL(enable, cassert, no, [enable assertion checks (for debugging)], [AC_DEFINE([USE_ASSERT_CHECKING], 1, [Define to 1 to build with assertion checks. (--enable-cassert)])]) # # Include directories # ac_save_IFS=$IFS IFS="${IFS}${PATH_SEPARATOR}" # SRCH_INC comes from the template file for dir in $with_includes $SRCH_INC; do if test -d "$dir"; then INCLUDES="$INCLUDES -I$dir" else AC_MSG_WARN([*** Include directory $dir does not exist.]) fi done IFS=$ac_save_IFS # # Library directories # ac_save_IFS=$IFS IFS="${IFS}${PATH_SEPARATOR}" # LIBRARY_DIRS comes from command line, SRCH_LIB from template file. for dir in $LIBRARY_DIRS $SRCH_LIB; do if test -d "$dir"; then LIBDIRS="$LIBDIRS -L$dir" else AC_MSG_WARN([*** Library directory $dir does not exist.]) fi done IFS=$ac_save_IFS # # ICU # AC_MSG_CHECKING([whether to build with ICU support]) PGAC_ARG_BOOL(with, icu, yes, [build without ICU support], [AC_DEFINE([USE_ICU], 1, [Define to build with ICU support. (--with-icu)])]) AC_MSG_RESULT([$with_icu]) AC_SUBST(with_icu) if test "$with_icu" = yes; then PKG_CHECK_MODULES(ICU, icu-uc icu-i18n) fi # # Optionally build Tcl modules (PL/Tcl) # AC_MSG_CHECKING([whether to build with Tcl]) PGAC_ARG_BOOL(with, tcl, no, [build Tcl modules (PL/Tcl)]) AC_MSG_RESULT([$with_tcl]) AC_SUBST([with_tcl]) # We see if the path to the Tcl/Tk configuration scripts is specified. # This will override the use of tclsh to find the paths to search. PGAC_ARG_REQ(with, tclconfig, [DIR], [tclConfig.sh is in DIR]) # # Optionally build Perl modules (PL/Perl) # AC_MSG_CHECKING([whether to build Perl modules]) PGAC_ARG_BOOL(with, perl, no, [build Perl modules (PL/Perl)]) AC_MSG_RESULT([$with_perl]) AC_SUBST(with_perl) # # Optionally build Python modules (PL/Python) # AC_MSG_CHECKING([whether to build Python modules]) PGAC_ARG_BOOL(with, python, no, [build Python modules (PL/Python)]) AC_MSG_RESULT([$with_python]) AC_SUBST(with_python) # # GSSAPI # AC_MSG_CHECKING([whether to build with GSSAPI support]) PGAC_ARG_BOOL(with, gssapi, no, [build with GSSAPI support], [ AC_DEFINE(ENABLE_GSS, 1, [Define to build with GSSAPI support. (--with-gssapi)]) krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab" ]) AC_MSG_RESULT([$with_gssapi]) AC_SUBST(with_gssapi) AC_SUBST(krb_srvtab) # # Kerberos configuration parameters # PGAC_ARG_REQ(with, krb-srvnam, [NAME], [default service principal name in Kerberos (GSSAPI) [postgres]], [], [with_krb_srvnam="postgres"]) AC_SUBST(with_krb_srvnam) AC_DEFINE_UNQUOTED([PG_KRB_SRVNAM], ["$with_krb_srvnam"], [Define to the name of the default PostgreSQL service principal in Kerberos (GSSAPI). (--with-krb-srvnam=NAME)]) # # PAM # AC_MSG_CHECKING([whether to build with PAM support]) PGAC_ARG_BOOL(with, pam, no, [build with PAM support], [AC_DEFINE([USE_PAM], 1, [Define to 1 to build with PAM support. (--with-pam)])]) AC_MSG_RESULT([$with_pam]) # # BSD AUTH # AC_MSG_CHECKING([whether to build with BSD Authentication support]) PGAC_ARG_BOOL(with, bsd-auth, no, [build with BSD Authentication support], [AC_DEFINE([USE_BSD_AUTH], 1, [Define to 1 to build with BSD Authentication support. (--with-bsd-auth)])]) AC_MSG_RESULT([$with_bsd_auth]) # # LDAP # AC_MSG_CHECKING([whether to build with LDAP support]) PGAC_ARG_BOOL(with, ldap, no, [build with LDAP support], [AC_DEFINE([USE_LDAP], 1, [Define to 1 to build with LDAP support. (--with-ldap)])]) AC_MSG_RESULT([$with_ldap]) AC_SUBST(with_ldap) # # Bonjour # AC_MSG_CHECKING([whether to build with Bonjour support]) PGAC_ARG_BOOL(with, bonjour, no, [build with Bonjour support], [AC_DEFINE([USE_BONJOUR], 1, [Define to 1 to build with Bonjour support. (--with-bonjour)])]) AC_MSG_RESULT([$with_bonjour]) # # SELinux # AC_MSG_CHECKING([whether to build with SELinux support]) PGAC_ARG_BOOL(with, selinux, no, [build with SELinux support]) AC_SUBST(with_selinux) AC_MSG_RESULT([$with_selinux]) # # Systemd # AC_MSG_CHECKING([whether to build with systemd support]) PGAC_ARG_BOOL(with, systemd, no, [build with systemd support], [AC_DEFINE([USE_SYSTEMD], 1, [Define to build with systemd support. (--with-systemd)])]) AC_SUBST(with_systemd) AC_MSG_RESULT([$with_systemd]) # # Readline # PGAC_ARG_BOOL(with, readline, yes, [do not use GNU Readline nor BSD Libedit for editing]) # readline on MinGW has problems with backslashes in psql and other bugs. # This is particularly a problem with non-US code pages. # Therefore disable its use until we understand the cause. 2004-07-20 if test "$PORTNAME" = "win32"; then if test "$with_readline" = yes; then AC_MSG_WARN([*** Readline does not work on MinGW --- disabling]) with_readline=no fi fi AC_SUBST(with_readline) # # Prefer libedit # PGAC_ARG_BOOL(with, libedit-preferred, no, [prefer BSD Libedit over GNU Readline]) # # liburing # AC_MSG_CHECKING([whether to build with liburing support]) PGAC_ARG_BOOL(with, liburing, no, [build with io_uring support, for asynchronous I/O], [AC_DEFINE([USE_LIBURING], 1, [Define to build with io_uring support. (--with-liburing)])]) AC_MSG_RESULT([$with_liburing]) AC_SUBST(with_liburing) if test "$with_liburing" = yes; then PKG_CHECK_MODULES(LIBURING, liburing) fi # # UUID library # # There are at least three UUID libraries in common use: the FreeBSD/NetBSD # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP # UUID library. More than one of these might be present on a given platform, # so we make the user say which one she wants. # PGAC_ARG_REQ(with, uuid, [LIB], [build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)]) if test x"$with_uuid" = x"" ; then with_uuid=no fi PGAC_ARG_BOOL(with, ossp-uuid, no, [obsolete spelling of --with-uuid=ossp]) if test "$with_ossp_uuid" = yes ; then with_uuid=ossp fi if test "$with_uuid" != no ; then if test "$with_uuid" = bsd ; then AC_DEFINE([HAVE_UUID_BSD], 1, [Define to 1 if you have BSD UUID support.]) elif test "$with_uuid" = e2fs ; then AC_DEFINE([HAVE_UUID_E2FS], 1, [Define to 1 if you have E2FS UUID support.]) elif test "$with_uuid" = ossp ; then AC_DEFINE([HAVE_UUID_OSSP], 1, [Define to 1 if you have OSSP UUID support.]) else AC_MSG_ERROR([--with-uuid must specify one of bsd, e2fs, or ossp]) fi fi AC_SUBST(with_uuid) # # libcurl # AC_MSG_CHECKING([whether to build with libcurl support]) PGAC_ARG_BOOL(with, libcurl, no, [build with libcurl support], [AC_DEFINE([USE_LIBCURL], 1, [Define to 1 to build with libcurl support. (--with-libcurl)])]) AC_MSG_RESULT([$with_libcurl]) AC_SUBST(with_libcurl) if test "$with_libcurl" = yes ; then # Check for libcurl 7.61.0 or higher (corresponding to RHEL8 and the ability # to explicitly set TLS 1.3 ciphersuites). PKG_CHECK_MODULES(LIBCURL, [libcurl >= 7.61.0]) # Curl's flags are kept separate from the standard CPPFLAGS/LDFLAGS. We use # them only for libpq-oauth. LIBCURL_CPPFLAGS= LIBCURL_LDFLAGS= # We only care about -I, -D, and -L switches. Note that -lcurl will be added # to LIBCURL_LDLIBS by PGAC_CHECK_LIBCURL, below. for pgac_option in $LIBCURL_CFLAGS; do case $pgac_option in -I*|-D*) LIBCURL_CPPFLAGS="$LIBCURL_CPPFLAGS $pgac_option";; esac done for pgac_option in $LIBCURL_LIBS; do case $pgac_option in -L*) LIBCURL_LDFLAGS="$LIBCURL_LDFLAGS $pgac_option";; esac done AC_SUBST(LIBCURL_CPPFLAGS) AC_SUBST(LIBCURL_LDFLAGS) # OAuth requires python for testing if test "$with_python" != yes; then AC_MSG_WARN([*** OAuth support tests require --with-python to run]) fi fi # # libnuma # AC_MSG_CHECKING([whether to build with libnuma support]) PGAC_ARG_BOOL(with, libnuma, no, [build with libnuma support], [AC_DEFINE([USE_LIBNUMA], 1, [Define to build with NUMA support. (--with-libnuma)])]) AC_MSG_RESULT([$with_libnuma]) AC_SUBST(with_libnuma) if test "$with_libnuma" = yes ; then AC_CHECK_LIB(numa, numa_available, [], [AC_MSG_ERROR([library 'libnuma' is required for NUMA support])]) PKG_CHECK_MODULES(LIBNUMA, numa) fi # # XML # AC_MSG_CHECKING([whether to build with XML support]) PGAC_ARG_BOOL(with, libxml, no, [build with XML support], [AC_DEFINE([USE_LIBXML], 1, [Define to 1 to build with XML support. (--with-libxml)])]) AC_MSG_RESULT([$with_libxml]) AC_SUBST(with_libxml) if test "$with_libxml" = yes ; then # Check pkg-config, then xml2-config. But for backwards compatibility, # setting XML2_CONFIG overrides pkg-config. AC_ARG_VAR(XML2_CONFIG, [path to xml2-config utility])dnl have_libxml2_pkg_config=no if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then PKG_CHECK_MODULES(XML2, [libxml-2.0 >= 2.6.23], [have_libxml2_pkg_config=yes], [# do nothing]) fi if test "$have_libxml2_pkg_config" = no ; then PGAC_PATH_PROGS(XML2_CONFIG, xml2-config) if test -n "$XML2_CONFIG"; then XML2_CFLAGS=`$XML2_CONFIG --cflags` XML2_LIBS=`$XML2_CONFIG --libs` fi fi # Note the user could also set XML2_CFLAGS/XML2_LIBS directly for pgac_option in $XML2_CFLAGS; do case $pgac_option in -I*|-D*) INCLUDES="$INCLUDES $pgac_option";; esac done for pgac_option in $XML2_LIBS; do case $pgac_option in -L*) LIBDIRS="$LIBDIRS $pgac_option";; esac done fi # # XSLT # PGAC_ARG_BOOL(with, libxslt, no, [use XSLT support when building contrib/xml2], [AC_DEFINE([USE_LIBXSLT], 1, [Define to 1 to use XSLT support when building contrib/xml2. (--with-libxslt)])]) AC_SUBST(with_libxslt) # # tzdata # PGAC_ARG_REQ(with, system-tzdata, [DIR], [use system time zone data in DIR]) AC_SUBST(with_system_tzdata) # # Zlib # PGAC_ARG_BOOL(with, zlib, yes, [do not use Zlib]) AC_SUBST(with_zlib) # # LZ4 # AC_MSG_CHECKING([whether to build with LZ4 support]) PGAC_ARG_BOOL(with, lz4, no, [build with LZ4 support], [AC_DEFINE([USE_LZ4], 1, [Define to 1 to build with LZ4 support. (--with-lz4)])]) AC_MSG_RESULT([$with_lz4]) AC_SUBST(with_lz4) if test "$with_lz4" = yes; then PKG_CHECK_MODULES(LZ4, liblz4) # We only care about -I, -D, and -L switches; # note that -llz4 will be added by AC_CHECK_LIB below. for pgac_option in $LZ4_CFLAGS; do case $pgac_option in -I*|-D*) INCLUDES="$INCLUDES $pgac_option";; esac done for pgac_option in $LZ4_LIBS; do case $pgac_option in -L*) LIBDIRS="$LIBDIRS $pgac_option";; esac done fi # # ZSTD # AC_MSG_CHECKING([whether to build with ZSTD support]) PGAC_ARG_BOOL(with, zstd, no, [build with ZSTD support], [AC_DEFINE([USE_ZSTD], 1, [Define to 1 to build with ZSTD support. (--with-zstd)])]) AC_MSG_RESULT([$with_zstd]) AC_SUBST(with_zstd) if test "$with_zstd" = yes; then PKG_CHECK_MODULES(ZSTD, libzstd >= 1.4.0) # We only care about -I, -D, and -L switches; # note that -lzstd will be added by AC_CHECK_LIB below. for pgac_option in $ZSTD_CFLAGS; do case $pgac_option in -I*|-D*) INCLUDES="$INCLUDES $pgac_option";; esac done for pgac_option in $ZSTD_LIBS; do case $pgac_option in -L*) LIBDIRS="$LIBDIRS $pgac_option";; esac done fi # # Assignments # CPPFLAGS="$CPPFLAGS $INCLUDES" LDFLAGS="$LDFLAGS $LIBDIRS" AC_ARG_VAR(LDFLAGS_EX, [extra linker flags for linking executables only]) AC_ARG_VAR(LDFLAGS_SL, [extra linker flags for linking shared libraries only]) PGAC_CHECK_STRIP AC_CHECK_TOOL(AR, ar, ar) if test "$PORTNAME" = "win32"; then AC_CHECK_TOOL(WINDRES, windres, windres) fi AC_PROG_INSTALL # When Autoconf chooses install-sh as install program it tries to generate # a relative path to it in each makefile where it substitutes it. This clashes # with our Makefile.global concept. This workaround helps. case $INSTALL in *install-sh*) install_bin='';; *) install_bin=$INSTALL;; esac AC_SUBST(install_bin) PGAC_PATH_PROGS(TAR, tar) AC_PROG_LN_S AC_PROG_MKDIR_P # When Autoconf chooses install-sh as mkdir -p program it tries to generate # a relative path to it in each makefile where it substitutes it. This clashes # with our Makefile.global concept. This workaround helps. case $MKDIR_P in *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';; esac PGAC_PATH_BISON PGAC_PATH_FLEX PGAC_PATH_PERL if test "$with_perl" = yes; then if test -z "$PERL"; then AC_MSG_ERROR([Perl not found]) fi PGAC_CHECK_PERL_CONFIGS([archlibexp,privlibexp,useshrplib]) if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true; then AC_MSG_ERROR([cannot build PL/Perl because libperl is not a shared library You might have to rebuild your Perl installation. Refer to the documentation for details. Use --without-perl to disable building PL/Perl.]) fi # On most platforms, archlibexp is also where the Perl include files live ... perl_includespec="-I$perl_archlibexp/CORE" # ... but on newer macOS versions, we must use -iwithsysroot to look # under $PG_SYSROOT if test \! -f "$perl_archlibexp/CORE/perl.h" ; then if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then perl_includespec="-iwithsysroot $perl_archlibexp/CORE" fi fi AC_SUBST(perl_includespec)dnl PGAC_CHECK_PERL_EMBED_CCFLAGS PGAC_CHECK_PERL_EMBED_LDFLAGS fi if test "$with_python" = yes; then PGAC_PATH_PYTHON PGAC_CHECK_PYTHON_EMBED_SETUP fi if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then PGAC_PATH_PROGS(ZIC, zic) if test -z "$ZIC"; then AC_MSG_ERROR([ When cross-compiling, either use the option --with-system-tzdata to use existing time-zone data, or set the environment variable ZIC to a zic program to use during the build.]) fi fi # # Pthreads # # For each platform, we need to know about any special compile and link # libraries, and whether the normal C function names are thread-safe. # WIN32 doesn't need the pthread tests; it always uses threads # # These tests are run before the library-tests, because linking with the # other libraries can pull in the pthread functions as a side-effect. We # want to use the -pthread or similar flags directly, and not rely on # the side-effects of linking with some other library. dnl note: We have to use AS_IF here rather than plain if. The AC_CHECK_HEADER dnl invocation below is the first one in the script, and autoconf generates dnl additional code for that, which must not be inside the if-block. AS_IF dnl knows how to do that. AS_IF([test "$PORTNAME" != "win32"], [ # then AX_PTHREAD # set thread flags # Some platforms use these, so just define them. They can't hurt if they # are not supported. PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE" # Check for *_r functions _CFLAGS="$CFLAGS" _LIBS="$LIBS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$LIBS $PTHREAD_LIBS" AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([ pthread.h not found])]) AC_CHECK_FUNCS([strerror_r]) # Do test here with the proper thread flags PGAC_FUNC_STRERROR_R_INT CFLAGS="$_CFLAGS" LIBS="$_LIBS" ], [ # else # do not use values from template file PTHREAD_CFLAGS= PTHREAD_LIBS= ]) # fi AC_SUBST(PTHREAD_CFLAGS) AC_SUBST(PTHREAD_LIBS) ## ## Libraries ## ## Most libraries are included only if they demonstrably provide a function ## we need, but libm is an exception: always include it, because there are ## too many compilers that play cute optimization games that will break ## probes for standard functions such as pow(). ## AC_CHECK_LIB(m, main) AC_SEARCH_LIBS(setproctitle, util) # gcc/clang's sanitizer helper library provides dlopen but not dlsym, thus # when enabling asan the dlopen check doesn't notice that -ldl is actually # required. Just checking for dlsym() ought to suffice. AC_SEARCH_LIBS(dlsym, dl) AC_SEARCH_LIBS(socket, [socket ws2_32]) AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt]) AC_SEARCH_LIBS(shm_open, rt) AC_SEARCH_LIBS(shm_unlink, rt) AC_SEARCH_LIBS(clock_gettime, rt) # Cygwin: AC_SEARCH_LIBS(shmget, cygipc) # *BSD: AC_SEARCH_LIBS(backtrace_symbols, execinfo) AC_SEARCH_LIBS(pthread_barrier_wait, pthread) if test "$with_readline" = yes; then PGAC_CHECK_READLINE if test x"$pgac_cv_check_readline" = x"no"; then AC_MSG_ERROR([readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support.]) fi fi if test "$with_zlib" = yes; then AC_CHECK_LIB(z, inflate, [], [AC_MSG_ERROR([zlib library not found If you have zlib already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-zlib to disable zlib support.])]) fi if test "$with_libcurl" = yes ; then PGAC_CHECK_LIBCURL fi if test "$with_gssapi" = yes ; then if test "$PORTNAME" != "win32"; then AC_SEARCH_LIBS(gss_store_cred_into, [gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'], [], [AC_MSG_ERROR([could not find function 'gss_store_cred_into' required for GSSAPI])]) else LIBS="$LIBS -lgssapi32" fi fi # # SSL Library # # There is currently only one supported SSL/TLS library: OpenSSL. # PGAC_ARG_REQ(with, ssl, [LIB], [use LIB for SSL/TLS support (openssl)]) if test x"$with_ssl" = x"" ; then with_ssl=no fi PGAC_ARG_BOOL(with, openssl, no, [obsolete spelling of --with-ssl=openssl]) if test "$with_openssl" = yes ; then with_ssl=openssl fi if test "$with_ssl" = openssl ; then dnl Order matters! # Minimum required OpenSSL version is 1.1.1 AC_DEFINE(OPENSSL_API_COMPAT, [0x10101000L], [Define to the OpenSSL API version in use. This avoids deprecation warnings from newer OpenSSL versions.]) AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])]) AC_CHECK_LIB(ssl, SSL_new, [], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])]) # Functions introduced in OpenSSL 1.1.1. AC_CHECK_FUNCS([SSL_CTX_set_ciphersuites], [], [AC_MSG_ERROR([OpenSSL version >= 1.1.1 is required for SSL support])]) # Function introduced in OpenSSL 1.0.2, not in LibreSSL. AC_CHECK_FUNCS([SSL_CTX_set_cert_cb]) # Function introduced in OpenSSL 1.1.1, not in LibreSSL. AC_CHECK_FUNCS([X509_get_signature_info SSL_CTX_set_num_tickets SSL_CTX_set_keylog_callback]) AC_DEFINE([USE_OPENSSL], 1, [Define to 1 to build with OpenSSL support. (--with-ssl=openssl)]) elif test "$with_ssl" != no ; then AC_MSG_ERROR([--with-ssl must specify openssl]) fi AC_SUBST(with_ssl) if test "$with_pam" = yes ; then AC_CHECK_LIB(pam, pam_start, [], [AC_MSG_ERROR([library 'pam' is required for PAM])]) fi if test "$with_libxml" = yes ; then AC_CHECK_LIB(xml2, xmlSaveToBuffer, [], [AC_MSG_ERROR([library 'xml2' (version >= 2.6.23) is required for XML support])]) fi if test "$with_libxslt" = yes ; then AC_CHECK_LIB(xslt, xsltCleanupGlobals, [], [AC_MSG_ERROR([library 'xslt' is required for XSLT support])]) fi if test "$with_liburing" = yes; then _LIBS="$LIBS" LIBS="$LIBURING_LIBS $LIBS" AC_CHECK_FUNCS([io_uring_queue_init_mem]) LIBS="$_LIBS" fi if test "$with_lz4" = yes ; then AC_CHECK_LIB(lz4, LZ4_compress_default, [], [AC_MSG_ERROR([library 'lz4' is required for LZ4 support])]) fi if test "$with_zstd" = yes ; then AC_CHECK_LIB(zstd, ZSTD_compress, [], [AC_MSG_ERROR([library 'zstd' is required for ZSTD support])]) fi # Note: We can test for libldap_r only after we know PTHREAD_LIBS if test "$with_ldap" = yes ; then _LIBS="$LIBS" if test "$PORTNAME" != "win32"; then AC_CHECK_LIB(ldap, ldap_bind, [], [AC_MSG_ERROR([library 'ldap' is required for LDAP])], [$EXTRA_LDAP_LIBS]) LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS" # This test is carried out against libldap. AC_CHECK_FUNCS([ldap_initialize]) # The separate ldap_r library only exists in OpenLDAP < 2.5, and if we # have 2.5 or later, we shouldn't even probe for ldap_r (we might find a # library from a separate OpenLDAP installation). The most reliable # way to check that is to check for a function introduced in 2.5. AC_CHECK_FUNC([ldap_verify_credentials], [thread_safe_libldap=yes], [thread_safe_libldap=no]) if test "$thread_safe_libldap" = no; then # Use ldap_r for FE if available, else assume ldap is thread-safe. # On some platforms ldap_r fails to link without PTHREAD_LIBS. LIBS="$_LIBS" AC_CHECK_LIB(ldap_r, ldap_bind, [LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"], [LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"], [$PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS]) else LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS" fi else AC_CHECK_LIB(wldap32, ldap_bind, [], [AC_MSG_ERROR([library 'wldap32' is required for LDAP])]) LDAP_LIBS_FE="-lwldap32" LDAP_LIBS_BE="-lwldap32" fi LIBS="$_LIBS" fi AC_SUBST(LDAP_LIBS_FE) AC_SUBST(LDAP_LIBS_BE) # for contrib/sepgsql if test "$with_selinux" = yes; then AC_CHECK_LIB(selinux, security_compute_create_name, [], [AC_MSG_ERROR([library 'libselinux', version 2.1.10 or newer, is required for SELinux support])]) fi # for contrib/uuid-ossp if test "$with_uuid" = bsd ; then # On BSD, the UUID functions are in libc AC_CHECK_FUNC(uuid_to_string, [UUID_LIBS=""], [AC_MSG_ERROR([BSD UUID functions are not present])]) elif test "$with_uuid" = e2fs ; then # On macOS, the UUID functions are in libc AC_CHECK_FUNC(uuid_generate, [UUID_LIBS=""], [AC_CHECK_LIB(uuid, uuid_generate, [UUID_LIBS="-luuid"], [AC_MSG_ERROR([library 'uuid' is required for E2FS UUID])])]) elif test "$with_uuid" = ossp ; then AC_CHECK_LIB(ossp-uuid, uuid_export, [UUID_LIBS="-lossp-uuid"], [AC_CHECK_LIB(uuid, uuid_export, [UUID_LIBS="-luuid"], [AC_MSG_ERROR([library 'ossp-uuid' or 'uuid' is required for OSSP UUID])])]) fi AC_SUBST(UUID_LIBS) ## ## Header files ## AC_CHECK_HEADERS(m4_normalize([ 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 ])) if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then AC_CHECK_HEADERS(readline/readline.h, [], [AC_CHECK_HEADERS(readline.h, [], [AC_MSG_ERROR([readline header not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support.])])]) AC_CHECK_HEADERS(readline/history.h, [], [AC_CHECK_HEADERS(history.h, [], [AC_MSG_ERROR([history header not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support.])])]) fi if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then # Some installations of libedit usurp /usr/include/readline/, which seems # bad practice, since in combined installations readline will have its headers # there. We might have to resort to AC_EGREP checks to make sure we found # the proper header... AC_CHECK_HEADERS(editline/readline.h, [], [AC_CHECK_HEADERS(readline.h, [], [AC_CHECK_HEADERS(readline/readline.h, [], [AC_MSG_ERROR([readline header not found If you have libedit already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable libedit support.])])])]) # Note: in a libedit installation, history.h is sometimes a dummy, and may # not be there at all. Hence, don't complain if not found. We must check # though, since in yet other versions it is an independent header. AC_CHECK_HEADERS(editline/history.h, [], [AC_CHECK_HEADERS(history.h, [], [AC_CHECK_HEADERS(readline/history.h)])]) fi if test "$with_zlib" = yes; then AC_CHECK_HEADER(zlib.h, [], [AC_MSG_ERROR([zlib header not found If you have zlib already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-zlib to disable zlib support.])]) fi PGAC_PATH_PROGS(LZ4, lz4) if test "$with_lz4" = yes; then AC_CHECK_HEADER(lz4.h, [], [AC_MSG_ERROR([lz4.h header file is required for LZ4])]) fi PGAC_PATH_PROGS(ZSTD, zstd) if test "$with_zstd" = yes; then AC_CHECK_HEADER(zstd.h, [], [AC_MSG_ERROR([zstd.h header file is required for ZSTD])]) fi if test "$with_gssapi" = yes ; then AC_CHECK_HEADERS(gssapi/gssapi.h, [], [AC_CHECK_HEADERS(gssapi.h, [], [AC_MSG_ERROR([gssapi.h header file is required for GSSAPI])])]) AC_CHECK_HEADERS(gssapi/gssapi_ext.h, [], [AC_CHECK_HEADERS(gssapi_ext.h, [], [AC_MSG_ERROR([gssapi_ext.h header file is required for GSSAPI])])]) fi PGAC_PATH_PROGS(OPENSSL, openssl) pgac_openssl_version="$($OPENSSL version 2> /dev/null || echo openssl not found)" AC_MSG_NOTICE([using openssl: $pgac_openssl_version]) if test "$with_ssl" = openssl ; then AC_CHECK_HEADER(openssl/ssl.h, [], [AC_MSG_ERROR([header file <openssl/ssl.h> is required for OpenSSL])]) AC_CHECK_HEADER(openssl/err.h, [], [AC_MSG_ERROR([header file <openssl/err.h> is required for OpenSSL])]) fi if test "$with_pam" = yes ; then AC_CHECK_HEADERS(security/pam_appl.h, [], [AC_CHECK_HEADERS(pam/pam_appl.h, [], [AC_MSG_ERROR([header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM.])])]) fi if test "$with_bsd_auth" = yes ; then AC_CHECK_HEADER(bsd_auth.h, [], [AC_MSG_ERROR([header file <bsd_auth.h> is required for BSD Authentication support])]) fi if test "$with_systemd" = yes ; then AC_CHECK_HEADER(systemd/sd-daemon.h, [], [AC_MSG_ERROR([header file <systemd/sd-daemon.h> is required for systemd support])]) fi if test "$with_libxml" = yes ; then AC_CHECK_HEADER(libxml/parser.h, [], [AC_MSG_ERROR([header file <libxml/parser.h> is required for XML support])]) fi if test "$with_libxslt" = yes ; then AC_CHECK_HEADER(libxslt/xslt.h, [], [AC_MSG_ERROR([header file <libxslt/xslt.h> is required for XSLT support])]) fi if test "$with_ldap" = yes ; then if test "$PORTNAME" != "win32"; then AC_CHECK_HEADER(ldap.h, [], [AC_MSG_ERROR([header file <ldap.h> is required for LDAP])]) PGAC_LDAP_SAFE else AC_CHECK_HEADER(winldap.h, [], [AC_MSG_ERROR([header file <winldap.h> is required for LDAP])], [AC_INCLUDES_DEFAULT #include <windows.h> ]) fi fi if test "$with_bonjour" = yes ; then AC_CHECK_HEADER(dns_sd.h, [], [AC_MSG_ERROR([header file <dns_sd.h> is required for Bonjour])]) dnl At some point we might add something like dnl AC_SEARCH_LIBS(DNSServiceRegister, dns_sd) dnl but right now, what that would mainly accomplish is to encourage dnl people to try to use the avahi implementation, which does not work. dnl If you want to use Apple's own Bonjour code on another platform, dnl just add -ldns_sd to LIBS manually. fi # for contrib/uuid-ossp if test "$with_uuid" = bsd ; then AC_CHECK_HEADERS(uuid.h, [AC_EGREP_HEADER([uuid_to_string], uuid.h, [], [AC_MSG_ERROR([header file <uuid.h> does not match BSD UUID library])])], [AC_MSG_ERROR([header file <uuid.h> is required for BSD UUID])]) elif test "$with_uuid" = e2fs ; then AC_CHECK_HEADERS(uuid/uuid.h, [AC_EGREP_HEADER([uuid_generate], uuid/uuid.h, [], [AC_MSG_ERROR([header file <uuid/uuid.h> does not match E2FS UUID library])])], [AC_CHECK_HEADERS(uuid.h, [AC_EGREP_HEADER([uuid_generate], uuid.h, [], [AC_MSG_ERROR([header file <uuid.h> does not match E2FS UUID library])])], [AC_MSG_ERROR([header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID])])]) elif test "$with_uuid" = ossp ; then AC_CHECK_HEADERS(ossp/uuid.h, [AC_EGREP_HEADER([uuid_export], ossp/uuid.h, [], [AC_MSG_ERROR([header file <ossp/uuid.h> does not match OSSP UUID library])])], [AC_CHECK_HEADERS(uuid.h, [AC_EGREP_HEADER([uuid_export], uuid.h, [], [AC_MSG_ERROR([header file <uuid.h> does not match OSSP UUID library])])], [AC_MSG_ERROR([header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID])])]) fi if test "$PORTNAME" = "win32" ; then AC_CHECK_HEADERS(crtdefs.h) fi if test "$with_libcurl" = yes ; then # Error out early if this platform can't support libpq-oauth. if test "$ac_cv_header_sys_event_h" != yes -a "$ac_cv_header_sys_epoll_h" != yes; then AC_MSG_ERROR([client-side OAuth is not supported on this platform]) fi fi ## ## Types, structures, compiler characteristics ## m4_defun([AC_PROG_CC_STDC], []) dnl We don't want that. AC_C_BIGENDIAN AC_C_INLINE PGAC_PRINTF_ARCHETYPE PGAC_C_STATIC_ASSERT PGAC_C_TYPEOF PGAC_C_TYPES_COMPATIBLE PGAC_C_BUILTIN_CONSTANT_P PGAC_C_BUILTIN_OP_OVERFLOW PGAC_C_BUILTIN_UNREACHABLE PGAC_C_COMPUTED_GOTO PGAC_STRUCT_TIMEZONE PGAC_UNION_SEMUN AC_CHECK_TYPES(socklen_t, [], [], [#include <sys/socket.h>]) PGAC_STRUCT_SOCKADDR_SA_LEN # MSVC doesn't cope well with defining restrict to __restrict, the # spelling it understands, because it conflicts with # __declspec(restrict). Therefore we define pg_restrict to the # appropriate definition, which presumably won't conflict. AC_C_RESTRICT if test "$ac_cv_c_restrict" = "no"; then pg_restrict="" else pg_restrict="$ac_cv_c_restrict" fi AC_DEFINE_UNQUOTED([pg_restrict], [$pg_restrict], [Define to keyword to use for C99 restrict support, or to nothing if not supported]) AC_CHECK_TYPES([struct option], [], [], [#ifdef HAVE_GETOPT_H #include <getopt.h> #endif]) case $host_cpu in x86_64) # On x86_64, check if we can compile a popcntq instruction AC_CACHE_CHECK([whether assembler supports x86_64 popcntq], [pgac_cv_have_x86_64_popcntq], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [long long x = 1; long long r; __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));])], [pgac_cv_have_x86_64_popcntq=yes], [pgac_cv_have_x86_64_popcntq=no])]) if test x"$pgac_cv_have_x86_64_popcntq" = xyes ; then AC_DEFINE(HAVE_X86_64_POPCNTQ, 1, [Define to 1 if the assembler supports X86_64's POPCNTQ instruction.]) fi ;; ppc*|powerpc*) # On PPC, check if compiler accepts "i"(x) when __builtin_constant_p(x). AC_CACHE_CHECK([whether __builtin_constant_p(x) implies "i"(x) acceptance], [pgac_cv_have_i_constraint__builtin_constant_p], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [static inline int addi(int ra, int si) { int res = 0; if (__builtin_constant_p(si)) __asm__ __volatile__( " addi %0,%1,%2\n" : "=r"(res) : "b"(ra), "i"(si)); return res; } int test_adds(int x) { return addi(3, x) + addi(x, 5); }], [])], [pgac_cv_have_i_constraint__builtin_constant_p=yes], [pgac_cv_have_i_constraint__builtin_constant_p=no])]) if test x"$pgac_cv_have_i_constraint__builtin_constant_p" = xyes ; then AC_DEFINE(HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P, 1, [Define to 1 if __builtin_constant_p(x) implies "i"(x) acceptance.]) fi ;; esac # Check largefile support. You might think this is a system service not a # compiler characteristic, but you'd be wrong. We must check this before # probing existence of related functions such as fseeko, since the largefile # defines can affect what is generated for that. if test "$PORTNAME" != "win32"; then AC_SYS_LARGEFILE dnl Autoconf 2.69's AC_SYS_LARGEFILE believes it's a good idea to #define dnl _DARWIN_USE_64_BIT_INODE, but it isn't: on macOS 10.5 that activates a dnl bug that causes readdir() to sometimes return EINVAL. On later macOS dnl versions where the feature actually works, it's on by default anyway. AH_VERBATIM([_DARWIN_USE_64_BIT_INODE],[]) fi dnl Check for largefile support (must be after AC_SYS_LARGEFILE) AC_CHECK_SIZEOF([off_t]) # If we don't have largefile support, can't handle segment size >= 2GB. if test "$ac_cv_sizeof_off_t" -lt 8; then if expr $RELSEG_SIZE '*' $blocksize '>=' 2 '*' 1024 '*' 1024; then AC_MSG_ERROR([Large file support is not enabled. Segment size cannot be larger than 1GB.]) fi fi ## ## Functions, global variables ## PGAC_VAR_INT_TIMEZONE # Some versions of libedit contain strlcpy(), setproctitle(), and other # symbols that that library has no business exposing to the world. Pending # acquisition of a clue by those developers, ignore libedit (including its # possible alias of libreadline) while checking for everything else. LIBS_including_readline="$LIBS" LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'` AC_CHECK_FUNCS(m4_normalize([ backtrace_symbols copyfile copy_file_range elf_aux_info getauxval getifaddrs getpeerucred inet_pton kqueue localeconv_l mbstowcs_l posix_fallocate ppoll pthread_is_threaded_np setproctitle setproctitle_fast strsignal syncfs sync_file_range uselocale wcstombs_l ])) # These typically are compiler builtins, for which AC_CHECK_FUNCS fails. PGAC_CHECK_BUILTIN_FUNC([__builtin_bswap16], [int x]) PGAC_CHECK_BUILTIN_FUNC([__builtin_bswap32], [int x]) PGAC_CHECK_BUILTIN_FUNC([__builtin_bswap64], [long int x]) # We assume that we needn't test all widths of these explicitly: PGAC_CHECK_BUILTIN_FUNC([__builtin_clz], [unsigned int x]) PGAC_CHECK_BUILTIN_FUNC([__builtin_ctz], [unsigned int x]) PGAC_CHECK_BUILTIN_FUNC([__builtin_popcount], [unsigned int x]) # __builtin_frame_address may draw a diagnostic for non-constant argument, # so it needs a different test function. PGAC_CHECK_BUILTIN_FUNC_PTR([__builtin_frame_address], [0]) # We require 64-bit fseeko() to be available, but run this check anyway # in case it finds that _LARGEFILE_SOURCE has to be #define'd for that. AC_FUNC_FSEEKO # posix_fadvise() is a no-op on Solaris, so don't incur function overhead # by calling it, 2009-04-02 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c dnl must use AS_IF here, else AC_REQUIRES inside AC_CHECK_DECLS malfunctions AS_IF([test "$PORTNAME" != "solaris"], [ AC_CHECK_FUNCS(posix_fadvise) AC_CHECK_DECLS(posix_fadvise, [], [], [#include <fcntl.h>]) ]) # fi AC_CHECK_DECLS(fdatasync, [], [], [#include <unistd.h>]) AC_CHECK_DECLS([strlcat, strlcpy, strnlen, strsep, timingsafe_bcmp]) # We can't use AC_CHECK_FUNCS to detect these functions, because it # won't handle deployment target restrictions on macOS AC_CHECK_DECLS([preadv], [], [], [#include <sys/uio.h>]) AC_CHECK_DECLS([pwritev], [], [], [#include <sys/uio.h>]) AC_CHECK_DECLS([strchrnul], [], [], [#include <string.h>]) AC_CHECK_DECLS([memset_s], [], [], [#define __STDC_WANT_LIB_EXT1__ 1 #include <string.h>]) # This is probably only present on macOS, but may as well check always AC_CHECK_DECLS(F_FULLFSYNC, [], [], [#include <fcntl.h>]) AC_REPLACE_FUNCS(m4_normalize([ explicit_bzero getopt getpeereid inet_aton mkdtemp strlcat strlcpy strnlen strsep timingsafe_bcmp ])) AC_REPLACE_FUNCS(pthread_barrier_wait) if test "$PORTNAME" = "win32" -o "$PORTNAME" = "cygwin"; then # Cygwin and (apparently, based on test results) Mingw both # have a broken strtof(), so substitute its implementation. # That's not a perfect fix, since it doesn't avoid double-rounding, # but we have no better options. AC_LIBOBJ([strtof]) AC_MSG_NOTICE([On $host_os we will use our strtof wrapper.]) fi # Similarly, use system's getopt_long() only if system provides struct option. if test x"$ac_cv_type_struct_option" = xyes ; then AC_REPLACE_FUNCS([getopt_long]) else AC_LIBOBJ(getopt_long) fi # On OpenBSD and Solaris, getopt() doesn't do what we want for long options # (i.e., allow '-' as a flag character), so use our version on those platforms. if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then AC_LIBOBJ(getopt) fi # mingw has adopted a GNU-centric interpretation of optind/optreset, # so always use our version on Windows. if test "$PORTNAME" = "win32"; then AC_LIBOBJ(getopt) AC_LIBOBJ(getopt_long) fi # Win32 (really MinGW) support if test "$PORTNAME" = "win32"; then AC_LIBOBJ(dirmod) AC_LIBOBJ(kill) AC_LIBOBJ(open) AC_LIBOBJ(system) AC_LIBOBJ(win32common) AC_LIBOBJ(win32dlopen) AC_LIBOBJ(win32env) AC_LIBOBJ(win32error) AC_LIBOBJ(win32fdatasync) AC_LIBOBJ(win32gai_strerror) AC_LIBOBJ(win32getrusage) AC_LIBOBJ(win32link) AC_LIBOBJ(win32ntdll) AC_LIBOBJ(win32pread) AC_LIBOBJ(win32pwrite) AC_LIBOBJ(win32security) AC_LIBOBJ(win32setlocale) AC_LIBOBJ(win32stat) fi # Cygwin needs only a bit of that if test "$PORTNAME" = "cygwin"; then AC_LIBOBJ(dirmod) fi AC_CHECK_FUNC(syslog, [AC_CHECK_HEADER(syslog.h, [AC_DEFINE(HAVE_SYSLOG, 1, [Define to 1 if you have the syslog interface.])])]) AC_CACHE_CHECK([for opterr], pgac_cv_var_int_opterr, [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int opterr; opterr = 1;])], [pgac_cv_var_int_opterr=yes], [pgac_cv_var_int_opterr=no])]) if test x"$pgac_cv_var_int_opterr" = x"yes"; then AC_DEFINE(HAVE_INT_OPTERR, 1, [Define to 1 if you have the global variable 'int opterr'.]) fi AC_CACHE_CHECK([for optreset], pgac_cv_var_int_optreset, [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int optreset; optreset = 1;])], [pgac_cv_var_int_optreset=yes], [pgac_cv_var_int_optreset=no])]) if test x"$pgac_cv_var_int_optreset" = x"yes"; then AC_DEFINE(HAVE_INT_OPTRESET, 1, [Define to 1 if you have the global variable 'int optreset'.]) fi if test "$with_icu" = yes; then ac_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $ICU_CFLAGS" # Verify we have ICU's header files AC_CHECK_HEADER(unicode/ucol.h, [], [AC_MSG_ERROR([header file <unicode/ucol.h> is required for ICU])]) CPPFLAGS=$ac_save_CPPFLAGS fi if test "$with_llvm" = yes; then PGAC_CHECK_LLVM_FUNCTIONS() fi # Lastly, restore full LIBS list and check for readline/libedit symbols LIBS="$LIBS_including_readline" if test "$with_readline" = yes; then PGAC_READLINE_VARIABLES AC_CHECK_FUNCS(m4_normalize([ append_history history_truncate_file rl_completion_matches rl_filename_completion_function rl_reset_screen_size rl_variable_bind ])) fi # This test makes sure that run tests work at all. Sometimes a shared # library is found by the linker, but the runtime linker can't find it. # This check should come after all modifications of compiler or linker # variables, and before any other run tests. AC_MSG_CHECKING([test program]) AC_RUN_IFELSE([AC_LANG_SOURCE([int main() { return 0; }])], [AC_MSG_RESULT(ok)], [AC_MSG_RESULT(failed) AC_MSG_ERROR([[ Could not execute a simple test program. This may be a problem related to locating shared libraries. Check the file 'config.log' for the exact reason.]])], [AC_MSG_RESULT([cross-compiling])]) # -------------------- # Run tests below here # -------------------- # Check size of void *, size_t (enables tweaks for > 32bit address space) AC_CHECK_SIZEOF([void *]) AC_CHECK_SIZEOF([size_t]) AC_CHECK_SIZEOF([long]) AC_CHECK_SIZEOF([long long]) # Determine memory alignment requirements for the basic C data types. AC_CHECK_ALIGNOF(short) AC_CHECK_ALIGNOF(int) AC_CHECK_ALIGNOF(long) AC_CHECK_ALIGNOF(int64_t) AC_CHECK_ALIGNOF(double) # Compute maximum alignment of any basic type. # # We require 'double' to have the strictest alignment among the basic types, # because otherwise the C ABI might impose 8-byte alignment on some of the # other C types that correspond to TYPALIGN_DOUBLE SQL types. That could # cause a mismatch between the tuple layout and the C struct layout of a # catalog tuple. We used to carefully order catalog columns such that any # fixed-width, attalign=4 columns were at offsets divisible by 8 regardless # of MAXIMUM_ALIGNOF to avoid that, but we no longer support any platforms # where TYPALIGN_DOUBLE != MAXIMUM_ALIGNOF. # # We assume without checking that long's alignment is at least as strong as # char, short, or int. Note that we intentionally do not consider any types # wider than 64 bits, as allowing MAXIMUM_ALIGNOF to exceed 8 would be too # much of a penalty for disk and memory space. MAX_ALIGNOF=$ac_cv_alignof_double if test $ac_cv_alignof_long -gt $MAX_ALIGNOF ; then AC_MSG_ERROR([alignment of 'long' is greater than the alignment of 'double']) fi if test $ac_cv_alignof_int64_t -gt $MAX_ALIGNOF ; then AC_MSG_ERROR([alignment of 'int64_t' is greater than the alignment of 'double']) fi AC_DEFINE_UNQUOTED(MAXIMUM_ALIGNOF, $MAX_ALIGNOF, [Define as the maximum alignment requirement of any C data type.]) # Some compilers offer a 128-bit integer scalar type. PGAC_TYPE_128BIT_INT # Check for various atomic operations now that we have checked how to declare # 64bit integers. PGAC_HAVE_GCC__SYNC_CHAR_TAS PGAC_HAVE_GCC__SYNC_INT32_TAS PGAC_HAVE_GCC__SYNC_INT32_CAS PGAC_HAVE_GCC__SYNC_INT64_CAS PGAC_HAVE_GCC__ATOMIC_INT32_CAS PGAC_HAVE_GCC__ATOMIC_INT64_CAS # Check for __get_cpuid() and __cpuid() AC_CACHE_CHECK([for __get_cpuid], [pgac_cv__get_cpuid], [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <cpuid.h>], [[unsigned int exx[4] = {0, 0, 0, 0}; __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]); ]])], [pgac_cv__get_cpuid="yes"], [pgac_cv__get_cpuid="no"])]) if test x"$pgac_cv__get_cpuid" = x"yes"; then AC_DEFINE(HAVE__GET_CPUID, 1, [Define to 1 if you have __get_cpuid.]) else # __cpuid() AC_CACHE_CHECK([for __cpuid], [pgac_cv__cpuid], [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <intrin.h>], [[unsigned int exx[4] = {0, 0, 0, 0}; __cpuid(exx, 1); ]])], [pgac_cv__cpuid="yes"], [pgac_cv__cpuid="no"])]) if test x"$pgac_cv__cpuid" = x"yes"; then AC_DEFINE(HAVE__CPUID, 1, [Define to 1 if you have __cpuid.]) fi fi # Check for __get_cpuid_count() and __cpuidex() in a similar fashion. AC_CACHE_CHECK([for __get_cpuid_count], [pgac_cv__get_cpuid_count], [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <cpuid.h>], [[unsigned int exx[4] = {0, 0, 0, 0}; __get_cpuid_count(7, 0, &exx[0], &exx[1], &exx[2], &exx[3]); ]])], [pgac_cv__get_cpuid_count="yes"], [pgac_cv__get_cpuid_count="no"])]) if test x"$pgac_cv__get_cpuid_count" = x"yes"; then AC_DEFINE(HAVE__GET_CPUID_COUNT, 1, [Define to 1 if you have __get_cpuid_count.]) else # __cpuidex() AC_CACHE_CHECK([for __cpuidex], [pgac_cv__cpuidex], [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <intrin.h>], [[unsigned int exx[4] = {0, 0, 0, 0}; __cpuidex(exx, 7, 0); ]])], [pgac_cv__cpuidex="yes"], [pgac_cv__cpuidex="no"])]) if test x"$pgac_cv__cpuidex" = x"yes"; then AC_DEFINE(HAVE__CPUIDEX, 1, [Define to 1 if you have __cpuidex.]) fi fi # Check for XSAVE intrinsics # PGAC_XSAVE_INTRINSICS() if test x"$pgac_xsave_intrinsics" = x"yes"; then AC_DEFINE(HAVE_XSAVE_INTRINSICS, 1, [Define to 1 if you have XSAVE intrinsics.]) fi # Check for AVX-512 popcount intrinsics # if test x"$host_cpu" = x"x86_64"; then PGAC_AVX512_POPCNT_INTRINSICS() if test x"$pgac_avx512_popcnt_intrinsics" = x"yes"; then AC_DEFINE(USE_AVX512_POPCNT_WITH_RUNTIME_CHECK, 1, [Define to 1 to use AVX-512 popcount instructions with a runtime check.]) fi fi # Check for SVE popcount intrinsics # if test x"$host_cpu" = x"aarch64"; then PGAC_SVE_POPCNT_INTRINSICS() if test x"$pgac_sve_popcnt_intrinsics" = x"yes"; then AC_DEFINE(USE_SVE_POPCNT_WITH_RUNTIME_CHECK, 1, [Define to 1 to use SVE popcount instructions with a runtime check.]) fi fi # Check for Intel SSE 4.2 intrinsics to do CRC calculations. # PGAC_SSE42_CRC32_INTRINSICS() # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all # define __SSE4_2__ in that case. AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ #ifndef __SSE4_2__ #error __SSE4_2__ not defined #endif ])], [SSE4_2_TARGETED=1]) # Check for ARMv8 CRC Extension intrinsics to do CRC calculations. # # First check if __crc32c* intrinsics can be used with the default compiler # flags. If not, check if adding "-march=armv8-a+crc+simd" flag helps. # On systems using soft-float ABI, "-march=armv8-a+crc" is required instead. # CFLAGS_CRC is set if the extra flag is required. PGAC_ARMV8_CRC32C_INTRINSICS([]) if test x"$pgac_armv8_crc32c_intrinsics" != x"yes"; then PGAC_ARMV8_CRC32C_INTRINSICS([-march=armv8-a+crc+simd]) if test x"$pgac_armv8_crc32c_intrinsics" != x"yes"; then PGAC_ARMV8_CRC32C_INTRINSICS([-march=armv8-a+crc]) fi fi # Check for LoongArch CRC intrinsics to do CRC calculations. # # Check if __builtin_loongarch_crcc_* intrinsics can be used # with the default compiler flags. PGAC_LOONGARCH_CRC32C_INTRINSICS() AC_SUBST(CFLAGS_CRC) # Select CRC-32C implementation. # # There are three methods of calculating CRC, in order of increasing # performance: # # 1. The fallback using a lookup table, called slicing-by-8 # 2. CRC-32C instructions (found in e.g. Intel SSE 4.2 and ARMv8 CRC Extension) # 3. Algorithms using carryless multiplication instructions # (e.g. Intel PCLMUL and Arm PMULL) # # If we can produce code (via function attributes or additional compiler # flags) that uses #2 (and possibly #3), we compile all implementations # and select which one to use at runtime, depending on what is supported # by the processor we're running on. # # If we are targeting a processor that has #2, we can use that without # runtime selection. # # Note that we do not use __attribute__((target("..."))) for the ARM CRC # instructions because until clang 16, using the ARM intrinsics still requires # special -march flags. Perhaps we can re-evaluate this decision after some # time has passed. # # You can skip the runtime check by setting the appropriate USE_*_CRC32 flag to 1 # in the template or configure command line. # # If we are targeting a LoongArch processor, CRC instructions are # always available (at least on 64 bit), so no runtime check is needed. if test x"$USE_SLICING_BY_8_CRC32C" = x"" && test x"$USE_SSE42_CRC32C" = x"" && test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"" && test x"$USE_ARMV8_CRC32C" = x"" && test x"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x"" && test x"$USE_LOONGARCH_CRC32C" = x""; then # Use Intel SSE 4.2 if available. if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && test x"$SSE4_2_TARGETED" = x"1" ; then USE_SSE42_CRC32C=1 else # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for # the runtime check. if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && (test x"$pgac_cv__get_cpuid" = x"yes" || test x"$pgac_cv__cpuid" = x"yes"); then USE_SSE42_CRC32C_WITH_RUNTIME_CHECK=1 else # Use ARM CRC Extension if available. if test x"$pgac_armv8_crc32c_intrinsics" = x"yes" && test x"$CFLAGS_CRC" = x""; then USE_ARMV8_CRC32C=1 else # ARM CRC Extension, with runtime check? if test x"$pgac_armv8_crc32c_intrinsics" = x"yes"; then USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK=1 else # LoongArch CRCC instructions. if test x"$pgac_loongarch_crc32c_intrinsics" = x"yes"; then USE_LOONGARCH_CRC32C=1 else # fall back to slicing-by-8 algorithm, which doesn't require any # special CPU support. USE_SLICING_BY_8_CRC32C=1 fi fi fi fi fi fi # Set PG_CRC32C_OBJS appropriately depending on the selected implementation. AC_MSG_CHECKING([which CRC-32C implementation to use]) if test x"$USE_SSE42_CRC32C" = x"1"; then AC_DEFINE(USE_SSE42_CRC32C, 1, [Define to 1 use Intel SSE 4.2 CRC instructions.]) PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sse42_choose.o" AC_MSG_RESULT(SSE 4.2) else if test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then AC_DEFINE(USE_SSE42_CRC32C_WITH_RUNTIME_CHECK, 1, [Define to 1 to use Intel SSE 4.2 CRC instructions with a runtime check.]) PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o" AC_MSG_RESULT(SSE 4.2 with runtime check) else if test x"$USE_ARMV8_CRC32C" = x"1"; then AC_DEFINE(USE_ARMV8_CRC32C, 1, [Define to 1 to use ARMv8 CRC Extension.]) PG_CRC32C_OBJS="pg_crc32c_armv8.o" AC_MSG_RESULT(ARMv8 CRC instructions) else if test x"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then AC_DEFINE(USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK, 1, [Define to 1 to use ARMv8 CRC Extension with a runtime check.]) PG_CRC32C_OBJS="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o" AC_MSG_RESULT(ARMv8 CRC instructions with runtime check) else if test x"$USE_LOONGARCH_CRC32C" = x"1"; then AC_DEFINE(USE_LOONGARCH_CRC32C, 1, [Define to 1 to use LoongArch CRCC instructions.]) PG_CRC32C_OBJS="pg_crc32c_loongarch.o" AC_MSG_RESULT(LoongArch CRCC instructions) else AC_DEFINE(USE_SLICING_BY_8_CRC32C, 1, [Define to 1 to use software CRC-32C implementation (slicing-by-8).]) PG_CRC32C_OBJS="pg_crc32c_sb8.o" AC_MSG_RESULT(slicing-by-8) fi fi fi fi fi AC_SUBST(PG_CRC32C_OBJS) # Check for carryless multiplication intrinsics to do vectorized CRC calculations. # if test x"$host_cpu" = x"x86_64"; then PGAC_AVX512_PCLMUL_INTRINSICS() fi AC_MSG_CHECKING([for vectorized CRC-32C]) if test x"$pgac_avx512_pclmul_intrinsics" = x"yes"; then AC_DEFINE(USE_AVX512_CRC32C_WITH_RUNTIME_CHECK, 1, [Define to 1 to use AVX-512 CRC algorithms with a runtime check.]) AC_MSG_RESULT(AVX-512 with runtime check) else AC_MSG_RESULT(none) fi # Select semaphore implementation type. if test "$PORTNAME" != "win32"; then if test x"$PREFERRED_SEMAPHORES" = x"NAMED_POSIX" ; then # Need sem_open for this AC_SEARCH_LIBS(sem_open, [rt pthread], [USE_NAMED_POSIX_SEMAPHORES=1]) fi if test x"$PREFERRED_SEMAPHORES" = x"UNNAMED_POSIX" ; then # Need sem_init for this AC_SEARCH_LIBS(sem_init, [rt pthread], [USE_UNNAMED_POSIX_SEMAPHORES=1]) fi AC_MSG_CHECKING([which semaphore API to use]) if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then AC_DEFINE(USE_NAMED_POSIX_SEMAPHORES, 1, [Define to select named POSIX semaphores.]) SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c" sematype="named POSIX" else if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then AC_DEFINE(USE_UNNAMED_POSIX_SEMAPHORES, 1, [Define to select unnamed POSIX semaphores.]) SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c" sematype="unnamed POSIX" else AC_DEFINE(USE_SYSV_SEMAPHORES, 1, [Define to select SysV-style semaphores.]) SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c" sematype="System V" fi fi AC_MSG_RESULT([$sematype]) else AC_DEFINE(USE_WIN32_SEMAPHORES, 1, [Define to select Win32-style semaphores.]) SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c" fi # Select shared-memory implementation type. if test "$PORTNAME" != "win32"; then AC_DEFINE(USE_SYSV_SHARED_MEMORY, 1, [Define to select SysV-style shared memory.]) SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c" else AC_DEFINE(USE_WIN32_SHARED_MEMORY, 1, [Define to select Win32-style shared memory.]) SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c" fi # Select random number source. If a TLS library is used then it will be the # first choice, else the native platform sources (Windows API or /dev/urandom) # will be used. AC_MSG_CHECKING([which random number source to use]) if test x"$with_ssl" = x"openssl" ; then AC_MSG_RESULT([OpenSSL]) elif test x"$PORTNAME" = x"win32" ; then AC_MSG_RESULT([Windows native]) elif test x"$cross_compiling" = x"yes"; then AC_MSG_RESULT([assuming /dev/urandom]) else AC_MSG_RESULT([/dev/urandom]) AC_CHECK_FILE([/dev/urandom], [], []) if test x"$ac_cv_file__dev_urandom" = x"no" ; then AC_MSG_ERROR([ no source of strong random numbers was found PostgreSQL can use OpenSSL, native Windows API or /dev/urandom as a source of random numbers.]) fi fi # If not set in template file, set bytes to use libc memset() if test x"$MEMSET_LOOP_LIMIT" = x"" ; then MEMSET_LOOP_LIMIT=1024 fi AC_DEFINE_UNQUOTED(MEMSET_LOOP_LIMIT, ${MEMSET_LOOP_LIMIT}, [Define bytes to use libc memset().]) if test "$enable_nls" = yes ; then PGAC_CHECK_GETTEXT fi # Check for Tcl configuration script tclConfig.sh if test "$with_tcl" = yes; then PGAC_PATH_TCLCONFIGSH([$with_tclconfig]) PGAC_EVAL_TCLCONFIGSH([$TCL_CONFIG_SH], [TCL_INCLUDE_SPEC,TCL_LIBS,TCL_LIB_SPEC,TCL_SHARED_BUILD]) if test "$TCL_SHARED_BUILD" != 1; then AC_MSG_ERROR([cannot build PL/Tcl because Tcl is not a shared library Use --without-tcl to disable building PL/Tcl.]) fi # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h> ac_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC" AC_CHECK_HEADER(tcl.h, [], [AC_MSG_ERROR([header file <tcl.h> is required for Tcl])]) CPPFLAGS=$ac_save_CPPFLAGS fi # check for <perl.h> if test "$with_perl" = yes; then ac_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $perl_includespec" AC_CHECK_HEADER(perl.h, [], [AC_MSG_ERROR([header file <perl.h> is required for Perl])], [#include <EXTERN.h>]) # While we're at it, check that we can link to libperl. # On most platforms, if perl.h is there then libperl.so will be too, but at # this writing Debian packages them separately. There is no known reason to # waste cycles on separate probes for the Tcl or Python libraries, though. # On some Red Hat platforms, the link attempt can fail if we don't use # CFLAGS_SL while building the test program. ac_save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $CFLAGS_SL" pgac_save_LIBS=$LIBS LIBS="$perl_embed_ldflags" AC_MSG_CHECKING([for libperl]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ #include <EXTERN.h> #include <perl.h> ], [perl_alloc();])], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) AC_MSG_ERROR([libperl library is required for Perl])]) LIBS=$pgac_save_LIBS CFLAGS=$ac_save_CFLAGS CPPFLAGS=$ac_save_CPPFLAGS fi # check for <Python.h> if test "$with_python" = yes; then ac_save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $python_includespec" AC_CHECK_HEADER(Python.h, [], [AC_MSG_ERROR([header file <Python.h> is required for Python])]) CPPFLAGS=$ac_save_CPPFLAGS fi # # Check for documentation-building tools # PGAC_PATH_PROGS(XMLLINT, xmllint) PGAC_PATH_PROGS(XSLTPROC, xsltproc) PGAC_PATH_PROGS(FOP, fop) PGAC_PATH_PROGS(DBTOEPUB, dbtoepub) # # Check for test tools # if test "$enable_tap_tests" = yes; then # Make sure we know where prove is. PGAC_PATH_PROGS(PROVE, prove) if test -z "$PROVE"; then AC_MSG_ERROR([prove not found]) fi # Check for necessary Perl modules. You might think we should use # AX_PROG_PERL_MODULES here, but prove might be part of a different Perl # installation than perl, eg on MSys, so we have to check using prove. AC_MSG_CHECKING(for Perl modules required for TAP tests) __CONFIG_HOST_OS__=$host_os; export __CONFIG_HOST_OS__ [modulestderr=`"$PROVE" "$srcdir/config/check_modules.pl" 2>&1 >/dev/null`] if test $? -eq 0; then # log the module version details, but don't show them interactively echo "$modulestderr" >&AS_MESSAGE_LOG_FD AC_MSG_RESULT(yes) else # on failure, though, show the results to the user AC_MSG_RESULT([$modulestderr]) AC_MSG_ERROR([Additional Perl modules are required to run TAP tests]) fi fi # If compiler will take -Wl,--as-needed (or various platform-specific # spellings thereof) then add that to LDFLAGS. This is much easier than # trying to filter LIBS to the minimum for each executable. # On (at least) some Red-Hat-derived systems, this switch breaks linking to # libreadline; therefore we postpone testing it until we know what library # dependencies readline has. The test code will try to link with $LIBS. if test "$with_readline" = yes; then link_test_func=readline else link_test_func=exit fi if test "$PORTNAME" = "darwin"; then PGAC_PROG_CC_LDFLAGS_OPT([-Wl,-dead_strip_dylibs], $link_test_func) elif test "$PORTNAME" = "openbsd"; then PGAC_PROG_CC_LDFLAGS_OPT([-Wl,-Bdynamic], $link_test_func) else PGAC_PROG_CC_LDFLAGS_OPT([-Wl,--as-needed], $link_test_func) fi # For linkers that understand --export-dynamic, add that to the LDFLAGS_EX_BE # (backend specific ldflags). One some platforms this will always fail (e.g., # windows), but on others it depends on the choice of linker (e.g., solaris). # macOS uses -export_dynamic instead. (On macOS, the option is only # needed when also using -flto, but we add it anyway since it's # harmless.) PGAC_PROG_CC_LD_VARFLAGS_OPT(LDFLAGS_EX_BE, [-Wl,--export-dynamic], $link_test_func) if test x"$LDFLAGS_EX_BE" = x""; then PGAC_PROG_CC_LD_VARFLAGS_OPT(LDFLAGS_EX_BE, [-Wl,-export_dynamic], $link_test_func) fi AC_SUBST(LDFLAGS_EX_BE) # Create compiler version string if test x"$GCC" = x"yes" ; then cc_string=`${CC} --version | sed q` case $cc_string in [[A-Za-z]]*) ;; *) cc_string="GCC $cc_string";; esac elif test x"$SUN_STUDIO_CC" = x"yes" ; then cc_string=`${CC} -V 2>&1 | sed q` else cc_string=$CC fi AC_DEFINE_UNQUOTED(PG_VERSION_STR, ["PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"], [A string containing the version number, platform, and C compiler]) AC_DEFINE_UNQUOTED(RUDB_VERSION_STR, ["RuDB Database Management System, version $RUDB_VERSION, build `date +"%Y%m%d"`"], [A string containing RuDB version number and build date]) # Supply a numeric version string for use by 3rd party add-ons # awk -F is a regex on some platforms, and not on others, so make "." a tab [PG_VERSION_NUM="`echo $PG_MAJORVERSION $PG_MINORVERSION | $AWK '{printf "%d%04d", $1, $2}'`"] AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_VERSION_NUM, [PostgreSQL version as a number]) AC_SUBST(PG_VERSION_NUM) # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not # literally, so that it's possible to override it at build time using # a command like "make ... PG_SYSROOT=path". This has to be done after # we've finished all configure checks that depend on CPPFLAGS. # The same for LDFLAGS, too. if test x"$PG_SYSROOT" != x; then CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"` LDFLAGS=`echo "$LDFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"` fi AC_SUBST(PG_SYSROOT) # Begin output steps AC_MSG_NOTICE([using compiler=$cc_string]) AC_MSG_NOTICE([using CFLAGS=$CFLAGS]) AC_MSG_NOTICE([using CPPFLAGS=$CPPFLAGS]) AC_MSG_NOTICE([using LDFLAGS=$LDFLAGS]) # Currently only used when LLVM is used if test "$with_llvm" = yes ; then AC_MSG_NOTICE([using CXX=$CXX]) AC_MSG_NOTICE([using CXXFLAGS=$CXXFLAGS]) AC_MSG_NOTICE([using CLANG=$CLANG]) AC_MSG_NOTICE([using BITCODE_CFLAGS=$BITCODE_CFLAGS]) AC_MSG_NOTICE([using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS]) fi # prepare build tree if outside source tree # Note 1: test -ef might not exist, but it's more reliable than `pwd`. # Note 2: /bin/pwd might be better than shell's built-in at getting # a symlink-free name. if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then vpath_build=no else vpath_build=yes if test "$no_create" != yes; then _AS_ECHO_N([preparing build tree... ]) pgac_abs_top_srcdir=`cd "$srcdir" && pwd` $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \ || AC_MSG_ERROR(failed) AC_MSG_RESULT(done) fi fi AC_SUBST(vpath_build) AC_CONFIG_FILES([GNUmakefile src/Makefile.global]) AC_CONFIG_LINKS([ src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template} ]) if test "$PORTNAME" = "win32"; then AC_CONFIG_COMMANDS([check_win32_symlinks],[ # Links sometimes fail undetected on Mingw - # so here we detect it and warn the user for FILE in $CONFIG_LINKS do # test -e works for symlinks in the MinGW console test -e `expr "$FILE" : '\([[^:]]*\)'` || AC_MSG_WARN([*** link for $FILE -- please fix by hand]) done ]) fi AC_CONFIG_HEADERS([src/include/pg_config.h], [ # Update timestamp for pg_config.h (see Makefile.global) echo >src/include/stamp-h ]) AC_CONFIG_HEADERS([src/interfaces/ecpg/include/ecpg_config.h], [echo >src/interfaces/ecpg/include/stamp-h]) AC_OUTPUT # Ensure that any meson build directories would reconfigure and see that # there's a conflicting in-tree build and can error out. if test "$vpath_build" = "no"; then touch meson.build fi contrib/Makefile
New file @@ -0,0 +1,112 @@ # contrib/Makefile subdir = contrib top_builddir = .. include $(top_builddir)/src/Makefile.global SUBDIRS = \ amcheck \ auth_delay \ auto_dump \ auto_explain \ basic_archive \ basebackup_to_shell \ bloom \ btree_gin \ btree_gist \ citext \ cube \ dblink \ dict_int \ dict_xsyn \ earthdistance \ fasttrun \ file_fdw \ fuzzystrmatch \ fulleq \ http \ hstore \ intagg \ intarray \ isn \ lo \ ltree \ mchar \ oid2name \ online_analyze \ pageinspect \ passwordcheck \ plantuner \ pg_buffercache \ pg_curl \ pg_freespacemap \ pg_hint_plan \ pg_logicalinspect \ pg_overexplain \ pg_prewarm \ pg_stat_statements \ pg_surgery \ pg_trgm \ pgaudit \ pgrowlocks \ pgstattuple \ pgvector \ pg_visibility \ pg_wait_sampling \ pg_walinspect \ postgres_fdw \ procdate \ seg \ spi \ tablefunc \ tcn \ tds_fdw \ test_decoding \ tsm_system_rows \ tsm_system_time \ unaccent \ vacuumlo \ dbcopies_decoding ifeq ($(with_ssl),openssl) SUBDIRS += pgcrypto sslinfo else ALWAYS_SUBDIRS += pgcrypto sslinfo endif ifneq ($(with_uuid),no) SUBDIRS += uuid-ossp else ALWAYS_SUBDIRS += uuid-ossp endif ifeq ($(with_libxml),yes) SUBDIRS += xml2 else ALWAYS_SUBDIRS += xml2 endif ifeq ($(with_selinux),yes) SUBDIRS += sepgsql else ALWAYS_SUBDIRS += sepgsql endif ifeq ($(with_perl),yes) SUBDIRS += bool_plperl hstore_plperl jsonb_plperl else ALWAYS_SUBDIRS += bool_plperl hstore_plperl jsonb_plperl endif ifeq ($(with_python),yes) SUBDIRS += hstore_plpython jsonb_plpython ltree_plpython else ALWAYS_SUBDIRS += hstore_plpython jsonb_plpython ltree_plpython endif # Missing: # start-scripts \ (does not have a makefile) $(recurse) $(recurse_always) contrib/README
New file @@ -0,0 +1,28 @@ The PostgreSQL contrib tree --------------------------- This subtree contains porting tools, analysis utilities, and plug-in features that are not part of the core PostgreSQL system, mainly because they address a limited audience or are too experimental to be part of the main source tree. This does not preclude their usefulness. User documentation for each module appears in the main SGML documentation. When building from the source distribution, these modules are not built automatically, unless you build the "world" target. You can also build and install them all by running "make all" and "make install" in this directory; or to build and install just one selected module, do the same in that module's subdirectory. Some directories supply new user-defined functions, operators, or types. To make use of one of these modules, after you have installed the code you need to register the new SQL objects in the database system by executing a CREATE EXTENSION command. In a fresh database, you can simply do CREATE EXTENSION module_name; See the PostgreSQL documentation for more information about this procedure. contrib/amcheck/.gitignore
New file @@ -0,0 +1,4 @@ # Generated subdirectories /log/ /results/ /tmp_check/ contrib/amcheck/Makefile
New file @@ -0,0 +1,30 @@ # contrib/amcheck/Makefile MODULE_big = amcheck OBJS = \ $(WIN32RES) \ verify_common.o \ verify_gin.o \ verify_heapam.o \ verify_nbtree.o EXTENSION = amcheck DATA = amcheck--1.2--1.3.sql amcheck--1.1--1.2.sql amcheck--1.0--1.1.sql amcheck--1.0.sql \ amcheck--1.3--1.4.sql amcheck--1.4--1.5.sql PGFILEDESC = "amcheck - function for verifying relation integrity" REGRESS = check check_btree check_gin check_heap EXTRA_INSTALL = contrib/pg_walinspect TAP_TESTS = 1 ifdef USE_PGXS PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) else subdir = contrib/amcheck top_builddir = ../.. include $(top_builddir)/src/Makefile.global include $(top_srcdir)/contrib/contrib-global.mk endif contrib/amcheck/amcheck--1.0--1.1.sql
New file @@ -0,0 +1,29 @@ /* contrib/amcheck/amcheck--1.0--1.1.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "ALTER EXTENSION amcheck UPDATE TO '1.1'" to load this file. \quit -- In order to avoid issues with dependencies when updating amcheck to 1.1, -- create new, overloaded versions of the 1.0 functions -- -- bt_index_check() -- CREATE FUNCTION bt_index_check(index regclass, heapallindexed boolean) RETURNS VOID AS 'MODULE_PATHNAME', 'bt_index_check' LANGUAGE C STRICT PARALLEL RESTRICTED; -- -- bt_index_parent_check() -- CREATE FUNCTION bt_index_parent_check(index regclass, heapallindexed boolean) RETURNS VOID AS 'MODULE_PATHNAME', 'bt_index_parent_check' LANGUAGE C STRICT PARALLEL RESTRICTED; -- Don't want these to be available to public REVOKE ALL ON FUNCTION bt_index_check(regclass, boolean) FROM PUBLIC; REVOKE ALL ON FUNCTION bt_index_parent_check(regclass, boolean) FROM PUBLIC; contrib/amcheck/amcheck--1.0.sql
New file @@ -0,0 +1,24 @@ /* contrib/amcheck/amcheck--1.0.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION amcheck" to load this file. \quit -- -- bt_index_check() -- CREATE FUNCTION bt_index_check(index regclass) RETURNS VOID AS 'MODULE_PATHNAME', 'bt_index_check' LANGUAGE C STRICT PARALLEL RESTRICTED; -- -- bt_index_parent_check() -- CREATE FUNCTION bt_index_parent_check(index regclass) RETURNS VOID AS 'MODULE_PATHNAME', 'bt_index_parent_check' LANGUAGE C STRICT PARALLEL RESTRICTED; -- Don't want these to be available to public REVOKE ALL ON FUNCTION bt_index_check(regclass) FROM PUBLIC; REVOKE ALL ON FUNCTION bt_index_parent_check(regclass) FROM PUBLIC; contrib/amcheck/amcheck--1.1--1.2.sql
New file @@ -0,0 +1,19 @@ /* contrib/amcheck/amcheck--1.1--1.2.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "ALTER EXTENSION amcheck UPDATE TO '1.2'" to load this file. \quit -- In order to avoid issues with dependencies when updating amcheck to 1.2, -- create new, overloaded version of the 1.1 function signature -- -- bt_index_parent_check() -- CREATE FUNCTION bt_index_parent_check(index regclass, heapallindexed boolean, rootdescend boolean) RETURNS VOID AS 'MODULE_PATHNAME', 'bt_index_parent_check' LANGUAGE C STRICT PARALLEL RESTRICTED; -- Don't want this to be available to public REVOKE ALL ON FUNCTION bt_index_parent_check(regclass, boolean, boolean) FROM PUBLIC; contrib/amcheck/amcheck--1.2--1.3.sql
New file @@ -0,0 +1,30 @@ /* contrib/amcheck/amcheck--1.2--1.3.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "ALTER EXTENSION amcheck UPDATE TO '1.3'" to load this file. \quit -- -- verify_heapam() -- CREATE FUNCTION verify_heapam(relation regclass, on_error_stop boolean default false, check_toast boolean default false, skip text default 'none', startblock bigint default null, endblock bigint default null, blkno OUT bigint, offnum OUT integer, attnum OUT integer, msg OUT text) RETURNS SETOF record AS 'MODULE_PATHNAME', 'verify_heapam' LANGUAGE C; -- Don't want this to be available to public REVOKE ALL ON FUNCTION verify_heapam(regclass, boolean, boolean, text, bigint, bigint) FROM PUBLIC; contrib/amcheck/amcheck--1.3--1.4.sql
New file @@ -0,0 +1,29 @@ /* contrib/amcheck/amcheck--1.3--1.4.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "ALTER EXTENSION amcheck UPDATE TO '1.4'" to load this file. \quit -- In order to avoid issues with dependencies when updating amcheck to 1.4, -- create new, overloaded versions of the 1.2 bt_index_parent_check signature, -- and 1.1 bt_index_check signature. -- -- bt_index_parent_check() -- CREATE FUNCTION bt_index_parent_check(index regclass, heapallindexed boolean, rootdescend boolean, checkunique boolean) RETURNS VOID AS 'MODULE_PATHNAME', 'bt_index_parent_check' LANGUAGE C STRICT PARALLEL RESTRICTED; -- -- bt_index_check() -- CREATE FUNCTION bt_index_check(index regclass, heapallindexed boolean, checkunique boolean) RETURNS VOID AS 'MODULE_PATHNAME', 'bt_index_check' LANGUAGE C STRICT PARALLEL RESTRICTED; -- We don't want this to be available to public REVOKE ALL ON FUNCTION bt_index_parent_check(regclass, boolean, boolean, boolean) FROM PUBLIC; REVOKE ALL ON FUNCTION bt_index_check(regclass, boolean, boolean) FROM PUBLIC; contrib/amcheck/amcheck--1.4--1.5.sql
New file @@ -0,0 +1,14 @@ /* contrib/amcheck/amcheck--1.4--1.5.sql */ -- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "ALTER EXTENSION amcheck UPDATE TO '1.5'" to load this file. \quit -- gin_index_check() -- CREATE FUNCTION gin_index_check(index regclass) RETURNS VOID AS 'MODULE_PATHNAME', 'gin_index_check' LANGUAGE C STRICT; REVOKE ALL ON FUNCTION gin_index_check(regclass) FROM PUBLIC; contrib/amcheck/amcheck.control
New file @@ -0,0 +1,5 @@ # amcheck extension comment = 'functions for verifying relation integrity' default_version = '1.5' module_pathname = '$libdir/amcheck' relocatable = true contrib/amcheck/expected/check.out
New file @@ -0,0 +1 @@ CREATE EXTENSION amcheck; contrib/amcheck/expected/check_btree.out
New file @@ -0,0 +1,275 @@ CREATE TABLE bttest_a(id int8); CREATE TABLE bttest_b(id int8); CREATE TABLE bttest_multi(id int8, data int8); CREATE TABLE delete_test_table (a bigint, b bigint, c bigint, d bigint); -- Stabilize tests ALTER TABLE bttest_a SET (autovacuum_enabled = false); ALTER TABLE bttest_b SET (autovacuum_enabled = false); ALTER TABLE bttest_multi SET (autovacuum_enabled = false); ALTER TABLE delete_test_table SET (autovacuum_enabled = false); INSERT INTO bttest_a SELECT * FROM generate_series(1, 100000); INSERT INTO bttest_b SELECT * FROM generate_series(100000, 1, -1); INSERT INTO bttest_multi SELECT i, i%2 FROM generate_series(1, 100000) as i; CREATE INDEX bttest_a_idx ON bttest_a USING btree (id) WITH (deduplicate_items = ON); CREATE INDEX bttest_b_idx ON bttest_b USING btree (id); CREATE UNIQUE INDEX bttest_multi_idx ON bttest_multi USING btree (id) INCLUDE (data); CREATE ROLE regress_bttest_role; -- verify permissions are checked (error due to function not callable) SET ROLE regress_bttest_role; SELECT bt_index_check('bttest_a_idx'::regclass); ERROR: permission denied for function bt_index_check SELECT bt_index_parent_check('bttest_a_idx'::regclass); ERROR: permission denied for function bt_index_parent_check RESET ROLE; -- we, intentionally, don't check relation permissions - it's useful -- to run this cluster-wide with a restricted account, and as tested -- above explicit permission has to be granted for that. GRANT EXECUTE ON FUNCTION bt_index_check(regclass) TO regress_bttest_role; GRANT EXECUTE ON FUNCTION bt_index_parent_check(regclass) TO regress_bttest_role; GRANT EXECUTE ON FUNCTION bt_index_check(regclass, boolean) TO regress_bttest_role; GRANT EXECUTE ON FUNCTION bt_index_parent_check(regclass, boolean) TO regress_bttest_role; SET ROLE regress_bttest_role; SELECT bt_index_check('bttest_a_idx'); bt_index_check ---------------- (1 row) SELECT bt_index_parent_check('bttest_a_idx'); bt_index_parent_check ----------------------- (1 row) RESET ROLE; -- verify plain tables are rejected (error) SELECT bt_index_check('bttest_a'); ERROR: "bttest_a" is not an index SELECT bt_index_parent_check('bttest_a'); ERROR: "bttest_a" is not an index -- verify non-existing indexes are rejected (error) SELECT bt_index_check(17); ERROR: could not open relation with OID 17 SELECT bt_index_parent_check(17); ERROR: could not open relation with OID 17 -- verify wrong index types are rejected (error) BEGIN; CREATE INDEX bttest_a_brin_idx ON bttest_a USING brin(id); SELECT bt_index_parent_check('bttest_a_brin_idx'); ERROR: expected "btree" index as targets for verification DETAIL: Relation "bttest_a_brin_idx" is a brin index. ROLLBACK; -- normal check outside of xact SELECT bt_index_check('bttest_a_idx'); bt_index_check ---------------- (1 row) -- more expansive tests SELECT bt_index_check('bttest_a_idx', true); bt_index_check ---------------- (1 row) SELECT bt_index_parent_check('bttest_b_idx', true); bt_index_parent_check ----------------------- (1 row) BEGIN; SELECT bt_index_check('bttest_a_idx'); bt_index_check ---------------- (1 row) SELECT bt_index_parent_check('bttest_b_idx'); bt_index_parent_check ----------------------- (1 row) -- make sure we don't have any leftover locks SELECT * FROM pg_locks WHERE relation = ANY(ARRAY['bttest_a', 'bttest_a_idx', 'bttest_b', 'bttest_b_idx']::regclass[]) AND pid = pg_backend_pid(); locktype | database | relation | page | tuple | virtualxid | transactionid | classid | objid | objsubid | virtualtransaction | pid | mode | granted | fastpath | waitstart ----------+----------+----------+------+-------+------------+---------------+---------+-------+----------+--------------------+-----+------+---------+----------+----------- (0 rows) COMMIT; -- Deduplication TRUNCATE bttest_a; INSERT INTO bttest_a SELECT 42 FROM generate_series(1, 2000); SELECT bt_index_check('bttest_a_idx', true); bt_index_check ---------------- (1 row) -- normal check outside of xact for index with included columns SELECT bt_index_check('bttest_multi_idx'); bt_index_check ---------------- (1 row) -- more expansive tests for index with included columns SELECT bt_index_parent_check('bttest_multi_idx', true, true); bt_index_parent_check ----------------------- (1 row) -- repeat expansive tests for index built using insertions TRUNCATE bttest_multi; INSERT INTO bttest_multi SELECT i, i%2 FROM generate_series(1, 100000) as i; SELECT bt_index_parent_check('bttest_multi_idx', true, true); bt_index_parent_check ----------------------- (1 row) -- -- Test for multilevel page deletion/downlink present checks, and rootdescend -- checks -- INSERT INTO delete_test_table SELECT i, 1, 2, 3 FROM generate_series(1,80000) i; ALTER TABLE delete_test_table ADD PRIMARY KEY (a,b,c,d); -- Delete most entries, and vacuum, deleting internal pages and creating "fast -- root" DELETE FROM delete_test_table WHERE a < 79990; VACUUM delete_test_table; SELECT bt_index_parent_check('delete_test_table_pkey', true); bt_index_parent_check ----------------------- (1 row) -- -- BUG #15597: must not assume consistent input toasting state when forming -- tuple. Bloom filter must fingerprint normalized index tuple representation. -- CREATE TABLE toast_bug(buggy text); ALTER TABLE toast_bug ALTER COLUMN buggy SET STORAGE extended; CREATE INDEX toasty ON toast_bug(buggy); -- pg_attribute entry for toasty.buggy (the index) will have plain storage: UPDATE pg_attribute SET attstorage = 'p' WHERE attrelid = 'toasty'::regclass AND attname = 'buggy'; -- Whereas pg_attribute entry for toast_bug.buggy (the table) still has extended storage: SELECT attstorage FROM pg_attribute WHERE attrelid = 'toast_bug'::regclass AND attname = 'buggy'; attstorage ------------ x (1 row) -- Insert compressible heap tuple (comfortably exceeds TOAST_TUPLE_THRESHOLD): INSERT INTO toast_bug SELECT repeat('a', 2200); -- Should not get false positive report of corruption: SELECT bt_index_check('toasty', true); bt_index_check ---------------- (1 row) -- -- Check that index expressions and predicates are run as the table's owner -- TRUNCATE bttest_a; INSERT INTO bttest_a SELECT * FROM generate_series(1, 1000); ALTER TABLE bttest_a OWNER TO regress_bttest_role; -- A dummy index function checking current_user CREATE FUNCTION ifun(int8) RETURNS int8 AS $$ BEGIN ASSERT current_user = 'regress_bttest_role', format('ifun(%s) called by %s', $1, current_user); RETURN $1; END; $$ LANGUAGE plpgsql IMMUTABLE; CREATE INDEX bttest_a_expr_idx ON bttest_a ((ifun(id) + ifun(0))) WHERE ifun(id + 10) > ifun(10); SELECT bt_index_check('bttest_a_expr_idx', true); bt_index_check ---------------- (1 row) -- UNIQUE constraint check SELECT bt_index_check('bttest_a_idx', heapallindexed => true, checkunique => true); bt_index_check ---------------- (1 row) SELECT bt_index_check('bttest_b_idx', heapallindexed => false, checkunique => true); bt_index_check ---------------- (1 row) SELECT bt_index_parent_check('bttest_a_idx', heapallindexed => true, rootdescend => true, checkunique => true); bt_index_parent_check ----------------------- (1 row) SELECT bt_index_parent_check('bttest_b_idx', heapallindexed => true, rootdescend => false, checkunique => true); bt_index_parent_check ----------------------- (1 row) -- Check that null values in an unique index are not treated as equal CREATE TABLE bttest_unique_nulls (a serial, b int, c int UNIQUE); INSERT INTO bttest_unique_nulls VALUES (generate_series(1, 10000), 2, default); SELECT bt_index_check('bttest_unique_nulls_c_key', heapallindexed => true, checkunique => true); bt_index_check ---------------- (1 row) CREATE INDEX on bttest_unique_nulls (b,c); SELECT bt_index_check('bttest_unique_nulls_b_c_idx', heapallindexed => true, checkunique => true); bt_index_check ---------------- (1 row) -- Check support of both 1B and 4B header sizes of short varlena datum CREATE TABLE varlena_bug (v text); ALTER TABLE varlena_bug ALTER column v SET storage plain; INSERT INTO varlena_bug VALUES ('x'); COPY varlena_bug from stdin; CREATE INDEX varlena_bug_idx on varlena_bug(v); SELECT bt_index_check('varlena_bug_idx', true); bt_index_check ---------------- (1 row) -- Also check that we compress varlena values, which were previously stored -- uncompressed in index. INSERT INTO varlena_bug VALUES (repeat('Test', 250)); ALTER TABLE varlena_bug ALTER COLUMN v SET STORAGE extended; SELECT bt_index_check('varlena_bug_idx', true); bt_index_check ---------------- (1 row) -- cleanup DROP TABLE bttest_a; DROP TABLE bttest_b; DROP TABLE bttest_multi; DROP TABLE delete_test_table; DROP TABLE toast_bug; DROP FUNCTION ifun(int8); DROP TABLE bttest_unique_nulls; DROP OWNED BY regress_bttest_role; -- permissions DROP ROLE regress_bttest_role; DROP TABLE varlena_bug; contrib/amcheck/expected/check_gin.out
New file @@ -0,0 +1,90 @@ -- Test of index bulk load SELECT setseed(1); setseed --------- (1 row) CREATE TABLE "gin_check"("Column1" int[]); -- posting trees (frequently used entries) INSERT INTO gin_check select array_agg(round(random()*255) ) from generate_series(1, 100000) as i group by i % 10000; -- posting leaves (sparse entries) INSERT INTO gin_check select array_agg(255 + round(random()*100)) from generate_series(1, 100) as i group by i % 100; CREATE INDEX gin_check_idx on "gin_check" USING GIN("Column1"); SELECT gin_index_check('gin_check_idx'); gin_index_check ----------------- (1 row) -- cleanup DROP TABLE gin_check; -- Test index inserts SELECT setseed(1); setseed --------- (1 row) CREATE TABLE "gin_check"("Column1" int[]); CREATE INDEX gin_check_idx on "gin_check" USING GIN("Column1"); ALTER INDEX gin_check_idx SET (fastupdate = false); -- posting trees INSERT INTO gin_check select array_agg(round(random()*255) ) from generate_series(1, 100000) as i group by i % 10000; -- posting leaves INSERT INTO gin_check select array_agg(100 + round(random()*255)) from generate_series(1, 100) as i group by i % 100; SELECT gin_index_check('gin_check_idx'); gin_index_check ----------------- (1 row) -- cleanup DROP TABLE gin_check; -- Test GIN over text array SELECT setseed(1); setseed --------- (1 row) CREATE TABLE "gin_check_text_array"("Column1" text[]); -- posting trees INSERT INTO gin_check_text_array select array_agg(sha256(round(random()*300)::text::bytea)::text) from generate_series(1, 100000) as i group by i % 10000; -- posting leaves INSERT INTO gin_check_text_array select array_agg(sha256(round(random()*300 + 300)::text::bytea)::text) from generate_series(1, 10000) as i group by i % 100; CREATE INDEX gin_check_text_array_idx on "gin_check_text_array" USING GIN("Column1"); SELECT gin_index_check('gin_check_text_array_idx'); gin_index_check ----------------- (1 row) -- cleanup DROP TABLE gin_check_text_array; -- Test GIN over jsonb CREATE TABLE "gin_check_jsonb"("j" jsonb); INSERT INTO gin_check_jsonb values ('{"a":[["b",{"x":1}],["b",{"x":2}]],"c":3}'); INSERT INTO gin_check_jsonb values ('[[14,2,3]]'); INSERT INTO gin_check_jsonb values ('[1,[14,2,3]]'); CREATE INDEX "gin_check_jsonb_idx" on gin_check_jsonb USING GIN("j" jsonb_path_ops); SELECT gin_index_check('gin_check_jsonb_idx'); gin_index_check ----------------- (1 row) -- cleanup DROP TABLE gin_check_jsonb; -- Test GIN multicolumn index CREATE TABLE "gin_check_multicolumn"(a text[], b text[]); INSERT INTO gin_check_multicolumn (a,b) values ('{a,c,e}','{b,d,f}'); CREATE INDEX "gin_check_multicolumn_idx" on gin_check_multicolumn USING GIN(a,b); SELECT gin_index_check('gin_check_multicolumn_idx'); gin_index_check ----------------- (1 row) -- cleanup DROP TABLE gin_check_multicolumn; contrib/amcheck/expected/check_heap.out
New file @@ -0,0 +1,240 @@ CREATE TABLE heaptest (a integer, b text); REVOKE ALL ON heaptest FROM PUBLIC; -- Check that invalid skip option is rejected SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'rope'); ERROR: invalid skip option HINT: Valid skip options are "all-visible", "all-frozen", and "none". -- Check specifying invalid block ranges when verifying an empty table SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 0, endblock := 0); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 5, endblock := 8); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) -- Check that valid options are not rejected nor corruption reported -- for an empty table, and that skip enum-like parameter is case-insensitive SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'none'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-frozen'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-visible'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'None'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'All-Frozen'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'All-Visible'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'NONE'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'ALL-FROZEN'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'ALL-VISIBLE'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) -- Add some data so subsequent tests are not entirely trivial INSERT INTO heaptest (a, b) (SELECT gs, repeat('x', gs) FROM generate_series(1,50) gs); -- pg_stat_io test: -- verify_heapam always uses a BAS_BULKREAD BufferAccessStrategy, whereas a -- sequential scan does so only if the table is large enough when compared to -- shared buffers (see initscan()). CREATE DATABASE ... also unconditionally -- uses a BAS_BULKREAD strategy, but we have chosen to use a tablespace and -- verify_heapam to provide coverage instead of adding another expensive -- operation to the main regression test suite. -- -- Create an alternative tablespace and move the heaptest table to it, causing -- it to be rewritten and all the blocks to reliably evicted from shared -- buffers -- guaranteeing actual reads when we next select from it in the -- same transaction. The heaptest table is smaller than the default -- wal_skip_threshold, so a wal_level=minimal commit reads the table into -- shared_buffers. A transaction delays that and excludes any autovacuum. SET allow_in_place_tablespaces = true; CREATE TABLESPACE regress_test_stats_tblspc LOCATION ''; SELECT sum(reads) AS stats_bulkreads_before FROM pg_stat_io WHERE context = 'bulkread' \gset BEGIN; ALTER TABLE heaptest SET TABLESPACE regress_test_stats_tblspc; -- Check that valid options are not rejected nor corruption reported -- for a non-empty table SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'none'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-frozen'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-visible'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 0, endblock := 0); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) COMMIT; -- verify_heapam should have read in the page written out by -- ALTER TABLE ... SET TABLESPACE ... -- causing an additional bulkread, which should be reflected in pg_stat_io. SELECT pg_stat_force_next_flush(); pg_stat_force_next_flush -------------------------- (1 row) SELECT sum(reads) AS stats_bulkreads_after FROM pg_stat_io WHERE context = 'bulkread' \gset SELECT :stats_bulkreads_after > :stats_bulkreads_before; ?column? ---------- t (1 row) CREATE ROLE regress_heaptest_role; -- verify permissions are checked (error due to function not callable) SET ROLE regress_heaptest_role; SELECT * FROM verify_heapam(relation := 'heaptest'); ERROR: permission denied for function verify_heapam RESET ROLE; GRANT EXECUTE ON FUNCTION verify_heapam(regclass, boolean, boolean, text, bigint, bigint) TO regress_heaptest_role; -- verify permissions are now sufficient SET ROLE regress_heaptest_role; SELECT * FROM verify_heapam(relation := 'heaptest'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) RESET ROLE; -- Check specifying invalid block ranges when verifying a non-empty table. SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 0, endblock := 10000); ERROR: ending block number must be between 0 and 0 SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 10000, endblock := 11000); ERROR: starting block number must be between 0 and 0 -- Vacuum freeze to change the xids encountered in subsequent tests VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) heaptest; -- Check that valid options are not rejected nor corruption reported -- for a non-empty frozen table SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'none'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-frozen'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-visible'); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 0, endblock := 0); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) -- Check that partitioned tables (the parent ones) which don't have visibility -- maps are rejected CREATE TABLE test_partitioned (a int, b text default repeat('x', 5000)) PARTITION BY list (a); SELECT * FROM verify_heapam('test_partitioned', startblock := NULL, endblock := NULL); ERROR: cannot check relation "test_partitioned" DETAIL: This operation is not supported for partitioned tables. -- Check that valid options are not rejected nor corruption reported -- for an empty partition table (the child one) CREATE TABLE test_partition partition OF test_partitioned FOR VALUES IN (1); SELECT * FROM verify_heapam('test_partition', startblock := NULL, endblock := NULL); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) -- Check that valid options are not rejected nor corruption reported -- for a non-empty partition table (the child one) INSERT INTO test_partitioned (a) (SELECT 1 FROM generate_series(1,1000) gs); SELECT * FROM verify_heapam('test_partition', startblock := NULL, endblock := NULL); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) -- Check that indexes are rejected CREATE INDEX test_index ON test_partition (a); SELECT * FROM verify_heapam('test_index', startblock := NULL, endblock := NULL); ERROR: cannot check relation "test_index" DETAIL: This operation is not supported for indexes. -- Check that views are rejected CREATE VIEW test_view AS SELECT 1; SELECT * FROM verify_heapam('test_view', startblock := NULL, endblock := NULL); ERROR: cannot check relation "test_view" DETAIL: This operation is not supported for views. -- Check that sequences are rejected CREATE SEQUENCE test_sequence; SELECT * FROM verify_heapam('test_sequence', startblock := NULL, endblock := NULL); blkno | offnum | attnum | msg -------+--------+--------+----- (0 rows) -- Check that foreign tables are rejected CREATE FOREIGN DATA WRAPPER dummy; CREATE SERVER dummy_server FOREIGN DATA WRAPPER dummy; CREATE FOREIGN TABLE test_foreign_table () SERVER dummy_server; SELECT * FROM verify_heapam('test_foreign_table', startblock := NULL, endblock := NULL); ERROR: cannot check relation "test_foreign_table" DETAIL: This operation is not supported for foreign tables. -- cleanup DROP TABLE heaptest; DROP TABLESPACE regress_test_stats_tblspc; DROP TABLE test_partition; DROP TABLE test_partitioned; DROP OWNED BY regress_heaptest_role; -- permissions DROP ROLE regress_heaptest_role; contrib/amcheck/meson.build
New file @@ -0,0 +1,55 @@ # Copyright (c) 2022-2025, PostgreSQL Global Development Group amcheck_sources = files( 'verify_common.c', 'verify_gin.c', 'verify_heapam.c', 'verify_nbtree.c', ) if host_system == 'windows' amcheck_sources += rc_lib_gen.process(win32ver_rc, extra_args: [ '--NAME', 'amcheck', '--FILEDESC', 'amcheck - function for verifying relation integrity',]) endif amcheck = shared_module('amcheck', amcheck_sources, kwargs: contrib_mod_args, ) contrib_targets += amcheck install_data( 'amcheck.control', 'amcheck--1.0.sql', 'amcheck--1.0--1.1.sql', 'amcheck--1.1--1.2.sql', 'amcheck--1.2--1.3.sql', 'amcheck--1.3--1.4.sql', 'amcheck--1.4--1.5.sql', kwargs: contrib_data_args, ) tests += { 'name': 'amcheck', 'sd': meson.current_source_dir(), 'bd': meson.current_build_dir(), 'regress': { 'sql': [ 'check', 'check_btree', 'check_gin', 'check_heap', ], }, 'tap': { 'tests': [ 't/001_verify_heapam.pl', 't/002_cic.pl', 't/003_cic_2pc.pl', 't/004_verify_nbtree_unique.pl', 't/005_pitr.pl', 't/006_verify_gin.pl', ], }, } contrib/amcheck/sql/check.sql
New file @@ -0,0 +1 @@ CREATE EXTENSION amcheck; contrib/amcheck/sql/check_btree.sql
New file @@ -0,0 +1,177 @@ CREATE TABLE bttest_a(id int8); CREATE TABLE bttest_b(id int8); CREATE TABLE bttest_multi(id int8, data int8); CREATE TABLE delete_test_table (a bigint, b bigint, c bigint, d bigint); -- Stabilize tests ALTER TABLE bttest_a SET (autovacuum_enabled = false); ALTER TABLE bttest_b SET (autovacuum_enabled = false); ALTER TABLE bttest_multi SET (autovacuum_enabled = false); ALTER TABLE delete_test_table SET (autovacuum_enabled = false); INSERT INTO bttest_a SELECT * FROM generate_series(1, 100000); INSERT INTO bttest_b SELECT * FROM generate_series(100000, 1, -1); INSERT INTO bttest_multi SELECT i, i%2 FROM generate_series(1, 100000) as i; CREATE INDEX bttest_a_idx ON bttest_a USING btree (id) WITH (deduplicate_items = ON); CREATE INDEX bttest_b_idx ON bttest_b USING btree (id); CREATE UNIQUE INDEX bttest_multi_idx ON bttest_multi USING btree (id) INCLUDE (data); CREATE ROLE regress_bttest_role; -- verify permissions are checked (error due to function not callable) SET ROLE regress_bttest_role; SELECT bt_index_check('bttest_a_idx'::regclass); SELECT bt_index_parent_check('bttest_a_idx'::regclass); RESET ROLE; -- we, intentionally, don't check relation permissions - it's useful -- to run this cluster-wide with a restricted account, and as tested -- above explicit permission has to be granted for that. GRANT EXECUTE ON FUNCTION bt_index_check(regclass) TO regress_bttest_role; GRANT EXECUTE ON FUNCTION bt_index_parent_check(regclass) TO regress_bttest_role; GRANT EXECUTE ON FUNCTION bt_index_check(regclass, boolean) TO regress_bttest_role; GRANT EXECUTE ON FUNCTION bt_index_parent_check(regclass, boolean) TO regress_bttest_role; SET ROLE regress_bttest_role; SELECT bt_index_check('bttest_a_idx'); SELECT bt_index_parent_check('bttest_a_idx'); RESET ROLE; -- verify plain tables are rejected (error) SELECT bt_index_check('bttest_a'); SELECT bt_index_parent_check('bttest_a'); -- verify non-existing indexes are rejected (error) SELECT bt_index_check(17); SELECT bt_index_parent_check(17); -- verify wrong index types are rejected (error) BEGIN; CREATE INDEX bttest_a_brin_idx ON bttest_a USING brin(id); SELECT bt_index_parent_check('bttest_a_brin_idx'); ROLLBACK; -- normal check outside of xact SELECT bt_index_check('bttest_a_idx'); -- more expansive tests SELECT bt_index_check('bttest_a_idx', true); SELECT bt_index_parent_check('bttest_b_idx', true); BEGIN; SELECT bt_index_check('bttest_a_idx'); SELECT bt_index_parent_check('bttest_b_idx'); -- make sure we don't have any leftover locks SELECT * FROM pg_locks WHERE relation = ANY(ARRAY['bttest_a', 'bttest_a_idx', 'bttest_b', 'bttest_b_idx']::regclass[]) AND pid = pg_backend_pid(); COMMIT; -- Deduplication TRUNCATE bttest_a; INSERT INTO bttest_a SELECT 42 FROM generate_series(1, 2000); SELECT bt_index_check('bttest_a_idx', true); -- normal check outside of xact for index with included columns SELECT bt_index_check('bttest_multi_idx'); -- more expansive tests for index with included columns SELECT bt_index_parent_check('bttest_multi_idx', true, true); -- repeat expansive tests for index built using insertions TRUNCATE bttest_multi; INSERT INTO bttest_multi SELECT i, i%2 FROM generate_series(1, 100000) as i; SELECT bt_index_parent_check('bttest_multi_idx', true, true); -- -- Test for multilevel page deletion/downlink present checks, and rootdescend -- checks -- INSERT INTO delete_test_table SELECT i, 1, 2, 3 FROM generate_series(1,80000) i; ALTER TABLE delete_test_table ADD PRIMARY KEY (a,b,c,d); -- Delete most entries, and vacuum, deleting internal pages and creating "fast -- root" DELETE FROM delete_test_table WHERE a < 79990; VACUUM delete_test_table; SELECT bt_index_parent_check('delete_test_table_pkey', true); -- -- BUG #15597: must not assume consistent input toasting state when forming -- tuple. Bloom filter must fingerprint normalized index tuple representation. -- CREATE TABLE toast_bug(buggy text); ALTER TABLE toast_bug ALTER COLUMN buggy SET STORAGE extended; CREATE INDEX toasty ON toast_bug(buggy); -- pg_attribute entry for toasty.buggy (the index) will have plain storage: UPDATE pg_attribute SET attstorage = 'p' WHERE attrelid = 'toasty'::regclass AND attname = 'buggy'; -- Whereas pg_attribute entry for toast_bug.buggy (the table) still has extended storage: SELECT attstorage FROM pg_attribute WHERE attrelid = 'toast_bug'::regclass AND attname = 'buggy'; -- Insert compressible heap tuple (comfortably exceeds TOAST_TUPLE_THRESHOLD): INSERT INTO toast_bug SELECT repeat('a', 2200); -- Should not get false positive report of corruption: SELECT bt_index_check('toasty', true); -- -- Check that index expressions and predicates are run as the table's owner -- TRUNCATE bttest_a; INSERT INTO bttest_a SELECT * FROM generate_series(1, 1000); ALTER TABLE bttest_a OWNER TO regress_bttest_role; -- A dummy index function checking current_user CREATE FUNCTION ifun(int8) RETURNS int8 AS $$ BEGIN ASSERT current_user = 'regress_bttest_role', format('ifun(%s) called by %s', $1, current_user); RETURN $1; END; $$ LANGUAGE plpgsql IMMUTABLE; CREATE INDEX bttest_a_expr_idx ON bttest_a ((ifun(id) + ifun(0))) WHERE ifun(id + 10) > ifun(10); SELECT bt_index_check('bttest_a_expr_idx', true); -- UNIQUE constraint check SELECT bt_index_check('bttest_a_idx', heapallindexed => true, checkunique => true); SELECT bt_index_check('bttest_b_idx', heapallindexed => false, checkunique => true); SELECT bt_index_parent_check('bttest_a_idx', heapallindexed => true, rootdescend => true, checkunique => true); SELECT bt_index_parent_check('bttest_b_idx', heapallindexed => true, rootdescend => false, checkunique => true); -- Check that null values in an unique index are not treated as equal CREATE TABLE bttest_unique_nulls (a serial, b int, c int UNIQUE); INSERT INTO bttest_unique_nulls VALUES (generate_series(1, 10000), 2, default); SELECT bt_index_check('bttest_unique_nulls_c_key', heapallindexed => true, checkunique => true); CREATE INDEX on bttest_unique_nulls (b,c); SELECT bt_index_check('bttest_unique_nulls_b_c_idx', heapallindexed => true, checkunique => true); -- Check support of both 1B and 4B header sizes of short varlena datum CREATE TABLE varlena_bug (v text); ALTER TABLE varlena_bug ALTER column v SET storage plain; INSERT INTO varlena_bug VALUES ('x'); COPY varlena_bug from stdin; x \. CREATE INDEX varlena_bug_idx on varlena_bug(v); SELECT bt_index_check('varlena_bug_idx', true); -- Also check that we compress varlena values, which were previously stored -- uncompressed in index. INSERT INTO varlena_bug VALUES (repeat('Test', 250)); ALTER TABLE varlena_bug ALTER COLUMN v SET STORAGE extended; SELECT bt_index_check('varlena_bug_idx', true); -- cleanup DROP TABLE bttest_a; DROP TABLE bttest_b; DROP TABLE bttest_multi; DROP TABLE delete_test_table; DROP TABLE toast_bug; DROP FUNCTION ifun(int8); DROP TABLE bttest_unique_nulls; DROP OWNED BY regress_bttest_role; -- permissions DROP ROLE regress_bttest_role; DROP TABLE varlena_bug; contrib/amcheck/sql/check_gin.sql
New file @@ -0,0 +1,62 @@ -- Test of index bulk load SELECT setseed(1); CREATE TABLE "gin_check"("Column1" int[]); -- posting trees (frequently used entries) INSERT INTO gin_check select array_agg(round(random()*255) ) from generate_series(1, 100000) as i group by i % 10000; -- posting leaves (sparse entries) INSERT INTO gin_check select array_agg(255 + round(random()*100)) from generate_series(1, 100) as i group by i % 100; CREATE INDEX gin_check_idx on "gin_check" USING GIN("Column1"); SELECT gin_index_check('gin_check_idx'); -- cleanup DROP TABLE gin_check; -- Test index inserts SELECT setseed(1); CREATE TABLE "gin_check"("Column1" int[]); CREATE INDEX gin_check_idx on "gin_check" USING GIN("Column1"); ALTER INDEX gin_check_idx SET (fastupdate = false); -- posting trees INSERT INTO gin_check select array_agg(round(random()*255) ) from generate_series(1, 100000) as i group by i % 10000; -- posting leaves INSERT INTO gin_check select array_agg(100 + round(random()*255)) from generate_series(1, 100) as i group by i % 100; SELECT gin_index_check('gin_check_idx'); -- cleanup DROP TABLE gin_check; -- Test GIN over text array SELECT setseed(1); CREATE TABLE "gin_check_text_array"("Column1" text[]); -- posting trees INSERT INTO gin_check_text_array select array_agg(sha256(round(random()*300)::text::bytea)::text) from generate_series(1, 100000) as i group by i % 10000; -- posting leaves INSERT INTO gin_check_text_array select array_agg(sha256(round(random()*300 + 300)::text::bytea)::text) from generate_series(1, 10000) as i group by i % 100; CREATE INDEX gin_check_text_array_idx on "gin_check_text_array" USING GIN("Column1"); SELECT gin_index_check('gin_check_text_array_idx'); -- cleanup DROP TABLE gin_check_text_array; -- Test GIN over jsonb CREATE TABLE "gin_check_jsonb"("j" jsonb); INSERT INTO gin_check_jsonb values ('{"a":[["b",{"x":1}],["b",{"x":2}]],"c":3}'); INSERT INTO gin_check_jsonb values ('[[14,2,3]]'); INSERT INTO gin_check_jsonb values ('[1,[14,2,3]]'); CREATE INDEX "gin_check_jsonb_idx" on gin_check_jsonb USING GIN("j" jsonb_path_ops); SELECT gin_index_check('gin_check_jsonb_idx'); -- cleanup DROP TABLE gin_check_jsonb; -- Test GIN multicolumn index CREATE TABLE "gin_check_multicolumn"(a text[], b text[]); INSERT INTO gin_check_multicolumn (a,b) values ('{a,c,e}','{b,d,f}'); CREATE INDEX "gin_check_multicolumn_idx" on gin_check_multicolumn USING GIN(a,b); SELECT gin_index_check('gin_check_multicolumn_idx'); -- cleanup DROP TABLE gin_check_multicolumn; contrib/amcheck/sql/check_heap.sql
New file @@ -0,0 +1,147 @@ CREATE TABLE heaptest (a integer, b text); REVOKE ALL ON heaptest FROM PUBLIC; -- Check that invalid skip option is rejected SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'rope'); -- Check specifying invalid block ranges when verifying an empty table SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 0, endblock := 0); SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 5, endblock := 8); -- Check that valid options are not rejected nor corruption reported -- for an empty table, and that skip enum-like parameter is case-insensitive SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'none'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-frozen'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-visible'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'None'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'All-Frozen'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'All-Visible'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'NONE'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'ALL-FROZEN'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'ALL-VISIBLE'); -- Add some data so subsequent tests are not entirely trivial INSERT INTO heaptest (a, b) (SELECT gs, repeat('x', gs) FROM generate_series(1,50) gs); -- pg_stat_io test: -- verify_heapam always uses a BAS_BULKREAD BufferAccessStrategy, whereas a -- sequential scan does so only if the table is large enough when compared to -- shared buffers (see initscan()). CREATE DATABASE ... also unconditionally -- uses a BAS_BULKREAD strategy, but we have chosen to use a tablespace and -- verify_heapam to provide coverage instead of adding another expensive -- operation to the main regression test suite. -- -- Create an alternative tablespace and move the heaptest table to it, causing -- it to be rewritten and all the blocks to reliably evicted from shared -- buffers -- guaranteeing actual reads when we next select from it in the -- same transaction. The heaptest table is smaller than the default -- wal_skip_threshold, so a wal_level=minimal commit reads the table into -- shared_buffers. A transaction delays that and excludes any autovacuum. SET allow_in_place_tablespaces = true; CREATE TABLESPACE regress_test_stats_tblspc LOCATION ''; SELECT sum(reads) AS stats_bulkreads_before FROM pg_stat_io WHERE context = 'bulkread' \gset BEGIN; ALTER TABLE heaptest SET TABLESPACE regress_test_stats_tblspc; -- Check that valid options are not rejected nor corruption reported -- for a non-empty table SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'none'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-frozen'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-visible'); SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 0, endblock := 0); COMMIT; -- verify_heapam should have read in the page written out by -- ALTER TABLE ... SET TABLESPACE ... -- causing an additional bulkread, which should be reflected in pg_stat_io. SELECT pg_stat_force_next_flush(); SELECT sum(reads) AS stats_bulkreads_after FROM pg_stat_io WHERE context = 'bulkread' \gset SELECT :stats_bulkreads_after > :stats_bulkreads_before; CREATE ROLE regress_heaptest_role; -- verify permissions are checked (error due to function not callable) SET ROLE regress_heaptest_role; SELECT * FROM verify_heapam(relation := 'heaptest'); RESET ROLE; GRANT EXECUTE ON FUNCTION verify_heapam(regclass, boolean, boolean, text, bigint, bigint) TO regress_heaptest_role; -- verify permissions are now sufficient SET ROLE regress_heaptest_role; SELECT * FROM verify_heapam(relation := 'heaptest'); RESET ROLE; -- Check specifying invalid block ranges when verifying a non-empty table. SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 0, endblock := 10000); SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 10000, endblock := 11000); -- Vacuum freeze to change the xids encountered in subsequent tests VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) heaptest; -- Check that valid options are not rejected nor corruption reported -- for a non-empty frozen table SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'none'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-frozen'); SELECT * FROM verify_heapam(relation := 'heaptest', skip := 'all-visible'); SELECT * FROM verify_heapam(relation := 'heaptest', startblock := 0, endblock := 0); -- Check that partitioned tables (the parent ones) which don't have visibility -- maps are rejected CREATE TABLE test_partitioned (a int, b text default repeat('x', 5000)) PARTITION BY list (a); SELECT * FROM verify_heapam('test_partitioned', startblock := NULL, endblock := NULL); -- Check that valid options are not rejected nor corruption reported -- for an empty partition table (the child one) CREATE TABLE test_partition partition OF test_partitioned FOR VALUES IN (1); SELECT * FROM verify_heapam('test_partition', startblock := NULL, endblock := NULL); -- Check that valid options are not rejected nor corruption reported -- for a non-empty partition table (the child one) INSERT INTO test_partitioned (a) (SELECT 1 FROM generate_series(1,1000) gs); SELECT * FROM verify_heapam('test_partition', startblock := NULL, endblock := NULL); -- Check that indexes are rejected CREATE INDEX test_index ON test_partition (a); SELECT * FROM verify_heapam('test_index', startblock := NULL, endblock := NULL); -- Check that views are rejected CREATE VIEW test_view AS SELECT 1; SELECT * FROM verify_heapam('test_view', startblock := NULL, endblock := NULL); -- Check that sequences are rejected CREATE SEQUENCE test_sequence; SELECT * FROM verify_heapam('test_sequence', startblock := NULL, endblock := NULL); -- Check that foreign tables are rejected CREATE FOREIGN DATA WRAPPER dummy; CREATE SERVER dummy_server FOREIGN DATA WRAPPER dummy; CREATE FOREIGN TABLE test_foreign_table () SERVER dummy_server; SELECT * FROM verify_heapam('test_foreign_table', startblock := NULL, endblock := NULL); -- cleanup DROP TABLE heaptest; DROP TABLESPACE regress_test_stats_tblspc; DROP TABLE test_partition; DROP TABLE test_partitioned; DROP OWNED BY regress_heaptest_role; -- permissions DROP ROLE regress_heaptest_role; contrib/amcheck/t/001_verify_heapam.pl
New file @@ -0,0 +1,273 @@ # Copyright (c) 2021-2025, PostgreSQL Global Development Group use strict; use warnings FATAL => 'all'; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; use Test::More; my $node; # # Test set-up # $node = PostgreSQL::Test::Cluster->new('test'); $node->init(no_data_checksums => 1); $node->append_conf('postgresql.conf', 'autovacuum=off'); $node->start; $node->safe_psql('postgres', q(CREATE EXTENSION amcheck)); # # Check a table with data loaded but no corruption, freezing, etc. # fresh_test_table('test'); check_all_options_uncorrupted('test', 'plain'); # # Check a corrupt table # fresh_test_table('test'); corrupt_first_page('test'); detects_heap_corruption("verify_heapam('test')", "plain corrupted table"); detects_heap_corruption( "verify_heapam('test', skip := 'all-visible')", "plain corrupted table skipping all-visible"); detects_heap_corruption( "verify_heapam('test', skip := 'all-frozen')", "plain corrupted table skipping all-frozen"); detects_heap_corruption( "verify_heapam('test', check_toast := false)", "plain corrupted table skipping toast"); detects_heap_corruption( "verify_heapam('test', startblock := 0, endblock := 0)", "plain corrupted table checking only block zero"); # # Check a corrupt table with all-frozen data # fresh_test_table('test'); $node->safe_psql('postgres', q(VACUUM (FREEZE, DISABLE_PAGE_SKIPPING) test)); detects_no_corruption("verify_heapam('test')", "all-frozen not corrupted table"); corrupt_first_page('test'); detects_heap_corruption("verify_heapam('test')", "all-frozen corrupted table"); detects_no_corruption( "verify_heapam('test', skip := 'all-frozen')", "all-frozen corrupted table skipping all-frozen"); # # Check a sequence with no corruption. The current implementation of sequences # doesn't require its own test setup, since sequences are really just heap # tables under-the-hood. To guard against future implementation changes made # without remembering to update verify_heapam, we create and exercise a # sequence, checking along the way that it passes corruption checks. # fresh_test_sequence('test_seq'); check_all_options_uncorrupted('test_seq', 'plain'); advance_test_sequence('test_seq'); check_all_options_uncorrupted('test_seq', 'plain'); set_test_sequence('test_seq'); check_all_options_uncorrupted('test_seq', 'plain'); reset_test_sequence('test_seq'); check_all_options_uncorrupted('test_seq', 'plain'); # Returns the filesystem path for the named relation. sub relation_filepath { my ($relname) = @_; my $pgdata = $node->data_dir; my $rel = $node->safe_psql('postgres', qq(SELECT pg_relation_filepath('$relname'))); die "path not found for relation $relname" unless defined $rel; return "$pgdata/$rel"; } # (Re)create and populate a test table of the given name. sub fresh_test_table { my ($relname) = @_; return $node->safe_psql( 'postgres', qq( DROP TABLE IF EXISTS $relname CASCADE; CREATE TABLE $relname (a integer, b text); ALTER TABLE $relname SET (autovacuum_enabled=false); ALTER TABLE $relname ALTER b SET STORAGE external; INSERT INTO $relname (a, b) (SELECT gs, repeat('b',gs*10) FROM generate_series(1,1000) gs); BEGIN; SAVEPOINT s1; SELECT 1 FROM $relname WHERE a = 42 FOR UPDATE; UPDATE $relname SET b = b WHERE a = 42; RELEASE s1; SAVEPOINT s1; SELECT 1 FROM $relname WHERE a = 42 FOR UPDATE; UPDATE $relname SET b = b WHERE a = 42; COMMIT; )); } # Create a test sequence of the given name. sub fresh_test_sequence { my ($seqname) = @_; return $node->safe_psql( 'postgres', qq( DROP SEQUENCE IF EXISTS $seqname CASCADE; CREATE SEQUENCE $seqname INCREMENT BY 13 MINVALUE 17 START WITH 23; SELECT nextval('$seqname'); SELECT setval('$seqname', currval('$seqname') + nextval('$seqname')); )); } # Call SQL functions to increment the sequence sub advance_test_sequence { my ($seqname) = @_; return $node->safe_psql( 'postgres', qq( SELECT nextval('$seqname'); )); } # Call SQL functions to set the sequence sub set_test_sequence { my ($seqname) = @_; return $node->safe_psql( 'postgres', qq( SELECT setval('$seqname', 102); )); } # Call SQL functions to reset the sequence sub reset_test_sequence { my ($seqname) = @_; return $node->safe_psql( 'postgres', qq( ALTER SEQUENCE $seqname RESTART WITH 51 )); } # Stops the test node, corrupts the first page of the named relation, and # restarts the node. sub corrupt_first_page { my ($relname) = @_; my $relpath = relation_filepath($relname); $node->stop; my $fh; open($fh, '+<', $relpath) or BAIL_OUT("open failed: $!"); binmode $fh; # Corrupt some line pointers. The values are chosen to hit the # various line-pointer-corruption checks in verify_heapam.c # on both little-endian and big-endian architectures. sysseek($fh, 32, 0) or BAIL_OUT("sysseek failed: $!"); syswrite( $fh, pack("L*", 0xAAA15550, 0xAAA0D550, 0x00010000, 0x00008000, 0x0000800F, 0x001e8000) ) or BAIL_OUT("syswrite failed: $!"); close($fh) or BAIL_OUT("close failed: $!"); $node->start; } sub detects_heap_corruption { local $Test::Builder::Level = $Test::Builder::Level + 1; my ($function, $testname) = @_; detects_corruption( $function, $testname, qr/line pointer redirection to item at offset \d+ precedes minimum offset \d+/, qr/line pointer redirection to item at offset \d+ exceeds maximum offset \d+/, qr/line pointer to page offset \d+ is not maximally aligned/, qr/line pointer length \d+ is less than the minimum tuple header size \d+/, qr/line pointer to page offset \d+ with length \d+ ends beyond maximum page offset \d+/, ); } sub detects_corruption { local $Test::Builder::Level = $Test::Builder::Level + 1; my ($function, $testname, @re) = @_; my $result = $node->safe_psql('postgres', qq(SELECT * FROM $function)); like($result, $_, $testname) for (@re); } sub detects_no_corruption { local $Test::Builder::Level = $Test::Builder::Level + 1; my ($function, $testname) = @_; my $result = $node->safe_psql('postgres', qq(SELECT * FROM $function)); is($result, '', $testname); } # Check various options are stable (don't abort) and do not report corruption # when running verify_heapam on an uncorrupted test table. # # The relname *must* be an uncorrupted table, or this will fail. # # The prefix is used to identify the test, along with the options, # and should be unique. sub check_all_options_uncorrupted { local $Test::Builder::Level = $Test::Builder::Level + 1; my ($relname, $prefix) = @_; for my $stop (qw(true false)) { for my $check_toast (qw(true false)) { for my $skip ("'none'", "'all-frozen'", "'all-visible'") { for my $startblock (qw(NULL 0)) { for my $endblock (qw(NULL 0)) { my $opts = "on_error_stop := $stop, " . "check_toast := $check_toast, " . "skip := $skip, " . "startblock := $startblock, " . "endblock := $endblock"; detects_no_corruption( "verify_heapam('$relname', $opts)", "$prefix: $opts"); } } } } } } done_testing(); contrib/amcheck/t/002_cic.pl
New file @@ -0,0 +1,92 @@ # Copyright (c) 2021-2025, PostgreSQL Global Development Group # Test CREATE INDEX CONCURRENTLY with concurrent modifications use strict; use warnings FATAL => 'all'; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; use Test::More; my $node; # # Test set-up # $node = PostgreSQL::Test::Cluster->new('CIC_test'); $node->init; $node->append_conf('postgresql.conf', 'lock_timeout = ' . (1000 * $PostgreSQL::Test::Utils::timeout_default)); $node->start; $node->safe_psql('postgres', q(CREATE EXTENSION amcheck)); $node->safe_psql('postgres', q(CREATE TABLE tbl(i int, j jsonb))); $node->safe_psql('postgres', q(CREATE INDEX idx ON tbl(i))); $node->safe_psql('postgres', q(CREATE INDEX ginidx ON tbl USING gin(j))); # # Stress CIC with pgbench. # # pgbench might try to launch more than one instance of the CIC # transaction concurrently. That would deadlock, so use an advisory # lock to ensure only one CIC runs at a time. # $node->pgbench( '--no-vacuum --client=5 --transactions=100', 0, [qr{actually processed}], [qr{^$}], 'concurrent INSERTs and CIC', { '002_pgbench_concurrent_transaction' => q( BEGIN; INSERT INTO tbl VALUES(0, '{"a":[["b",{"x":1}],["b",{"x":2}]],"c":3}'); COMMIT; ), '002_pgbench_concurrent_transaction_savepoints' => q( BEGIN; SAVEPOINT s1; INSERT INTO tbl VALUES(0, '[[14,2,3]]'); COMMIT; ), '002_pgbench_concurrent_cic' => q( SELECT pg_try_advisory_lock(42)::integer AS gotlock \gset \if :gotlock DROP INDEX CONCURRENTLY idx; CREATE INDEX CONCURRENTLY idx ON tbl(i); DROP INDEX CONCURRENTLY ginidx; CREATE INDEX CONCURRENTLY ginidx ON tbl USING gin(j); SELECT bt_index_check('idx',true); SELECT gin_index_check('ginidx'); SELECT pg_advisory_unlock(42); \endif ) }); # Test bt_index_parent_check() with indexes created with # CREATE INDEX CONCURRENTLY. $node->safe_psql('postgres', q(CREATE TABLE quebec(i int primary key))); # Insert two rows into index $node->safe_psql('postgres', q(INSERT INTO quebec SELECT i FROM generate_series(1, 2) s(i);)); # start background transaction my $in_progress_h = $node->background_psql('postgres'); $in_progress_h->query_safe(q(BEGIN; SELECT pg_current_xact_id();)); # delete one row from table, while background transaction is in progress $node->safe_psql('postgres', q(DELETE FROM quebec WHERE i = 1;)); # create index concurrently, which will skip the deleted row $node->safe_psql('postgres', q(CREATE INDEX CONCURRENTLY oscar ON quebec(i);)); # check index using bt_index_parent_check my $result = $node->psql('postgres', q(SELECT bt_index_parent_check('oscar', heapallindexed => true))); is($result, '0', 'bt_index_parent_check for CIC after removed row'); $in_progress_h->quit; $node->stop; done_testing(); contrib/amcheck/t/003_cic_2pc.pl
New file @@ -0,0 +1,196 @@ # Copyright (c) 2021-2025, PostgreSQL Global Development Group # Test CREATE INDEX CONCURRENTLY with concurrent prepared-xact modifications use strict; use warnings FATAL => 'all'; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; use Test::More; Test::More->builder->todo_start('filesystem bug') if PostgreSQL::Test::Utils::has_wal_read_bug; my ($node, $result); # # Test set-up # $node = PostgreSQL::Test::Cluster->new('CIC_2PC_test'); $node->init; $node->append_conf('postgresql.conf', 'max_prepared_transactions = 10'); $node->append_conf('postgresql.conf', 'lock_timeout = ' . (1000 * $PostgreSQL::Test::Utils::timeout_default)); $node->start; $node->safe_psql('postgres', q(CREATE EXTENSION amcheck)); $node->safe_psql('postgres', q(CREATE TABLE tbl(i int, j jsonb))); # # Run 3 overlapping 2PC transactions with CIC # # We have two concurrent background psql processes: $main_h for INSERTs and # $cic_h for CIC. Also, we use non-background psql for some COMMIT PREPARED # statements. # my $main_h = $node->background_psql('postgres'); $main_h->query_safe( q( BEGIN; INSERT INTO tbl VALUES(0, '[[14,2,3]]'); )); my $cic_h = $node->background_psql('postgres'); $cic_h->query_until( qr/start/, q( \echo start CREATE INDEX CONCURRENTLY idx ON tbl(i); CREATE INDEX CONCURRENTLY ginidx ON tbl USING gin(j); )); $main_h->query_safe( q( PREPARE TRANSACTION 'a'; )); $main_h->query_safe( q( BEGIN; INSERT INTO tbl VALUES(0, '[[14,2,3]]'); )); $node->safe_psql('postgres', q(COMMIT PREPARED 'a';)); $main_h->query_safe( q( PREPARE TRANSACTION 'b'; BEGIN; INSERT INTO tbl VALUES(0, '"mary had a little lamb"'); )); $node->safe_psql('postgres', q(COMMIT PREPARED 'b';)); $main_h->query_safe( q( PREPARE TRANSACTION 'c'; COMMIT PREPARED 'c'; )); $main_h->quit; $cic_h->quit; $result = $node->psql('postgres', q(SELECT bt_index_check('idx',true))); is($result, '0', 'bt_index_check after overlapping 2PC'); $result = $node->psql('postgres', q(SELECT gin_index_check('ginidx'))); is($result, '0', 'gin_index_check after overlapping 2PC'); # # Server restart shall not change whether prepared xact blocks CIC # $node->safe_psql( 'postgres', q( BEGIN; INSERT INTO tbl VALUES(0, '{"a":[["b",{"x":1}],["b",{"x":2}]],"c":3}'); PREPARE TRANSACTION 'spans_restart'; BEGIN; CREATE TABLE unused (); PREPARE TRANSACTION 'persists_forever'; )); $node->restart; my $reindex_h = $node->background_psql('postgres'); $reindex_h->query_until( qr/start/, q( \echo start DROP INDEX CONCURRENTLY idx; CREATE INDEX CONCURRENTLY idx ON tbl(i); DROP INDEX CONCURRENTLY ginidx; CREATE INDEX CONCURRENTLY ginidx ON tbl USING gin(j); )); $node->safe_psql('postgres', "COMMIT PREPARED 'spans_restart'"); $reindex_h->quit; $result = $node->psql('postgres', q(SELECT bt_index_check('idx',true))); is($result, '0', 'bt_index_check after 2PC and restart'); $result = $node->psql('postgres', q(SELECT gin_index_check('ginidx'))); is($result, '0', 'gin_index_check after 2PC and restart'); # # Stress CIC+2PC with pgbench # # pgbench might try to launch more than one instance of the CIC # transaction concurrently. That would deadlock, so use an advisory # lock to ensure only one CIC runs at a time. # Fix broken index first $node->safe_psql('postgres', q(REINDEX TABLE tbl;)); # Run pgbench. $node->pgbench( '--no-vacuum --client=5 --transactions=100', 0, [qr{actually processed}], [qr{^$}], 'concurrent INSERTs w/ 2PC and CIC', { '003_pgbench_concurrent_2pc' => q( BEGIN; INSERT INTO tbl VALUES(0,'null'); PREPARE TRANSACTION 'c:client_id'; COMMIT PREPARED 'c:client_id'; ), '003_pgbench_concurrent_2pc_savepoint' => q( BEGIN; SAVEPOINT s1; INSERT INTO tbl VALUES(0,'[false, "jnvaba", -76, 7, {"_": [1]}, 9]'); PREPARE TRANSACTION 'c:client_id'; COMMIT PREPARED 'c:client_id'; ), '003_pgbench_concurrent_cic' => q( SELECT pg_try_advisory_lock(42)::integer AS gotlock \gset \if :gotlock DROP INDEX CONCURRENTLY idx; CREATE INDEX CONCURRENTLY idx ON tbl(i); SELECT bt_index_check('idx',true); SELECT pg_advisory_unlock(42); \endif ), '004_pgbench_concurrent_ric' => q( SELECT pg_try_advisory_lock(42)::integer AS gotlock \gset \if :gotlock REINDEX INDEX CONCURRENTLY idx; SELECT bt_index_check('idx',true); SELECT pg_advisory_unlock(42); \endif ), '005_pgbench_concurrent_cic' => q( SELECT pg_try_advisory_lock(42)::integer AS gotginlock \gset \if :gotginlock DROP INDEX CONCURRENTLY ginidx; CREATE INDEX CONCURRENTLY ginidx ON tbl USING gin(j); SELECT gin_index_check('ginidx'); SELECT pg_advisory_unlock(42); \endif ), '006_pgbench_concurrent_ric' => q( SELECT pg_try_advisory_lock(42)::integer AS gotginlock \gset \if :gotginlock REINDEX INDEX CONCURRENTLY ginidx; SELECT gin_index_check('ginidx'); SELECT pg_advisory_unlock(42); \endif ) }); $node->stop; done_testing(); contrib/amcheck/t/004_verify_nbtree_unique.pl
New file @@ -0,0 +1,244 @@ # Copyright (c) 2023-2025, PostgreSQL Global Development Group # This regression test checks the behavior of the btree validation in the # presence of breaking sort order changes. # use strict; use warnings FATAL => 'all'; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; use Test::More; my $node = PostgreSQL::Test::Cluster->new('test'); $node->init; $node->append_conf('postgresql.conf', 'autovacuum = off'); $node->start; # Create a custom operator class and an index which uses it. $node->safe_psql( 'postgres', q( CREATE EXTENSION amcheck; CREATE FUNCTION ok_cmp (int4, int4) RETURNS int LANGUAGE sql AS $$ SELECT CASE WHEN $1 < $2 THEN -1 WHEN $1 > $2 THEN 1 ELSE 0 END; $$; --- --- Check 1: uniqueness violation. --- CREATE FUNCTION ok_cmp1 (int4, int4) RETURNS int LANGUAGE sql AS $$ SELECT public.ok_cmp($1, $2); $$; --- --- Make values 768 and 769 look equal. --- CREATE FUNCTION bad_cmp1 (int4, int4) RETURNS int LANGUAGE sql AS $$ SELECT CASE WHEN ($1 = 768 AND $2 = 769) OR ($1 = 769 AND $2 = 768) THEN 0 ELSE public.ok_cmp($1, $2) END; $$; --- --- Check 2: uniqueness violation without deduplication. --- CREATE FUNCTION ok_cmp2 (int4, int4) RETURNS int LANGUAGE sql AS $$ SELECT public.ok_cmp($1, $2); $$; CREATE FUNCTION bad_cmp2 (int4, int4) RETURNS int LANGUAGE sql AS $$ SELECT CASE WHEN $1 = $2 AND $1 = 400 THEN -1 ELSE public.ok_cmp($1, $2) END; $$; --- --- Check 3: uniqueness violation with deduplication. --- CREATE FUNCTION ok_cmp3 (int4, int4) RETURNS int LANGUAGE sql AS $$ SELECT public.ok_cmp($1, $2); $$; CREATE FUNCTION bad_cmp3 (int4, int4) RETURNS int LANGUAGE sql AS $$ SELECT public.bad_cmp2($1, $2); $$; --- --- Create data. --- CREATE TABLE bttest_unique1 (i int4); INSERT INTO bttest_unique1 (SELECT * FROM generate_series(1, 1024) gs); CREATE TABLE bttest_unique2 (i int4); INSERT INTO bttest_unique2(i) (SELECT * FROM generate_series(1, 400) gs); INSERT INTO bttest_unique2 (SELECT * FROM generate_series(400, 1024) gs); CREATE TABLE bttest_unique3 (i int4); INSERT INTO bttest_unique3 SELECT * FROM bttest_unique2; CREATE OPERATOR CLASS int4_custom_ops1 FOR TYPE int4 USING btree AS OPERATOR 1 < (int4, int4), OPERATOR 2 <= (int4, int4), OPERATOR 3 = (int4, int4), OPERATOR 4 >= (int4, int4), OPERATOR 5 > (int4, int4), FUNCTION 1 ok_cmp1(int4, int4); CREATE OPERATOR CLASS int4_custom_ops2 FOR TYPE int4 USING btree AS OPERATOR 1 < (int4, int4), OPERATOR 2 <= (int4, int4), OPERATOR 3 = (int4, int4), OPERATOR 4 >= (int4, int4), OPERATOR 5 > (int4, int4), FUNCTION 1 bad_cmp2(int4, int4); CREATE OPERATOR CLASS int4_custom_ops3 FOR TYPE int4 USING btree AS OPERATOR 1 < (int4, int4), OPERATOR 2 <= (int4, int4), OPERATOR 3 = (int4, int4), OPERATOR 4 >= (int4, int4), OPERATOR 5 > (int4, int4), FUNCTION 1 bad_cmp3(int4, int4); CREATE UNIQUE INDEX bttest_unique_idx1 ON bttest_unique1 USING btree (i int4_custom_ops1) WITH (deduplicate_items = off); CREATE UNIQUE INDEX bttest_unique_idx2 ON bttest_unique2 USING btree (i int4_custom_ops2) WITH (deduplicate_items = off); CREATE UNIQUE INDEX bttest_unique_idx3 ON bttest_unique3 USING btree (i int4_custom_ops3) WITH (deduplicate_items = on); )); my ($result, $stdout, $stderr); # # Test 1. # - insert seq values # - create unique index # - break cmp function # - amcheck finds the uniqueness violation # # We have not yet broken the index, so we should get no corruption $result = $node->safe_psql( 'postgres', q( SELECT bt_index_check('bttest_unique_idx1', true, true); )); is($result, '', 'run amcheck on non-broken bttest_unique_idx1'); # Change the operator class to use a function which considers certain different # values to be equal. $node->safe_psql( 'postgres', q( UPDATE pg_catalog.pg_amproc SET amproc = 'bad_cmp1'::regproc WHERE amproc = 'ok_cmp1'::regproc; )); ($result, $stdout, $stderr) = $node->psql( 'postgres', q( SELECT bt_index_check('bttest_unique_idx1', true, true); )); ok( $stderr =~ /index uniqueness is violated for index "bttest_unique_idx1"/, 'detected uniqueness violation for index "bttest_unique_idx1"'); # # Test 2. # - break cmp function # - insert seq values with duplicates # - create unique index # - make cmp function correct # - amcheck finds the uniqueness violation # # Due to bad cmp function we expect amcheck to detect item order violation, # but no uniqueness violation. ($result, $stdout, $stderr) = $node->psql( 'postgres', q( SELECT bt_index_check('bttest_unique_idx2', true, true); )); ok( $stderr =~ /item order invariant violated for index "bttest_unique_idx2"/, 'detected item order invariant violation for index "bttest_unique_idx2"'); $node->safe_psql( 'postgres', q( UPDATE pg_catalog.pg_amproc SET amproc = 'ok_cmp2'::regproc WHERE amproc = 'bad_cmp2'::regproc; )); ($result, $stdout, $stderr) = $node->psql( 'postgres', q( SELECT bt_index_check('bttest_unique_idx2', true, true); )); ok( $stderr =~ /index uniqueness is violated for index "bttest_unique_idx2"/, 'detected uniqueness violation for index "bttest_unique_idx2"'); # # Test 3. # - same as Test 2, but with index deduplication # # Then uniqueness violation is detected between different posting list # entries inside one index entry. # # Due to bad cmp function we expect amcheck to detect item order violation, # but no uniqueness violation. ($result, $stdout, $stderr) = $node->psql( 'postgres', q( SELECT bt_index_check('bttest_unique_idx3', true, true); )); ok( $stderr =~ /item order invariant violated for index "bttest_unique_idx3"/, 'detected item order invariant violation for index "bttest_unique_idx3"'); # For unique index deduplication is possible only for same values, but # with different visibility. $node->safe_psql( 'postgres', q( DELETE FROM bttest_unique3 WHERE 380 <= i AND i <= 420; INSERT INTO bttest_unique3 (SELECT * FROM generate_series(380, 420)); INSERT INTO bttest_unique3 VALUES (400); DELETE FROM bttest_unique3 WHERE 380 <= i AND i <= 420; INSERT INTO bttest_unique3 (SELECT * FROM generate_series(380, 420)); INSERT INTO bttest_unique3 VALUES (400); DELETE FROM bttest_unique3 WHERE 380 <= i AND i <= 420; INSERT INTO bttest_unique3 (SELECT * FROM generate_series(380, 420)); INSERT INTO bttest_unique3 VALUES (400); )); $node->safe_psql( 'postgres', q( UPDATE pg_catalog.pg_amproc SET amproc = 'ok_cmp3'::regproc WHERE amproc = 'bad_cmp3'::regproc; )); ($result, $stdout, $stderr) = $node->psql( 'postgres', q( SELECT bt_index_check('bttest_unique_idx3', true, true); )); ok( $stderr =~ /index uniqueness is violated for index "bttest_unique_idx3"/, 'detected uniqueness violation for index "bttest_unique_idx3"'); $node->stop; done_testing(); contrib/amcheck/t/005_pitr.pl
New file @@ -0,0 +1,82 @@ # Copyright (c) 2021-2025, PostgreSQL Global Development Group # Test integrity of intermediate states by PITR to those states use strict; use warnings FATAL => 'all'; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; use Test::More; # origin node: generate WAL records of interest. my $origin = PostgreSQL::Test::Cluster->new('origin'); $origin->init(has_archiving => 1, allows_streaming => 1); $origin->append_conf('postgresql.conf', 'autovacuum = off'); $origin->start; $origin->backup('my_backup'); # Create a table with each of 6 PK values spanning 1/4 of a block. Delete the # first four, so one index leaf is eligible for deletion. Make a replication # slot just so pg_walinspect will always have access to later WAL. my $setup = <<EOSQL; BEGIN; CREATE EXTENSION amcheck; CREATE EXTENSION pg_walinspect; CREATE TABLE not_leftmost (c text STORAGE PLAIN); INSERT INTO not_leftmost SELECT repeat(n::text, database_block_size / 4) FROM generate_series(1,6) t(n), pg_control_init(); ALTER TABLE not_leftmost ADD CONSTRAINT not_leftmost_pk PRIMARY KEY (c); DELETE FROM not_leftmost WHERE c ~ '^[1-4]'; SELECT pg_create_physical_replication_slot('for_walinspect', true, false); COMMIT; EOSQL $origin->safe_psql('postgres', $setup); my $before_vacuum_lsn = $origin->safe_psql('postgres', "SELECT pg_current_wal_lsn()"); # VACUUM to delete the aforementioned leaf page. Force an XLogFlush() by # dropping a permanent table. That way, the XLogReader infrastructure can # always see VACUUM's records, even under synchronous_commit=off. Finally, # find the LSN of that VACUUM's last UNLINK_PAGE record. my $vacuum = <<EOSQL; SET synchronous_commit = off; VACUUM (VERBOSE, INDEX_CLEANUP ON) not_leftmost; CREATE TABLE XLogFlush (); DROP TABLE XLogFlush; SELECT max(start_lsn) FROM pg_get_wal_records_info('$before_vacuum_lsn', 'FFFFFFFF/FFFFFFFF') WHERE resource_manager = 'Btree' AND record_type = 'UNLINK_PAGE'; EOSQL my $unlink_lsn = $origin->safe_psql('postgres', $vacuum); $origin->stop; die "did not find UNLINK_PAGE record" unless $unlink_lsn; # replica node: amcheck at notable points in the WAL stream my $replica = PostgreSQL::Test::Cluster->new('replica'); $replica->init_from_backup($origin, 'my_backup', has_restoring => 1); $replica->append_conf('postgresql.conf', "recovery_target_lsn = '$unlink_lsn'"); $replica->append_conf('postgresql.conf', 'recovery_target_inclusive = off'); $replica->append_conf('postgresql.conf', 'recovery_target_action = promote'); $replica->start; $replica->poll_query_until('postgres', "SELECT pg_is_in_recovery() = 'f';") or die "Timed out while waiting for PITR promotion"; # recovery done; run amcheck my $debug = "SET client_min_messages = 'debug1'"; my ($rc, $stderr); $rc = $replica->psql( 'postgres', "$debug; SELECT bt_index_parent_check('not_leftmost_pk', true)", stderr => \$stderr); print STDERR $stderr, "\n"; is($rc, 0, "bt_index_parent_check passes"); like( $stderr, qr/interrupted page deletion detected/, "bt_index_parent_check: interrupted page deletion detected"); $rc = $replica->psql( 'postgres', "$debug; SELECT bt_index_check('not_leftmost_pk', true)", stderr => \$stderr); print STDERR $stderr, "\n"; is($rc, 0, "bt_index_check passes"); done_testing(); contrib/amcheck/t/006_verify_gin.pl
New file @@ -0,0 +1,293 @@ # Copyright (c) 2021-2025, PostgreSQL Global Development Group use strict; use warnings FATAL => 'all'; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; use Test::More; my $node; my $blksize; # to get the split fast, we want tuples to be as large as possible, but the same time we don't want them to be toasted. my $filler_size = 1900; # # Test set-up # $node = PostgreSQL::Test::Cluster->new('test'); $node->init(no_data_checksums => 1); $node->append_conf('postgresql.conf', 'autovacuum=off'); $node->start; $blksize = int($node->safe_psql('postgres', 'SHOW block_size;')); $node->safe_psql('postgres', q(CREATE EXTENSION amcheck)); $node->safe_psql( 'postgres', q( CREATE OR REPLACE FUNCTION random_string( INT ) RETURNS text AS $$ SELECT string_agg(substring('0123456789abcdefghijklmnopqrstuvwxyz', ceil(random() * 36)::integer, 1), '') from generate_series(1, $1); $$ LANGUAGE SQL;)); # Tests invalid_entry_order_leaf_page_test(); invalid_entry_order_inner_page_test(); invalid_entry_columns_order_test(); inconsistent_with_parent_key__parent_key_corrupted_test(); inconsistent_with_parent_key__child_key_corrupted_test(); inconsistent_with_parent_key__parent_key_corrupted_posting_tree_test(); sub invalid_entry_order_leaf_page_test { my $relname = "test"; my $indexname = "test_gin_idx"; $node->safe_psql( 'postgres', qq( DROP TABLE IF EXISTS $relname; CREATE TABLE $relname (a text[]); INSERT INTO $relname (a) VALUES ('{aaaaa,bbbbb}'); CREATE INDEX $indexname ON $relname USING gin (a); )); my $relpath = relation_filepath($indexname); $node->stop; my $blkno = 1; # root # produce wrong order by replacing aaaaa with ccccc string_replace_block($relpath, 'aaaaa', 'ccccc', $blkno); $node->start; my ($result, $stdout, $stderr) = $node->psql('postgres', qq(SELECT gin_index_check('$indexname'))); my $expected = "index \"$indexname\" has wrong tuple order on entry tree page, block 1, offset 2, rightlink 4294967295"; like($stderr, qr/$expected/); } sub invalid_entry_order_inner_page_test { my $relname = "test"; my $indexname = "test_gin_idx"; # to break the order in the inner page we need at least 3 items (rightmost key in the inner level is not checked for the order) # so fill table until we have 2 splits $node->safe_psql( 'postgres', qq( DROP TABLE IF EXISTS $relname; CREATE TABLE $relname (a text[]); INSERT INTO $relname (a) VALUES (('{' || 'pppppppppp' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'qqqqqqqqqq' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'rrrrrrrrrr' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'ssssssssss' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'tttttttttt' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'uuuuuuuuuu' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'vvvvvvvvvv' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'wwwwwwwwww' || random_string($filler_size) ||'}')::text[]); CREATE INDEX $indexname ON $relname USING gin (a); )); my $relpath = relation_filepath($indexname); $node->stop; my $blkno = 1; # root # we have rrrrrrrrr... and tttttttttt... as keys in the root, so produce wrong order by replacing rrrrrrrrrr.... string_replace_block($relpath, 'rrrrrrrrrr', 'zzzzzzzzzz', $blkno); $node->start; my ($result, $stdout, $stderr) = $node->psql('postgres', qq(SELECT gin_index_check('$indexname'))); my $expected = "index \"$indexname\" has wrong tuple order on entry tree page, block 1, offset 2, rightlink 4294967295"; like($stderr, qr/$expected/); } sub invalid_entry_columns_order_test { my $relname = "test"; my $indexname = "test_gin_idx"; $node->safe_psql( 'postgres', qq( DROP TABLE IF EXISTS $relname; CREATE TABLE $relname (a text[],b text[]); INSERT INTO $relname (a,b) VALUES ('{aaa}','{bbb}'); CREATE INDEX $indexname ON $relname USING gin (a,b); )); my $relpath = relation_filepath($indexname); $node->stop; my $blkno = 1; # root # mess column numbers # root items order before: (1,aaa), (2,bbb) # root items order after: (2,aaa), (1,bbb) my $attrno_1 = pack('s', 1); my $attrno_2 = pack('s', 2); my $find = qr/($attrno_1)(.)(aaa)/s; my $replace = $attrno_2 . '$2$3'; string_replace_block($relpath, $find, $replace, $blkno); $find = qr/($attrno_2)(.)(bbb)/s; $replace = $attrno_1 . '$2$3'; string_replace_block($relpath, $find, $replace, $blkno); $node->start; my ($result, $stdout, $stderr) = $node->psql('postgres', qq(SELECT gin_index_check('$indexname'))); my $expected = "index \"$indexname\" has wrong tuple order on entry tree page, block 1, offset 2, rightlink 4294967295"; like($stderr, qr/$expected/); } sub inconsistent_with_parent_key__parent_key_corrupted_test { my $relname = "test"; my $indexname = "test_gin_idx"; # fill the table until we have a split $node->safe_psql( 'postgres', qq( DROP TABLE IF EXISTS $relname; CREATE TABLE $relname (a text[]); INSERT INTO $relname (a) VALUES (('{' || 'llllllllll' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'mmmmmmmmmm' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'nnnnnnnnnn' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'xxxxxxxxxx' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'yyyyyyyyyy' || random_string($filler_size) ||'}')::text[]); CREATE INDEX $indexname ON $relname USING gin (a); )); my $relpath = relation_filepath($indexname); $node->stop; my $blkno = 1; # root # we have nnnnnnnnnn... as parent key in the root, so replace it with something smaller then child's keys string_replace_block($relpath, 'nnnnnnnnnn', 'aaaaaaaaaa', $blkno); $node->start; my ($result, $stdout, $stderr) = $node->psql('postgres', qq(SELECT gin_index_check('$indexname'))); my $expected = "index \"$indexname\" has inconsistent records on page 3 offset 3"; like($stderr, qr/$expected/); } sub inconsistent_with_parent_key__child_key_corrupted_test { my $relname = "test"; my $indexname = "test_gin_idx"; # fill the table until we have a split $node->safe_psql( 'postgres', qq( DROP TABLE IF EXISTS $relname; CREATE TABLE $relname (a text[]); INSERT INTO $relname (a) VALUES (('{' || 'llllllllll' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'mmmmmmmmmm' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'nnnnnnnnnn' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'xxxxxxxxxx' || random_string($filler_size) ||'}')::text[]); INSERT INTO $relname (a) VALUES (('{' || 'yyyyyyyyyy' || random_string($filler_size) ||'}')::text[]); CREATE INDEX $indexname ON $relname USING gin (a); )); my $relpath = relation_filepath($indexname); $node->stop; my $blkno = 3; # leaf # we have nnnnnnnnnn... as parent key in the root, so replace child key with something bigger string_replace_block($relpath, 'nnnnnnnnnn', 'pppppppppp', $blkno); $node->start; my ($result, $stdout, $stderr) = $node->psql('postgres', qq(SELECT gin_index_check('$indexname'))); my $expected = "index \"$indexname\" has inconsistent records on page 3 offset 3"; like($stderr, qr/$expected/); } sub inconsistent_with_parent_key__parent_key_corrupted_posting_tree_test { my $relname = "test"; my $indexname = "test_gin_idx"; $node->safe_psql( 'postgres', qq( DROP TABLE IF EXISTS $relname; CREATE TABLE $relname (a text[]); INSERT INTO $relname (a) select ('{aaaaa}') from generate_series(1,10000); CREATE INDEX $indexname ON $relname USING gin (a); )); my $relpath = relation_filepath($indexname); $node->stop; my $blkno = 2; # posting tree root # we have a posting tree for 'aaaaa' key with the root at 2nd block # and two leaf pages 3 and 4. replace 4th page's high key with (1,1) # so that there are tid's in leaf page that are larger then the new high key. my $find = pack('S*', 0, 4, 0) . '....'; my $replace = pack('S*', 0, 4, 0, 1, 1); string_replace_block($relpath, $find, $replace, $blkno); $node->start; my ($result, $stdout, $stderr) = $node->psql('postgres', qq(SELECT gin_index_check('$indexname'))); my $expected = "index \"$indexname\": tid exceeds parent's high key in postingTree leaf on block 4"; like($stderr, qr/$expected/); } # Returns the filesystem path for the named relation. sub relation_filepath { my ($relname) = @_; my $pgdata = $node->data_dir; my $rel = $node->safe_psql('postgres', qq(SELECT pg_relation_filepath('$relname'))); die "path not found for relation $relname" unless defined $rel; return "$pgdata/$rel"; } # substitute pattern 'find' with 'replace' within the block with number 'blkno' in the file 'filename' sub string_replace_block { my ($filename, $find, $replace, $blkno) = @_; my $fh; open($fh, '+<', $filename) or BAIL_OUT("open failed: $!"); binmode $fh; my $offset = $blkno * $blksize; my $buffer; sysseek($fh, $offset, 0) or BAIL_OUT("seek failed: $!"); sysread($fh, $buffer, $blksize) or BAIL_OUT("read failed: $!"); $buffer =~ s/$find/'"' . $replace . '"'/gee; sysseek($fh, $offset, 0) or BAIL_OUT("seek failed: $!"); syswrite($fh, $buffer) or BAIL_OUT("write failed: $!"); close($fh) or BAIL_OUT("close failed: $!"); return; } done_testing(); contrib/amcheck/verify_common.c
New file @@ -0,0 +1,198 @@ /*------------------------------------------------------------------------- * * verify_common.c * Utility functions common to all access methods. * * Copyright (c) 2016-2025, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/amcheck/verify_common.c * *------------------------------------------------------------------------- */ #include "postgres.h" #include "access/genam.h" #include "access/table.h" #include "access/tableam.h" #include "verify_common.h" #include "catalog/index.h" #include "catalog/pg_am.h" #include "commands/tablecmds.h" #include "utils/guc.h" #include "utils/syscache.h" static bool amcheck_index_mainfork_expected(Relation rel); /* * Check if index relation should have a file for its main relation fork. * Verification uses this to skip unlogged indexes when in hot standby mode, * where there is simply nothing to verify. * * NB: Caller should call index_checkable() before calling here. */ static bool amcheck_index_mainfork_expected(Relation rel) { if (rel->rd_rel->relpersistence != RELPERSISTENCE_UNLOGGED || !RecoveryInProgress()) return true; ereport(NOTICE, (errcode(ERRCODE_READ_ONLY_SQL_TRANSACTION), errmsg("cannot verify unlogged index \"%s\" during recovery, skipping", RelationGetRelationName(rel)))); return false; } /* * Amcheck main workhorse. * Given index relation OID, lock relation. * Next, take a number of standard actions: * 1) Make sure the index can be checked * 2) change the context of the user, * 3) keep track of GUCs modified via index functions * 4) execute callback function to verify integrity. */ void amcheck_lock_relation_and_check(Oid indrelid, Oid am_id, IndexDoCheckCallback check, LOCKMODE lockmode, void *state) { Oid heapid; Relation indrel; Relation heaprel; Oid save_userid; int save_sec_context; int save_nestlevel; /* * We must lock table before index to avoid deadlocks. However, if the * passed indrelid isn't an index then IndexGetRelation() will fail. * Rather than emitting a not-very-helpful error message, postpone * complaining, expecting that the is-it-an-index test below will fail. * * In hot standby mode this will raise an error when parentcheck is true. */ heapid = IndexGetRelation(indrelid, true); if (OidIsValid(heapid)) { heaprel = table_open(heapid, lockmode); /* * Switch to the table owner's userid, so that any index functions are * run as that user. Also lock down security-restricted operations * and arrange to make GUC variable changes local to this command. */ GetUserIdAndSecContext(&save_userid, &save_sec_context); SetUserIdAndSecContext(heaprel->rd_rel->relowner, save_sec_context | SECURITY_RESTRICTED_OPERATION); save_nestlevel = NewGUCNestLevel(); } else { heaprel = NULL; /* Set these just to suppress "uninitialized variable" warnings */ save_userid = InvalidOid; save_sec_context = -1; save_nestlevel = -1; } /* * Open the target index relations separately (like relation_openrv(), but * with heap relation locked first to prevent deadlocking). In hot * standby mode this will raise an error when parentcheck is true. * * There is no need for the usual indcheckxmin usability horizon test * here, even in the heapallindexed case, because index undergoing * verification only needs to have entries for a new transaction snapshot. * (If this is a parentcheck verification, there is no question about * committed or recently dead heap tuples lacking index entries due to * concurrent activity.) */ indrel = index_open(indrelid, lockmode); /* * Since we did the IndexGetRelation call above without any lock, it's * barely possible that a race against an index drop/recreation could have * netted us the wrong table. */ if (heaprel == NULL || heapid != IndexGetRelation(indrelid, false)) ereport(ERROR, (errcode(ERRCODE_UNDEFINED_TABLE), errmsg("could not open parent table of index \"%s\"", RelationGetRelationName(indrel)))); /* Check that relation suitable for checking */ if (index_checkable(indrel, am_id)) check(indrel, heaprel, state, lockmode == ShareLock); /* Roll back any GUC changes executed by index functions */ AtEOXact_GUC(false, save_nestlevel); /* Restore userid and security context */ SetUserIdAndSecContext(save_userid, save_sec_context); /* * Release locks early. That's ok here because nothing in the called * routines will trigger shared cache invalidations to be sent, so we can * relax the usual pattern of only releasing locks after commit. */ index_close(indrel, lockmode); if (heaprel) table_close(heaprel, lockmode); } /* * Basic checks about the suitability of a relation for checking as an index. * * * NB: Intentionally not checking permissions, the function is normally not * callable by non-superusers. If granted, it's useful to be able to check a * whole cluster. */ bool index_checkable(Relation rel, Oid am_id) { if (rel->rd_rel->relkind != RELKIND_INDEX || rel->rd_rel->relam != am_id) { HeapTuple amtup; HeapTuple amtuprel; amtup = SearchSysCache1(AMOID, ObjectIdGetDatum(am_id)); amtuprel = SearchSysCache1(AMOID, ObjectIdGetDatum(rel->rd_rel->relam)); if (!HeapTupleIsValid(amtup) || !HeapTupleIsValid(amtuprel)) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("expected (cache lookup failed) index as targets for verification"), errdetail("Relation \"%s\" is a (cache lookup failed) index.", RelationGetRelationName(rel)))); else ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("expected \"%s\" index as targets for verification", NameStr(((Form_pg_am) GETSTRUCT(amtup))->amname)), errdetail("Relation \"%s\" is a %s index.", RelationGetRelationName(rel), NameStr(((Form_pg_am) GETSTRUCT(amtuprel))->amname)))); } if (RELATION_IS_OTHER_TEMP(rel)) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot access temporary tables of other sessions"), errdetail("Index \"%s\" is associated with temporary relation.", RelationGetRelationName(rel)))); if (!rel->rd_index->indisvalid) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot check index \"%s\"", RelationGetRelationName(rel)), errdetail("Index is not valid."))); return amcheck_index_mainfork_expected(rel); } contrib/amcheck/verify_common.h
New file @@ -0,0 +1,31 @@ /*------------------------------------------------------------------------- * * amcheck.h * Shared routines for amcheck verifications. * * Copyright (c) 2016-2025, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/amcheck/amcheck.h * *------------------------------------------------------------------------- */ #include "storage/bufpage.h" #include "storage/lmgr.h" #include "storage/lockdefs.h" #include "utils/relcache.h" #include "miscadmin.h" /* Typedefs for callback functions for amcheck_lock_relation_and_check */ typedef void (*IndexCheckableCallback) (Relation index); typedef void (*IndexDoCheckCallback) (Relation rel, Relation heaprel, void *state, bool readonly); extern void amcheck_lock_relation_and_check(Oid indrelid, Oid am_id, IndexDoCheckCallback check, LOCKMODE lockmode, void *state); extern bool index_checkable(Relation rel, Oid am_id); contrib/amcheck/verify_gin.c
New file @@ -0,0 +1,794 @@ /*------------------------------------------------------------------------- * * verify_gin.c * Verifies the integrity of GIN indexes based on invariants. * * * GIN index verification checks a number of invariants: * * - consistency: Paths in GIN graph have to contain consistent keys: tuples * on parent pages consistently include tuples from children pages. * * - graph invariants: Each internal page must have at least one downlink, and * can reference either only leaf pages or only internal pages. * * * Copyright (c) 2016-2025, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/amcheck/verify_gin.c * *------------------------------------------------------------------------- */ #include "postgres.h" #include "access/gin_private.h" #include "access/nbtree.h" #include "catalog/pg_am.h" #include "utils/memutils.h" #include "utils/rel.h" #include "verify_common.h" #include "string.h" /* * GinScanItem represents one item of depth-first scan of the index. */ typedef struct GinScanItem { int depth; IndexTuple parenttup; BlockNumber parentblk; BlockNumber blkno; struct GinScanItem *next; } GinScanItem; /* * GinPostingTreeScanItem represents one item of a depth-first posting tree scan. */ typedef struct GinPostingTreeScanItem { int depth; ItemPointerData parentkey; BlockNumber parentblk; BlockNumber blkno; struct GinPostingTreeScanItem *next; } GinPostingTreeScanItem; PG_FUNCTION_INFO_V1(gin_index_check); static void gin_check_parent_keys_consistency(Relation rel, Relation heaprel, void *callback_state, bool readonly); static void check_index_page(Relation rel, Buffer buffer, BlockNumber blockNo); static IndexTuple gin_refind_parent(Relation rel, BlockNumber parentblkno, BlockNumber childblkno, BufferAccessStrategy strategy); static ItemId PageGetItemIdCareful(Relation rel, BlockNumber block, Page page, OffsetNumber offset); /* * gin_index_check(index regclass) * * Verify integrity of GIN index. * * Acquires AccessShareLock on heap & index relations. */ Datum gin_index_check(PG_FUNCTION_ARGS) { Oid indrelid = PG_GETARG_OID(0); amcheck_lock_relation_and_check(indrelid, GIN_AM_OID, gin_check_parent_keys_consistency, AccessShareLock, NULL); PG_RETURN_VOID(); } /* * Read item pointers from leaf entry tuple. * * Returns a palloc'd array of ItemPointers. The number of items is returned * in *nitems. */ static ItemPointer ginReadTupleWithoutState(IndexTuple itup, int *nitems) { Pointer ptr = GinGetPosting(itup); int nipd = GinGetNPosting(itup); ItemPointer ipd; int ndecoded; if (GinItupIsCompressed(itup)) { if (nipd > 0) { ipd = ginPostingListDecode((GinPostingList *) ptr, &ndecoded); if (nipd != ndecoded) elog(ERROR, "number of items mismatch in GIN entry tuple, %d in tuple header, %d decoded", nipd, ndecoded); } else ipd = palloc(0); } else { ipd = (ItemPointer) palloc(sizeof(ItemPointerData) * nipd); memcpy(ipd, ptr, sizeof(ItemPointerData) * nipd); } *nitems = nipd; return ipd; } /* * Scans through a posting tree (given by the root), and verifies that the keys * on a child keys are consistent with the parent. * * Allocates a separate memory context and scans through posting tree graph. */ static void gin_check_posting_tree_parent_keys_consistency(Relation rel, BlockNumber posting_tree_root) { BufferAccessStrategy strategy = GetAccessStrategy(BAS_BULKREAD); GinPostingTreeScanItem *stack; MemoryContext mctx; MemoryContext oldcontext; int leafdepth; mctx = AllocSetContextCreate(CurrentMemoryContext, "posting tree check context", ALLOCSET_DEFAULT_SIZES); oldcontext = MemoryContextSwitchTo(mctx); /* * We don't know the height of the tree yet, but as soon as we encounter a * leaf page, we will set 'leafdepth' to its depth. */ leafdepth = -1; /* Start the scan at the root page */ stack = (GinPostingTreeScanItem *) palloc0(sizeof(GinPostingTreeScanItem)); stack->depth = 0; ItemPointerSetInvalid(&stack->parentkey); stack->parentblk = InvalidBlockNumber; stack->blkno = posting_tree_root; elog(DEBUG3, "processing posting tree at blk %u", posting_tree_root); while (stack) { GinPostingTreeScanItem *stack_next; Buffer buffer; Page page; OffsetNumber i, maxoff; BlockNumber rightlink; CHECK_FOR_INTERRUPTS(); buffer = ReadBufferExtended(rel, MAIN_FORKNUM, stack->blkno, RBM_NORMAL, strategy); LockBuffer(buffer, GIN_SHARE); page = (Page) BufferGetPage(buffer); Assert(GinPageIsData(page)); /* Check that the tree has the same height in all branches */ if (GinPageIsLeaf(page)) { ItemPointerData minItem; int nlist; ItemPointerData *list; char tidrange_buf[MAXPGPATH]; ItemPointerSetMin(&minItem); elog(DEBUG1, "page blk: %u, type leaf", stack->blkno); if (leafdepth == -1) leafdepth = stack->depth; else if (stack->depth != leafdepth) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\": internal pages traversal encountered leaf page unexpectedly on block %u", RelationGetRelationName(rel), stack->blkno))); list = GinDataLeafPageGetItems(page, &nlist, minItem); if (nlist > 0) snprintf(tidrange_buf, sizeof(tidrange_buf), "%d tids (%u, %u) - (%u, %u)", nlist, ItemPointerGetBlockNumberNoCheck(&list[0]), ItemPointerGetOffsetNumberNoCheck(&list[0]), ItemPointerGetBlockNumberNoCheck(&list[nlist - 1]), ItemPointerGetOffsetNumberNoCheck(&list[nlist - 1])); else snprintf(tidrange_buf, sizeof(tidrange_buf), "0 tids"); if (stack->parentblk != InvalidBlockNumber) elog(DEBUG3, "blk %u: parent %u highkey (%u, %u), %s", stack->blkno, stack->parentblk, ItemPointerGetBlockNumberNoCheck(&stack->parentkey), ItemPointerGetOffsetNumberNoCheck(&stack->parentkey), tidrange_buf); else elog(DEBUG3, "blk %u: root leaf, %s", stack->blkno, tidrange_buf); if (stack->parentblk != InvalidBlockNumber && ItemPointerGetOffsetNumberNoCheck(&stack->parentkey) != InvalidOffsetNumber && nlist > 0 && ItemPointerCompare(&stack->parentkey, &list[nlist - 1]) < 0) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\": tid exceeds parent's high key in postingTree leaf on block %u", RelationGetRelationName(rel), stack->blkno))); } else { LocationIndex pd_lower; ItemPointerData bound; int lowersize; /* * Check that tuples in each page are properly ordered and * consistent with parent high key */ maxoff = GinPageGetOpaque(page)->maxoff; rightlink = GinPageGetOpaque(page)->rightlink; elog(DEBUG1, "page blk: %u, type data, maxoff %d", stack->blkno, maxoff); if (stack->parentblk != InvalidBlockNumber) elog(DEBUG3, "blk %u: internal posting tree page with %u items, parent %u highkey (%u, %u)", stack->blkno, maxoff, stack->parentblk, ItemPointerGetBlockNumberNoCheck(&stack->parentkey), ItemPointerGetOffsetNumberNoCheck(&stack->parentkey)); else elog(DEBUG3, "blk %u: root internal posting tree page with %u items", stack->blkno, maxoff); /* * A GIN posting tree internal page stores PostingItems in the * 'lower' part of the page. The 'upper' part is unused. The * number of elements is stored in the opaque area (maxoff). Make * sure the size of the 'lower' part agrees with 'maxoff' * * We didn't set pd_lower until PostgreSQL version 9.4, so if this * check fails, it could also be because the index was * binary-upgraded from an earlier version. That was a long time * ago, though, so let's warn if it doesn't match. */ pd_lower = ((PageHeader) page)->pd_lower; lowersize = pd_lower - MAXALIGN(SizeOfPageHeaderData); if ((lowersize - MAXALIGN(sizeof(ItemPointerData))) / sizeof(PostingItem) != maxoff) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" has unexpected pd_lower %u in posting tree block %u with maxoff %u)", RelationGetRelationName(rel), pd_lower, stack->blkno, maxoff))); /* * Before the PostingItems, there's one ItemPointerData in the * 'lower' part that stores the page's high key. */ bound = *GinDataPageGetRightBound(page); /* * Gin page right bound has a sane value only when not a highkey * on the rightmost page (at a given level). For the rightmost * page does not store the highkey explicitly, and the value is * infinity. */ if (ItemPointerIsValid(&stack->parentkey) && rightlink != InvalidBlockNumber && !ItemPointerEquals(&stack->parentkey, &bound)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\": posting tree page's high key (%u, %u) doesn't match the downlink on block %u (parent blk %u, key (%u, %u))", RelationGetRelationName(rel), ItemPointerGetBlockNumberNoCheck(&bound), ItemPointerGetOffsetNumberNoCheck(&bound), stack->blkno, stack->parentblk, ItemPointerGetBlockNumberNoCheck(&stack->parentkey), ItemPointerGetOffsetNumberNoCheck(&stack->parentkey)))); for (i = FirstOffsetNumber; i <= maxoff; i = OffsetNumberNext(i)) { GinPostingTreeScanItem *ptr; PostingItem *posting_item = GinDataPageGetPostingItem(page, i); /* ItemPointerGetOffsetNumber expects a valid pointer */ if (!(i == maxoff && rightlink == InvalidBlockNumber)) elog(DEBUG3, "key (%u, %u) -> %u", ItemPointerGetBlockNumber(&posting_item->key), ItemPointerGetOffsetNumber(&posting_item->key), BlockIdGetBlockNumber(&posting_item->child_blkno)); else elog(DEBUG3, "key (%u, %u) -> %u", 0, 0, BlockIdGetBlockNumber(&posting_item->child_blkno)); if (i == maxoff && rightlink == InvalidBlockNumber) { /* * The rightmost item in the tree level has (0, 0) as the * key */ if (ItemPointerGetBlockNumberNoCheck(&posting_item->key) != 0 || ItemPointerGetOffsetNumberNoCheck(&posting_item->key) != 0) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\": rightmost posting tree page (blk %u) has unexpected last key (%u, %u)", RelationGetRelationName(rel), stack->blkno, ItemPointerGetBlockNumberNoCheck(&posting_item->key), ItemPointerGetOffsetNumberNoCheck(&posting_item->key)))); } else if (i != FirstOffsetNumber) { PostingItem *previous_posting_item = GinDataPageGetPostingItem(page, i - 1); if (ItemPointerCompare(&posting_item->key, &previous_posting_item->key) < 0) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" has wrong tuple order in posting tree, block %u, offset %u", RelationGetRelationName(rel), stack->blkno, i))); } /* * Check if this tuple is consistent with the downlink in the * parent. */ if (i == maxoff && ItemPointerIsValid(&stack->parentkey) && ItemPointerCompare(&stack->parentkey, &posting_item->key) < 0) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\": posting item exceeds parent's high key in postingTree internal page on block %u offset %u", RelationGetRelationName(rel), stack->blkno, i))); /* This is an internal page, recurse into the child. */ ptr = (GinPostingTreeScanItem *) palloc(sizeof(GinPostingTreeScanItem)); ptr->depth = stack->depth + 1; /* * The rightmost parent key is always invalid item pointer. * Its value is 'Infinity' and not explicitly stored. */ ptr->parentkey = posting_item->key; ptr->parentblk = stack->blkno; ptr->blkno = BlockIdGetBlockNumber(&posting_item->child_blkno); ptr->next = stack->next; stack->next = ptr; } } LockBuffer(buffer, GIN_UNLOCK); ReleaseBuffer(buffer); /* Step to next item in the queue */ stack_next = stack->next; pfree(stack); stack = stack_next; } MemoryContextSwitchTo(oldcontext); MemoryContextDelete(mctx); } /* * Main entry point for GIN checks. * * Allocates memory context and scans through the whole GIN graph. */ static void gin_check_parent_keys_consistency(Relation rel, Relation heaprel, void *callback_state, bool readonly) { BufferAccessStrategy strategy = GetAccessStrategy(BAS_BULKREAD); GinScanItem *stack; MemoryContext mctx; MemoryContext oldcontext; GinState state; int leafdepth; mctx = AllocSetContextCreate(CurrentMemoryContext, "amcheck consistency check context", ALLOCSET_DEFAULT_SIZES); oldcontext = MemoryContextSwitchTo(mctx); initGinState(&state, rel); /* * We don't know the height of the tree yet, but as soon as we encounter a * leaf page, we will set 'leafdepth' to its depth. */ leafdepth = -1; /* Start the scan at the root page */ stack = (GinScanItem *) palloc0(sizeof(GinScanItem)); stack->depth = 0; stack->parenttup = NULL; stack->parentblk = InvalidBlockNumber; stack->blkno = GIN_ROOT_BLKNO; while (stack) { GinScanItem *stack_next; Buffer buffer; Page page; OffsetNumber i, maxoff, prev_attnum; IndexTuple prev_tuple; BlockNumber rightlink; CHECK_FOR_INTERRUPTS(); buffer = ReadBufferExtended(rel, MAIN_FORKNUM, stack->blkno, RBM_NORMAL, strategy); LockBuffer(buffer, GIN_SHARE); page = (Page) BufferGetPage(buffer); maxoff = PageGetMaxOffsetNumber(page); rightlink = GinPageGetOpaque(page)->rightlink; /* Do basic sanity checks on the page headers */ check_index_page(rel, buffer, stack->blkno); elog(DEBUG3, "processing entry tree page at blk %u, maxoff: %u", stack->blkno, maxoff); /* * It's possible that the page was split since we looked at the * parent, so that we didn't missed the downlink of the right sibling * when we scanned the parent. If so, add the right sibling to the * stack now. */ if (stack->parenttup != NULL) { GinNullCategory parent_key_category; Datum parent_key = gintuple_get_key(&state, stack->parenttup, &parent_key_category); OffsetNumber parent_key_attnum = gintuple_get_attrnum(&state, stack->parenttup); ItemId iid = PageGetItemIdCareful(rel, stack->blkno, page, maxoff); IndexTuple idxtuple = (IndexTuple) PageGetItem(page, iid); OffsetNumber page_max_key_attnum = gintuple_get_attrnum(&state, idxtuple); GinNullCategory page_max_key_category; Datum page_max_key = gintuple_get_key(&state, idxtuple, &page_max_key_category); if (rightlink != InvalidBlockNumber && ginCompareAttEntries(&state, page_max_key_attnum, page_max_key, page_max_key_category, parent_key_attnum, parent_key, parent_key_category) < 0) { /* split page detected, install right link to the stack */ GinScanItem *ptr; elog(DEBUG3, "split detected for blk: %u, parent blk: %u", stack->blkno, stack->parentblk); ptr = (GinScanItem *) palloc(sizeof(GinScanItem)); ptr->depth = stack->depth; ptr->parenttup = CopyIndexTuple(stack->parenttup); ptr->parentblk = stack->parentblk; ptr->blkno = rightlink; ptr->next = stack->next; stack->next = ptr; } } /* Check that the tree has the same height in all branches */ if (GinPageIsLeaf(page)) { if (leafdepth == -1) leafdepth = stack->depth; else if (stack->depth != leafdepth) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\": internal pages traversal encountered leaf page unexpectedly on block %u", RelationGetRelationName(rel), stack->blkno))); } /* * Check that tuples in each page are properly ordered and consistent * with parent high key */ prev_tuple = NULL; prev_attnum = InvalidAttrNumber; for (i = FirstOffsetNumber; i <= maxoff; i = OffsetNumberNext(i)) { ItemId iid = PageGetItemIdCareful(rel, stack->blkno, page, i); IndexTuple idxtuple = (IndexTuple) PageGetItem(page, iid); OffsetNumber current_attnum = gintuple_get_attrnum(&state, idxtuple); GinNullCategory current_key_category; Datum current_key; if (MAXALIGN(ItemIdGetLength(iid)) != MAXALIGN(IndexTupleSize(idxtuple))) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" has inconsistent tuple sizes, block %u, offset %u", RelationGetRelationName(rel), stack->blkno, i))); current_key = gintuple_get_key(&state, idxtuple, ¤t_key_category); /* * Compare the entry to the preceding one. * * Don't check for high key on the rightmost inner page, as this * key is not really stored explicitly. * * The entries may be for different attributes, so make sure to * use ginCompareAttEntries for comparison. */ if ((i != FirstOffsetNumber) && !(i == maxoff && rightlink == InvalidBlockNumber && !GinPageIsLeaf(page))) { Datum prev_key; GinNullCategory prev_key_category; prev_key = gintuple_get_key(&state, prev_tuple, &prev_key_category); if (ginCompareAttEntries(&state, prev_attnum, prev_key, prev_key_category, current_attnum, current_key, current_key_category) >= 0) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" has wrong tuple order on entry tree page, block %u, offset %u, rightlink %u", RelationGetRelationName(rel), stack->blkno, i, rightlink))); } /* * Check if this tuple is consistent with the downlink in the * parent. */ if (stack->parenttup && i == maxoff) { GinNullCategory parent_key_category; OffsetNumber parent_key_attnum = gintuple_get_attrnum(&state, stack->parenttup); Datum parent_key = gintuple_get_key(&state, stack->parenttup, &parent_key_category); if (ginCompareAttEntries(&state, current_attnum, current_key, current_key_category, parent_key_attnum, parent_key, parent_key_category) > 0) { /* * There was a discrepancy between parent and child * tuples. We need to verify it is not a result of * concurrent call of gistplacetopage(). So, lock parent * and try to find downlink for current page. It may be * missing due to concurrent page split, this is OK. */ pfree(stack->parenttup); stack->parenttup = gin_refind_parent(rel, stack->parentblk, stack->blkno, strategy); /* We found it - make a final check before failing */ if (!stack->parenttup) elog(NOTICE, "Unable to find parent tuple for block %u on block %u due to concurrent split", stack->blkno, stack->parentblk); else { parent_key_attnum = gintuple_get_attrnum(&state, stack->parenttup); parent_key = gintuple_get_key(&state, stack->parenttup, &parent_key_category); /* * Check if it is properly adjusted. If succeed, * proceed to the next key. */ if (ginCompareAttEntries(&state, current_attnum, current_key, current_key_category, parent_key_attnum, parent_key, parent_key_category) > 0) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" has inconsistent records on page %u offset %u", RelationGetRelationName(rel), stack->blkno, i))); } } } /* If this is an internal page, recurse into the child */ if (!GinPageIsLeaf(page)) { GinScanItem *ptr; ptr = (GinScanItem *) palloc(sizeof(GinScanItem)); ptr->depth = stack->depth + 1; /* last tuple in layer has no high key */ if (i == maxoff && rightlink == InvalidBlockNumber) ptr->parenttup = NULL; else ptr->parenttup = CopyIndexTuple(idxtuple); ptr->parentblk = stack->blkno; ptr->blkno = GinGetDownlink(idxtuple); ptr->next = stack->next; stack->next = ptr; } /* If this item is a pointer to a posting tree, recurse into it */ else if (GinIsPostingTree(idxtuple)) { BlockNumber rootPostingTree = GinGetPostingTree(idxtuple); gin_check_posting_tree_parent_keys_consistency(rel, rootPostingTree); } else { ItemPointer ipd; int nipd; ipd = ginReadTupleWithoutState(idxtuple, &nipd); for (int j = 0; j < nipd; j++) { if (!OffsetNumberIsValid(ItemPointerGetOffsetNumber(&ipd[j]))) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\": posting list contains invalid heap pointer on block %u", RelationGetRelationName(rel), stack->blkno))); } pfree(ipd); } prev_tuple = CopyIndexTuple(idxtuple); prev_attnum = current_attnum; } LockBuffer(buffer, GIN_UNLOCK); ReleaseBuffer(buffer); /* Step to next item in the queue */ stack_next = stack->next; if (stack->parenttup) pfree(stack->parenttup); pfree(stack); stack = stack_next; } MemoryContextSwitchTo(oldcontext); MemoryContextDelete(mctx); } /* * Verify that a freshly-read page looks sane. */ static void check_index_page(Relation rel, Buffer buffer, BlockNumber blockNo) { Page page = BufferGetPage(buffer); /* * ReadBuffer verifies that every newly-read page passes * PageHeaderIsValid, which means it either contains a reasonably sane * page header or is all-zero. We have to defend against the all-zero * case, however. */ if (PageIsNew(page)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" contains unexpected zero page at block %u", RelationGetRelationName(rel), BufferGetBlockNumber(buffer)), errhint("Please REINDEX it."))); /* * Additionally check that the special area looks sane. */ if (PageGetSpecialSize(page) != MAXALIGN(sizeof(GinPageOpaqueData))) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" contains corrupted page at block %u", RelationGetRelationName(rel), BufferGetBlockNumber(buffer)), errhint("Please REINDEX it."))); if (GinPageIsDeleted(page)) { if (!GinPageIsLeaf(page)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" has deleted internal page %u", RelationGetRelationName(rel), blockNo))); if (PageGetMaxOffsetNumber(page) > InvalidOffsetNumber) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" has deleted page %u with tuples", RelationGetRelationName(rel), blockNo))); } else if (PageGetMaxOffsetNumber(page) > MaxIndexTuplesPerPage) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" has page %u with exceeding count of tuples", RelationGetRelationName(rel), blockNo))); } /* * Try to re-find downlink pointing to 'blkno', in 'parentblkno'. * * If found, returns a palloc'd copy of the downlink tuple. Otherwise, * returns NULL. */ static IndexTuple gin_refind_parent(Relation rel, BlockNumber parentblkno, BlockNumber childblkno, BufferAccessStrategy strategy) { Buffer parentbuf; Page parentpage; OffsetNumber o, parent_maxoff; IndexTuple result = NULL; parentbuf = ReadBufferExtended(rel, MAIN_FORKNUM, parentblkno, RBM_NORMAL, strategy); LockBuffer(parentbuf, GIN_SHARE); parentpage = BufferGetPage(parentbuf); if (GinPageIsLeaf(parentpage)) { UnlockReleaseBuffer(parentbuf); return result; } parent_maxoff = PageGetMaxOffsetNumber(parentpage); for (o = FirstOffsetNumber; o <= parent_maxoff; o = OffsetNumberNext(o)) { ItemId p_iid = PageGetItemIdCareful(rel, parentblkno, parentpage, o); IndexTuple itup = (IndexTuple) PageGetItem(parentpage, p_iid); if (GinGetDownlink(itup) == childblkno) { /* Found it! Make copy and return it */ result = CopyIndexTuple(itup); break; } } UnlockReleaseBuffer(parentbuf); return result; } static ItemId PageGetItemIdCareful(Relation rel, BlockNumber block, Page page, OffsetNumber offset) { ItemId itemid = PageGetItemId(page, offset); if (ItemIdGetOffset(itemid) + ItemIdGetLength(itemid) > BLCKSZ - MAXALIGN(sizeof(GinPageOpaqueData))) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("line pointer points past end of tuple space in index \"%s\"", RelationGetRelationName(rel)), errdetail_internal("Index tid=(%u,%u) lp_off=%u, lp_len=%u lp_flags=%u.", block, offset, ItemIdGetOffset(itemid), ItemIdGetLength(itemid), ItemIdGetFlags(itemid)))); /* * Verify that line pointer isn't LP_REDIRECT or LP_UNUSED or LP_DEAD, * since GIN never uses all three. Verify that line pointer has storage, * too. */ if (ItemIdIsRedirected(itemid) || !ItemIdIsUsed(itemid) || ItemIdIsDead(itemid) || ItemIdGetLength(itemid) == 0) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("invalid line pointer storage in index \"%s\"", RelationGetRelationName(rel)), errdetail_internal("Index tid=(%u,%u) lp_off=%u, lp_len=%u lp_flags=%u.", block, offset, ItemIdGetOffset(itemid), ItemIdGetLength(itemid), ItemIdGetFlags(itemid)))); return itemid; } contrib/amcheck/verify_heapam.c
New file @@ -0,0 +1,2178 @@ /*------------------------------------------------------------------------- * * verify_heapam.c * Functions to check postgresql heap relations for corruption * * Copyright (c) 2016-2025, PostgreSQL Global Development Group * * contrib/amcheck/verify_heapam.c *------------------------------------------------------------------------- */ #include "postgres.h" #include "access/detoast.h" #include "access/genam.h" #include "access/heaptoast.h" #include "access/multixact.h" #include "access/relation.h" #include "access/table.h" #include "access/toast_internals.h" #include "access/visibilitymap.h" #include "access/xact.h" #include "catalog/pg_am.h" #include "catalog/pg_class.h" #include "funcapi.h" #include "miscadmin.h" #include "storage/bufmgr.h" #include "storage/procarray.h" #include "storage/read_stream.h" #include "utils/builtins.h" #include "utils/fmgroids.h" #include "utils/rel.h" PG_FUNCTION_INFO_V1(verify_heapam); /* The number of columns in tuples returned by verify_heapam */ #define HEAPCHECK_RELATION_COLS 4 /* The largest valid toast va_rawsize */ #define VARLENA_SIZE_LIMIT 0x3FFFFFFF /* * Despite the name, we use this for reporting problems with both XIDs and * MXIDs. */ typedef enum XidBoundsViolation { XID_INVALID, XID_IN_FUTURE, XID_PRECEDES_CLUSTERMIN, XID_PRECEDES_RELMIN, XID_BOUNDS_OK, } XidBoundsViolation; typedef enum XidCommitStatus { XID_COMMITTED, XID_IS_CURRENT_XID, XID_IN_PROGRESS, XID_ABORTED, } XidCommitStatus; typedef enum SkipPages { SKIP_PAGES_ALL_FROZEN, SKIP_PAGES_ALL_VISIBLE, SKIP_PAGES_NONE, } SkipPages; /* * Struct holding information about a toasted attribute sufficient to both * check the toasted attribute and, if found to be corrupt, to report where it * was encountered in the main table. */ typedef struct ToastedAttribute { struct varatt_external toast_pointer; BlockNumber blkno; /* block in main table */ OffsetNumber offnum; /* offset in main table */ AttrNumber attnum; /* attribute in main table */ } ToastedAttribute; /* * Struct holding the running context information during * a lifetime of a verify_heapam execution. */ typedef struct HeapCheckContext { /* * Cached copies of values from TransamVariables and computed values from * them. */ FullTransactionId next_fxid; /* TransamVariables->nextXid */ TransactionId next_xid; /* 32-bit version of next_fxid */ TransactionId oldest_xid; /* TransamVariables->oldestXid */ FullTransactionId oldest_fxid; /* 64-bit version of oldest_xid, computed * relative to next_fxid */ TransactionId safe_xmin; /* this XID and newer ones can't become * all-visible while we're running */ /* * Cached copy of value from MultiXactState */ MultiXactId next_mxact; /* MultiXactState->nextMXact */ MultiXactId oldest_mxact; /* MultiXactState->oldestMultiXactId */ /* * Cached copies of the most recently checked xid and its status. */ TransactionId cached_xid; XidCommitStatus cached_status; /* Values concerning the heap relation being checked */ Relation rel; TransactionId relfrozenxid; FullTransactionId relfrozenfxid; TransactionId relminmxid; Relation toast_rel; Relation *toast_indexes; Relation valid_toast_index; int num_toast_indexes; /* * Values for iterating over pages in the relation. `blkno` is the most * recent block in the buffer yielded by the read stream API. */ BlockNumber blkno; BufferAccessStrategy bstrategy; Buffer buffer; Page page; /* Values for iterating over tuples within a page */ OffsetNumber offnum; ItemId itemid; uint16 lp_len; uint16 lp_off; HeapTupleHeader tuphdr; int natts; /* Values for iterating over attributes within the tuple */ uint32 offset; /* offset in tuple data */ AttrNumber attnum; /* True if tuple's xmax makes it eligible for pruning */ bool tuple_could_be_pruned; /* * List of ToastedAttribute structs for toasted attributes which are not * eligible for pruning and should be checked */ List *toasted_attributes; /* Whether verify_heapam has yet encountered any corrupt tuples */ bool is_corrupt; /* The descriptor and tuplestore for verify_heapam's result tuples */ TupleDesc tupdesc; Tuplestorestate *tupstore; } HeapCheckContext; /* * The per-relation data provided to the read stream API for heap amcheck to * use in its callback for the SKIP_PAGES_ALL_FROZEN and * SKIP_PAGES_ALL_VISIBLE options. */ typedef struct HeapCheckReadStreamData { /* * `range` is used by all SkipPages options. SKIP_PAGES_NONE uses the * default read stream callback, block_range_read_stream_cb(), which takes * a BlockRangeReadStreamPrivate as its callback_private_data. `range` * keeps track of the current block number across * read_stream_next_buffer() invocations. */ BlockRangeReadStreamPrivate range; SkipPages skip_option; Relation rel; Buffer *vmbuffer; } HeapCheckReadStreamData; /* Internal implementation */ static BlockNumber heapcheck_read_stream_next_unskippable(ReadStream *stream, void *callback_private_data, void *per_buffer_data); static void check_tuple(HeapCheckContext *ctx, bool *xmin_commit_status_ok, XidCommitStatus *xmin_commit_status); static void check_toast_tuple(HeapTuple toasttup, HeapCheckContext *ctx, ToastedAttribute *ta, int32 *expected_chunk_seq, uint32 extsize); static bool check_tuple_attribute(HeapCheckContext *ctx); static void check_toasted_attribute(HeapCheckContext *ctx, ToastedAttribute *ta); static bool check_tuple_header(HeapCheckContext *ctx); static bool check_tuple_visibility(HeapCheckContext *ctx, bool *xmin_commit_status_ok, XidCommitStatus *xmin_commit_status); static void report_corruption(HeapCheckContext *ctx, char *msg); static void report_toast_corruption(HeapCheckContext *ctx, ToastedAttribute *ta, char *msg); static FullTransactionId FullTransactionIdFromXidAndCtx(TransactionId xid, const HeapCheckContext *ctx); static void update_cached_xid_range(HeapCheckContext *ctx); static void update_cached_mxid_range(HeapCheckContext *ctx); static XidBoundsViolation check_mxid_in_range(MultiXactId mxid, HeapCheckContext *ctx); static XidBoundsViolation check_mxid_valid_in_rel(MultiXactId mxid, HeapCheckContext *ctx); static XidBoundsViolation get_xid_status(TransactionId xid, HeapCheckContext *ctx, XidCommitStatus *status); /* * Scan and report corruption in heap pages, optionally reconciling toasted * attributes with entries in the associated toast table. Intended to be * called from SQL with the following parameters: * * relation: * The Oid of the heap relation to be checked. * * on_error_stop: * Whether to stop at the end of the first page for which errors are * detected. Note that multiple rows may be returned. * * check_toast: * Whether to check each toasted attribute against the toast table to * verify that it can be found there. * * skip: * What kinds of pages in the heap relation should be skipped. Valid * options are "all-visible", "all-frozen", and "none". * * Returns to the SQL caller a set of tuples, each containing the location * and a description of a corruption found in the heap. * * This code goes to some trouble to avoid crashing the server even if the * table pages are badly corrupted, but it's probably not perfect. If * check_toast is true, we'll use regular index lookups to try to fetch TOAST * tuples, which can certainly cause crashes if the right kind of corruption * exists in the toast table or index. No matter what parameters you pass, * we can't protect against crashes that might occur trying to look up the * commit status of transaction IDs (though we avoid trying to do such lookups * for transaction IDs that can't legally appear in the table). */ Datum verify_heapam(PG_FUNCTION_ARGS) { ReturnSetInfo *rsinfo = (ReturnSetInfo *) fcinfo->resultinfo; HeapCheckContext ctx; Buffer vmbuffer = InvalidBuffer; Oid relid; bool on_error_stop; bool check_toast; SkipPages skip_option = SKIP_PAGES_NONE; BlockNumber first_block; BlockNumber last_block; BlockNumber nblocks; const char *skip; ReadStream *stream; int stream_flags; ReadStreamBlockNumberCB stream_cb; void *stream_data; HeapCheckReadStreamData stream_skip_data; /* Check supplied arguments */ if (PG_ARGISNULL(0)) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("relation cannot be null"))); relid = PG_GETARG_OID(0); if (PG_ARGISNULL(1)) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("on_error_stop cannot be null"))); on_error_stop = PG_GETARG_BOOL(1); if (PG_ARGISNULL(2)) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("check_toast cannot be null"))); check_toast = PG_GETARG_BOOL(2); if (PG_ARGISNULL(3)) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("skip cannot be null"))); skip = text_to_cstring(PG_GETARG_TEXT_PP(3)); if (pg_strcasecmp(skip, "all-visible") == 0) skip_option = SKIP_PAGES_ALL_VISIBLE; else if (pg_strcasecmp(skip, "all-frozen") == 0) skip_option = SKIP_PAGES_ALL_FROZEN; else if (pg_strcasecmp(skip, "none") == 0) skip_option = SKIP_PAGES_NONE; else ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("invalid skip option"), errhint("Valid skip options are \"all-visible\", \"all-frozen\", and \"none\"."))); memset(&ctx, 0, sizeof(HeapCheckContext)); ctx.cached_xid = InvalidTransactionId; ctx.toasted_attributes = NIL; /* * Any xmin newer than the xmin of our snapshot can't become all-visible * while we're running. */ ctx.safe_xmin = GetTransactionSnapshot()->xmin; /* * If we report corruption when not examining some individual attribute, * we need attnum to be reported as NULL. Set that up before any * corruption reporting might happen. */ ctx.attnum = -1; /* Construct the tuplestore and tuple descriptor */ InitMaterializedSRF(fcinfo, 0); ctx.tupdesc = rsinfo->setDesc; ctx.tupstore = rsinfo->setResult; /* Open relation, check relkind and access method */ ctx.rel = relation_open(relid, AccessShareLock); /* * Check that a relation's relkind and access method are both supported. */ if (!RELKIND_HAS_TABLE_AM(ctx.rel->rd_rel->relkind) && ctx.rel->rd_rel->relkind != RELKIND_SEQUENCE) ereport(ERROR, (errcode(ERRCODE_WRONG_OBJECT_TYPE), errmsg("cannot check relation \"%s\"", RelationGetRelationName(ctx.rel)), errdetail_relkind_not_supported(ctx.rel->rd_rel->relkind))); /* * Sequences always use heap AM, but they don't show that in the catalogs. * Other relkinds might be using a different AM, so check. */ if (ctx.rel->rd_rel->relkind != RELKIND_SEQUENCE && ctx.rel->rd_rel->relam != HEAP_TABLE_AM_OID) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("only heap AM is supported"))); /* * Early exit for unlogged relations during recovery. These will have no * relation fork, so there won't be anything to check. We behave as if * the relation is empty. */ if (ctx.rel->rd_rel->relpersistence == RELPERSISTENCE_UNLOGGED && RecoveryInProgress()) { ereport(DEBUG1, (errcode(ERRCODE_READ_ONLY_SQL_TRANSACTION), errmsg("cannot verify unlogged relation \"%s\" during recovery, skipping", RelationGetRelationName(ctx.rel)))); relation_close(ctx.rel, AccessShareLock); PG_RETURN_NULL(); } /* Early exit if the relation is empty */ nblocks = RelationGetNumberOfBlocks(ctx.rel); if (!nblocks) { relation_close(ctx.rel, AccessShareLock); PG_RETURN_NULL(); } ctx.bstrategy = GetAccessStrategy(BAS_BULKREAD); ctx.buffer = InvalidBuffer; ctx.page = NULL; /* Validate block numbers, or handle nulls. */ if (PG_ARGISNULL(4)) first_block = 0; else { int64 fb = PG_GETARG_INT64(4); if (fb < 0 || fb >= nblocks) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("starting block number must be between 0 and %u", nblocks - 1))); first_block = (BlockNumber) fb; } if (PG_ARGISNULL(5)) last_block = nblocks - 1; else { int64 lb = PG_GETARG_INT64(5); if (lb < 0 || lb >= nblocks) ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("ending block number must be between 0 and %u", nblocks - 1))); last_block = (BlockNumber) lb; } /* Optionally open the toast relation, if any. */ if (ctx.rel->rd_rel->reltoastrelid && check_toast) { int offset; /* Main relation has associated toast relation */ ctx.toast_rel = table_open(ctx.rel->rd_rel->reltoastrelid, AccessShareLock); offset = toast_open_indexes(ctx.toast_rel, AccessShareLock, &(ctx.toast_indexes), &(ctx.num_toast_indexes)); ctx.valid_toast_index = ctx.toast_indexes[offset]; } else { /* * Main relation has no associated toast relation, or we're * intentionally skipping it. */ ctx.toast_rel = NULL; ctx.toast_indexes = NULL; ctx.num_toast_indexes = 0; } update_cached_xid_range(&ctx); update_cached_mxid_range(&ctx); ctx.relfrozenxid = ctx.rel->rd_rel->relfrozenxid; ctx.relfrozenfxid = FullTransactionIdFromXidAndCtx(ctx.relfrozenxid, &ctx); ctx.relminmxid = ctx.rel->rd_rel->relminmxid; if (TransactionIdIsNormal(ctx.relfrozenxid)) ctx.oldest_xid = ctx.relfrozenxid; /* Now that `ctx` is set up, set up the read stream */ stream_skip_data.range.current_blocknum = first_block; stream_skip_data.range.last_exclusive = last_block + 1; stream_skip_data.skip_option = skip_option; stream_skip_data.rel = ctx.rel; stream_skip_data.vmbuffer = &vmbuffer; if (skip_option == SKIP_PAGES_NONE) { /* * It is safe to use batchmode as block_range_read_stream_cb takes no * locks. */ stream_cb = block_range_read_stream_cb; stream_flags = READ_STREAM_SEQUENTIAL | READ_STREAM_FULL | READ_STREAM_USE_BATCHING; stream_data = &stream_skip_data.range; } else { /* * It would not be safe to naively use batchmode, as * heapcheck_read_stream_next_unskippable takes locks. It shouldn't be * too hard to convert though. */ stream_cb = heapcheck_read_stream_next_unskippable; stream_flags = READ_STREAM_DEFAULT; stream_data = &stream_skip_data; } stream = read_stream_begin_relation(stream_flags, ctx.bstrategy, ctx.rel, MAIN_FORKNUM, stream_cb, stream_data, 0); while ((ctx.buffer = read_stream_next_buffer(stream, NULL)) != InvalidBuffer) { OffsetNumber maxoff; OffsetNumber predecessor[MaxOffsetNumber]; OffsetNumber successor[MaxOffsetNumber]; bool lp_valid[MaxOffsetNumber]; bool xmin_commit_status_ok[MaxOffsetNumber]; XidCommitStatus xmin_commit_status[MaxOffsetNumber]; CHECK_FOR_INTERRUPTS(); memset(predecessor, 0, sizeof(OffsetNumber) * MaxOffsetNumber); /* Lock the next page. */ Assert(BufferIsValid(ctx.buffer)); LockBuffer(ctx.buffer, BUFFER_LOCK_SHARE); ctx.blkno = BufferGetBlockNumber(ctx.buffer); ctx.page = BufferGetPage(ctx.buffer); /* Perform tuple checks */ maxoff = PageGetMaxOffsetNumber(ctx.page); for (ctx.offnum = FirstOffsetNumber; ctx.offnum <= maxoff; ctx.offnum = OffsetNumberNext(ctx.offnum)) { BlockNumber nextblkno; OffsetNumber nextoffnum; successor[ctx.offnum] = InvalidOffsetNumber; lp_valid[ctx.offnum] = false; xmin_commit_status_ok[ctx.offnum] = false; ctx.itemid = PageGetItemId(ctx.page, ctx.offnum); /* Skip over unused/dead line pointers */ if (!ItemIdIsUsed(ctx.itemid) || ItemIdIsDead(ctx.itemid)) continue; /* * If this line pointer has been redirected, check that it * redirects to a valid offset within the line pointer array */ if (ItemIdIsRedirected(ctx.itemid)) { OffsetNumber rdoffnum = ItemIdGetRedirect(ctx.itemid); ItemId rditem; if (rdoffnum < FirstOffsetNumber) { report_corruption(&ctx, psprintf("line pointer redirection to item at offset %u precedes minimum offset %u", (unsigned) rdoffnum, (unsigned) FirstOffsetNumber)); continue; } if (rdoffnum > maxoff) { report_corruption(&ctx, psprintf("line pointer redirection to item at offset %u exceeds maximum offset %u", (unsigned) rdoffnum, (unsigned) maxoff)); continue; } /* * Since we've checked that this redirect points to a line * pointer between FirstOffsetNumber and maxoff, it should now * be safe to fetch the referenced line pointer. We expect it * to be LP_NORMAL; if not, that's corruption. */ rditem = PageGetItemId(ctx.page, rdoffnum); if (!ItemIdIsUsed(rditem)) { report_corruption(&ctx, psprintf("redirected line pointer points to an unused item at offset %u", (unsigned) rdoffnum)); continue; } else if (ItemIdIsDead(rditem)) { report_corruption(&ctx, psprintf("redirected line pointer points to a dead item at offset %u", (unsigned) rdoffnum)); continue; } else if (ItemIdIsRedirected(rditem)) { report_corruption(&ctx, psprintf("redirected line pointer points to another redirected line pointer at offset %u", (unsigned) rdoffnum)); continue; } /* * Record the fact that this line pointer has passed basic * sanity checking, and also the offset number to which it * points. */ lp_valid[ctx.offnum] = true; successor[ctx.offnum] = rdoffnum; continue; } /* Sanity-check the line pointer's offset and length values */ ctx.lp_len = ItemIdGetLength(ctx.itemid); ctx.lp_off = ItemIdGetOffset(ctx.itemid); if (ctx.lp_off != MAXALIGN(ctx.lp_off)) { report_corruption(&ctx, psprintf("line pointer to page offset %u is not maximally aligned", ctx.lp_off)); continue; } if (ctx.lp_len < MAXALIGN(SizeofHeapTupleHeader)) { report_corruption(&ctx, psprintf("line pointer length %u is less than the minimum tuple header size %u", ctx.lp_len, (unsigned) MAXALIGN(SizeofHeapTupleHeader))); continue; } if (ctx.lp_off + ctx.lp_len > BLCKSZ) { report_corruption(&ctx, psprintf("line pointer to page offset %u with length %u ends beyond maximum page offset %u", ctx.lp_off, ctx.lp_len, (unsigned) BLCKSZ)); continue; } /* It should be safe to examine the tuple's header, at least */ lp_valid[ctx.offnum] = true; ctx.tuphdr = (HeapTupleHeader) PageGetItem(ctx.page, ctx.itemid); ctx.natts = HeapTupleHeaderGetNatts(ctx.tuphdr); /* Ok, ready to check this next tuple */ check_tuple(&ctx, &xmin_commit_status_ok[ctx.offnum], &xmin_commit_status[ctx.offnum]); /* * If the CTID field of this tuple seems to point to another tuple * on the same page, record that tuple as the successor of this * one. */ nextblkno = ItemPointerGetBlockNumber(&(ctx.tuphdr)->t_ctid); nextoffnum = ItemPointerGetOffsetNumber(&(ctx.tuphdr)->t_ctid); if (nextblkno == ctx.blkno && nextoffnum != ctx.offnum && nextoffnum >= FirstOffsetNumber && nextoffnum <= maxoff) successor[ctx.offnum] = nextoffnum; } /* * Update chain validation. Check each line pointer that's got a valid * successor against that successor. */ ctx.attnum = -1; for (ctx.offnum = FirstOffsetNumber; ctx.offnum <= maxoff; ctx.offnum = OffsetNumberNext(ctx.offnum)) { ItemId curr_lp; ItemId next_lp; HeapTupleHeader curr_htup; HeapTupleHeader next_htup; TransactionId curr_xmin; TransactionId curr_xmax; TransactionId next_xmin; OffsetNumber nextoffnum = successor[ctx.offnum]; /* * The current line pointer may not have a successor, either * because it's not valid or because it didn't point to anything. * In either case, we have to give up. * * If the current line pointer does point to something, it's * possible that the target line pointer isn't valid. We have to * give up in that case, too. */ if (nextoffnum == InvalidOffsetNumber || !lp_valid[nextoffnum]) continue; /* We have two valid line pointers that we can examine. */ curr_lp = PageGetItemId(ctx.page, ctx.offnum); next_lp = PageGetItemId(ctx.page, nextoffnum); /* Handle the cases where the current line pointer is a redirect. */ if (ItemIdIsRedirected(curr_lp)) { /* * We should not have set successor[ctx.offnum] to a value * other than InvalidOffsetNumber unless that line pointer is * LP_NORMAL. */ Assert(ItemIdIsNormal(next_lp)); /* Can only redirect to a HOT tuple. */ next_htup = (HeapTupleHeader) PageGetItem(ctx.page, next_lp); if (!HeapTupleHeaderIsHeapOnly(next_htup)) { report_corruption(&ctx, psprintf("redirected line pointer points to a non-heap-only tuple at offset %u", (unsigned) nextoffnum)); } /* HOT chains should not intersect. */ if (predecessor[nextoffnum] != InvalidOffsetNumber) { report_corruption(&ctx, psprintf("redirect line pointer points to offset %u, but offset %u also points there", (unsigned) nextoffnum, (unsigned) predecessor[nextoffnum])); continue; } /* * This redirect and the tuple to which it points seem to be * part of an update chain. */ predecessor[nextoffnum] = ctx.offnum; continue; } /* * If the next line pointer is a redirect, or if it's a tuple but * the XMAX of this tuple doesn't match the XMIN of the next * tuple, then the two aren't part of the same update chain and * there is nothing more to do. */ if (ItemIdIsRedirected(next_lp)) continue; curr_htup = (HeapTupleHeader) PageGetItem(ctx.page, curr_lp); curr_xmax = HeapTupleHeaderGetUpdateXid(curr_htup); next_htup = (HeapTupleHeader) PageGetItem(ctx.page, next_lp); next_xmin = HeapTupleHeaderGetXmin(next_htup); if (!TransactionIdIsValid(curr_xmax) || !TransactionIdEquals(curr_xmax, next_xmin)) continue; /* HOT chains should not intersect. */ if (predecessor[nextoffnum] != InvalidOffsetNumber) { report_corruption(&ctx, psprintf("tuple points to new version at offset %u, but offset %u also points there", (unsigned) nextoffnum, (unsigned) predecessor[nextoffnum])); continue; } /* * This tuple and the tuple to which it points seem to be part of * an update chain. */ predecessor[nextoffnum] = ctx.offnum; /* * If the current tuple is marked as HOT-updated, then the next * tuple should be marked as a heap-only tuple. Conversely, if the * current tuple isn't marked as HOT-updated, then the next tuple * shouldn't be marked as a heap-only tuple. * * NB: Can't use HeapTupleHeaderIsHotUpdated() as it checks if * hint bits indicate xmin/xmax aborted. */ if (!(curr_htup->t_infomask2 & HEAP_HOT_UPDATED) && HeapTupleHeaderIsHeapOnly(next_htup)) { report_corruption(&ctx, psprintf("non-heap-only update produced a heap-only tuple at offset %u", (unsigned) nextoffnum)); } if ((curr_htup->t_infomask2 & HEAP_HOT_UPDATED) && !HeapTupleHeaderIsHeapOnly(next_htup)) { report_corruption(&ctx, psprintf("heap-only update produced a non-heap only tuple at offset %u", (unsigned) nextoffnum)); } /* * If the current tuple's xmin is still in progress but the * successor tuple's xmin is committed, that's corruption. * * NB: We recheck the commit status of the current tuple's xmin * here, because it might have committed after we checked it and * before we checked the commit status of the successor tuple's * xmin. This should be safe because the xmin itself can't have * changed, only its commit status. */ curr_xmin = HeapTupleHeaderGetXmin(curr_htup); if (xmin_commit_status_ok[ctx.offnum] && xmin_commit_status[ctx.offnum] == XID_IN_PROGRESS && xmin_commit_status_ok[nextoffnum] && xmin_commit_status[nextoffnum] == XID_COMMITTED && TransactionIdIsInProgress(curr_xmin)) { report_corruption(&ctx, psprintf("tuple with in-progress xmin %u was updated to produce a tuple at offset %u with committed xmin %u", (unsigned) curr_xmin, (unsigned) ctx.offnum, (unsigned) next_xmin)); } /* * If the current tuple's xmin is aborted but the successor * tuple's xmin is in-progress or committed, that's corruption. */ if (xmin_commit_status_ok[ctx.offnum] && xmin_commit_status[ctx.offnum] == XID_ABORTED && xmin_commit_status_ok[nextoffnum]) { if (xmin_commit_status[nextoffnum] == XID_IN_PROGRESS) report_corruption(&ctx, psprintf("tuple with aborted xmin %u was updated to produce a tuple at offset %u with in-progress xmin %u", (unsigned) curr_xmin, (unsigned) ctx.offnum, (unsigned) next_xmin)); else if (xmin_commit_status[nextoffnum] == XID_COMMITTED) report_corruption(&ctx, psprintf("tuple with aborted xmin %u was updated to produce a tuple at offset %u with committed xmin %u", (unsigned) curr_xmin, (unsigned) ctx.offnum, (unsigned) next_xmin)); } } /* * An update chain can start either with a non-heap-only tuple or with * a redirect line pointer, but not with a heap-only tuple. * * (This check is in a separate loop because we need the predecessor * array to be fully populated before we can perform it.) */ for (ctx.offnum = FirstOffsetNumber; ctx.offnum <= maxoff; ctx.offnum = OffsetNumberNext(ctx.offnum)) { if (xmin_commit_status_ok[ctx.offnum] && (xmin_commit_status[ctx.offnum] == XID_COMMITTED || xmin_commit_status[ctx.offnum] == XID_IN_PROGRESS) && predecessor[ctx.offnum] == InvalidOffsetNumber) { ItemId curr_lp; curr_lp = PageGetItemId(ctx.page, ctx.offnum); if (!ItemIdIsRedirected(curr_lp)) { HeapTupleHeader curr_htup; curr_htup = (HeapTupleHeader) PageGetItem(ctx.page, curr_lp); if (HeapTupleHeaderIsHeapOnly(curr_htup)) report_corruption(&ctx, psprintf("tuple is root of chain but is marked as heap-only tuple")); } } } /* clean up */ UnlockReleaseBuffer(ctx.buffer); /* * Check any toast pointers from the page whose lock we just released */ if (ctx.toasted_attributes != NIL) { ListCell *cell; foreach(cell, ctx.toasted_attributes) check_toasted_attribute(&ctx, lfirst(cell)); list_free_deep(ctx.toasted_attributes); ctx.toasted_attributes = NIL; } if (on_error_stop && ctx.is_corrupt) break; } read_stream_end(stream); if (vmbuffer != InvalidBuffer) ReleaseBuffer(vmbuffer); /* Close the associated toast table and indexes, if any. */ if (ctx.toast_indexes) toast_close_indexes(ctx.toast_indexes, ctx.num_toast_indexes, AccessShareLock); if (ctx.toast_rel) table_close(ctx.toast_rel, AccessShareLock); /* Close the main relation */ relation_close(ctx.rel, AccessShareLock); PG_RETURN_NULL(); } /* * Heap amcheck's read stream callback for getting the next unskippable block. * This callback is only used when 'all-visible' or 'all-frozen' is provided * as the skip option to verify_heapam(). With the default 'none', * block_range_read_stream_cb() is used instead. */ static BlockNumber heapcheck_read_stream_next_unskippable(ReadStream *stream, void *callback_private_data, void *per_buffer_data) { HeapCheckReadStreamData *p = callback_private_data; /* Loops over [current_blocknum, last_exclusive) blocks */ for (BlockNumber i; (i = p->range.current_blocknum++) < p->range.last_exclusive;) { uint8 mapbits = visibilitymap_get_status(p->rel, i, p->vmbuffer); if (p->skip_option == SKIP_PAGES_ALL_FROZEN) { if ((mapbits & VISIBILITYMAP_ALL_FROZEN) != 0) continue; } if (p->skip_option == SKIP_PAGES_ALL_VISIBLE) { if ((mapbits & VISIBILITYMAP_ALL_VISIBLE) != 0) continue; } return i; } return InvalidBlockNumber; } /* * Shared internal implementation for report_corruption and * report_toast_corruption. */ static void report_corruption_internal(Tuplestorestate *tupstore, TupleDesc tupdesc, BlockNumber blkno, OffsetNumber offnum, AttrNumber attnum, char *msg) { Datum values[HEAPCHECK_RELATION_COLS] = {0}; bool nulls[HEAPCHECK_RELATION_COLS] = {0}; HeapTuple tuple; values[0] = Int64GetDatum(blkno); values[1] = Int32GetDatum(offnum); values[2] = Int32GetDatum(attnum); nulls[2] = (attnum < 0); values[3] = CStringGetTextDatum(msg); /* * In principle, there is nothing to prevent a scan over a large, highly * corrupted table from using work_mem worth of memory building up the * tuplestore. That's ok, but if we also leak the msg argument memory * until the end of the query, we could exceed work_mem by more than a * trivial amount. Therefore, free the msg argument each time we are * called rather than waiting for our current memory context to be freed. */ pfree(msg); tuple = heap_form_tuple(tupdesc, values, nulls); tuplestore_puttuple(tupstore, tuple); } /* * Record a single corruption found in the main table. The values in ctx should * indicate the location of the corruption, and the msg argument should contain * a human-readable description of the corruption. * * The msg argument is pfree'd by this function. */ static void report_corruption(HeapCheckContext *ctx, char *msg) { report_corruption_internal(ctx->tupstore, ctx->tupdesc, ctx->blkno, ctx->offnum, ctx->attnum, msg); ctx->is_corrupt = true; } /* * Record corruption found in the toast table. The values in ta should * indicate the location in the main table where the toast pointer was * encountered, and the msg argument should contain a human-readable * description of the toast table corruption. * * As above, the msg argument is pfree'd by this function. */ static void report_toast_corruption(HeapCheckContext *ctx, ToastedAttribute *ta, char *msg) { report_corruption_internal(ctx->tupstore, ctx->tupdesc, ta->blkno, ta->offnum, ta->attnum, msg); ctx->is_corrupt = true; } /* * Check for tuple header corruption. * * Some kinds of corruption make it unsafe to check the tuple attributes, for * example when the line pointer refers to a range of bytes outside the page. * In such cases, we return false (not checkable) after recording appropriate * corruption messages. * * Some other kinds of tuple header corruption confuse the question of where * the tuple attributes begin, or how long the nulls bitmap is, etc., making it * unreasonable to attempt to check attributes, even if all candidate answers * to those questions would not result in reading past the end of the line * pointer or page. In such cases, like above, we record corruption messages * about the header and then return false. * * Other kinds of tuple header corruption do not bear on the question of * whether the tuple attributes can be checked, so we record corruption * messages for them but we do not return false merely because we detected * them. * * Returns whether the tuple is sufficiently sensible to undergo visibility and * attribute checks. */ static bool check_tuple_header(HeapCheckContext *ctx) { HeapTupleHeader tuphdr = ctx->tuphdr; uint16 infomask = tuphdr->t_infomask; TransactionId curr_xmax = HeapTupleHeaderGetUpdateXid(tuphdr); bool result = true; unsigned expected_hoff; if (ctx->tuphdr->t_hoff > ctx->lp_len) { report_corruption(ctx, psprintf("data begins at offset %u beyond the tuple length %u", ctx->tuphdr->t_hoff, ctx->lp_len)); result = false; } if ((ctx->tuphdr->t_infomask & HEAP_XMAX_COMMITTED) && (ctx->tuphdr->t_infomask & HEAP_XMAX_IS_MULTI)) { report_corruption(ctx, pstrdup("multixact should not be marked committed")); /* * This condition is clearly wrong, but it's not enough to justify * skipping further checks, because we don't rely on this to determine * whether the tuple is visible or to interpret other relevant header * fields. */ } if (!TransactionIdIsValid(curr_xmax) && HeapTupleHeaderIsHotUpdated(tuphdr)) { report_corruption(ctx, psprintf("tuple has been HOT updated, but xmax is 0")); /* * As above, even though this shouldn't happen, it's not sufficient * justification for skipping further checks, we should still be able * to perform sensibly. */ } if (HeapTupleHeaderIsHeapOnly(tuphdr) && ((tuphdr->t_infomask & HEAP_UPDATED) == 0)) { report_corruption(ctx, psprintf("tuple is heap only, but not the result of an update")); /* Here again, we can still perform further checks. */ } if (infomask & HEAP_HASNULL) expected_hoff = MAXALIGN(SizeofHeapTupleHeader + BITMAPLEN(ctx->natts)); else expected_hoff = MAXALIGN(SizeofHeapTupleHeader); if (ctx->tuphdr->t_hoff != expected_hoff) { if ((infomask & HEAP_HASNULL) && ctx->natts == 1) report_corruption(ctx, psprintf("tuple data should begin at byte %u, but actually begins at byte %u (1 attribute, has nulls)", expected_hoff, ctx->tuphdr->t_hoff)); else if ((infomask & HEAP_HASNULL)) report_corruption(ctx, psprintf("tuple data should begin at byte %u, but actually begins at byte %u (%u attributes, has nulls)", expected_hoff, ctx->tuphdr->t_hoff, ctx->natts)); else if (ctx->natts == 1) report_corruption(ctx, psprintf("tuple data should begin at byte %u, but actually begins at byte %u (1 attribute, no nulls)", expected_hoff, ctx->tuphdr->t_hoff)); else report_corruption(ctx, psprintf("tuple data should begin at byte %u, but actually begins at byte %u (%u attributes, no nulls)", expected_hoff, ctx->tuphdr->t_hoff, ctx->natts)); result = false; } return result; } /* * Checks tuple visibility so we know which further checks are safe to * perform. * * If a tuple could have been inserted by a transaction that also added a * column to the table, but which ultimately did not commit, or which has not * yet committed, then the table's current TupleDesc might differ from the one * used to construct this tuple, so we must not check it. * * As a special case, if our own transaction inserted the tuple, even if we * added a column to the table, our TupleDesc should match. We could check the * tuple, but choose not to do so. * * If a tuple has been updated or deleted, we can still read the old tuple for * corruption checking purposes, as long as we are careful about concurrent * vacuums. The main table tuple itself cannot be vacuumed away because we * hold a buffer lock on the page, but if the deleting transaction is older * than our transaction snapshot's xmin, then vacuum could remove the toast at * any time, so we must not try to follow TOAST pointers. * * If xmin or xmax values are older than can be checked against clog, or appear * to be in the future (possibly due to wrap-around), then we cannot make a * determination about the visibility of the tuple, so we skip further checks. * * Returns true if the tuple itself should be checked, false otherwise. Sets * ctx->tuple_could_be_pruned if the tuple -- and thus also any associated * TOAST tuples -- are eligible for pruning. * * Sets *xmin_commit_status_ok to true if the commit status of xmin is known * and false otherwise. If it's set to true, then also set *xmin_commit_status * to the actual commit status. */ static bool check_tuple_visibility(HeapCheckContext *ctx, bool *xmin_commit_status_ok, XidCommitStatus *xmin_commit_status) { TransactionId xmin; TransactionId xvac; TransactionId xmax; XidCommitStatus xmin_status; XidCommitStatus xvac_status; XidCommitStatus xmax_status; HeapTupleHeader tuphdr = ctx->tuphdr; ctx->tuple_could_be_pruned = true; /* have not yet proven otherwise */ *xmin_commit_status_ok = false; /* have not yet proven otherwise */ /* If xmin is normal, it should be within valid range */ xmin = HeapTupleHeaderGetXmin(tuphdr); switch (get_xid_status(xmin, ctx, &xmin_status)) { case XID_INVALID: /* Could be the result of a speculative insertion that aborted. */ return false; case XID_BOUNDS_OK: *xmin_commit_status_ok = true; *xmin_commit_status = xmin_status; break; case XID_IN_FUTURE: report_corruption(ctx, psprintf("xmin %u equals or exceeds next valid transaction ID %u:%u", xmin, EpochFromFullTransactionId(ctx->next_fxid), XidFromFullTransactionId(ctx->next_fxid))); return false; case XID_PRECEDES_CLUSTERMIN: report_corruption(ctx, psprintf("xmin %u precedes oldest valid transaction ID %u:%u", xmin, EpochFromFullTransactionId(ctx->oldest_fxid), XidFromFullTransactionId(ctx->oldest_fxid))); return false; case XID_PRECEDES_RELMIN: report_corruption(ctx, psprintf("xmin %u precedes relation freeze threshold %u:%u", xmin, EpochFromFullTransactionId(ctx->relfrozenfxid), XidFromFullTransactionId(ctx->relfrozenfxid))); return false; } /* * Has inserting transaction committed? */ if (!HeapTupleHeaderXminCommitted(tuphdr)) { if (HeapTupleHeaderXminInvalid(tuphdr)) return false; /* inserter aborted, don't check */ /* Used by pre-9.0 binary upgrades */ else if (tuphdr->t_infomask & HEAP_MOVED_OFF) { xvac = HeapTupleHeaderGetXvac(tuphdr); switch (get_xid_status(xvac, ctx, &xvac_status)) { case XID_INVALID: report_corruption(ctx, pstrdup("old-style VACUUM FULL transaction ID for moved off tuple is invalid")); return false; case XID_IN_FUTURE: report_corruption(ctx, psprintf("old-style VACUUM FULL transaction ID %u for moved off tuple equals or exceeds next valid transaction ID %u:%u", xvac, EpochFromFullTransactionId(ctx->next_fxid), XidFromFullTransactionId(ctx->next_fxid))); return false; case XID_PRECEDES_RELMIN: report_corruption(ctx, psprintf("old-style VACUUM FULL transaction ID %u for moved off tuple precedes relation freeze threshold %u:%u", xvac, EpochFromFullTransactionId(ctx->relfrozenfxid), XidFromFullTransactionId(ctx->relfrozenfxid))); return false; case XID_PRECEDES_CLUSTERMIN: report_corruption(ctx, psprintf("old-style VACUUM FULL transaction ID %u for moved off tuple precedes oldest valid transaction ID %u:%u", xvac, EpochFromFullTransactionId(ctx->oldest_fxid), XidFromFullTransactionId(ctx->oldest_fxid))); return false; case XID_BOUNDS_OK: break; } switch (xvac_status) { case XID_IS_CURRENT_XID: report_corruption(ctx, psprintf("old-style VACUUM FULL transaction ID %u for moved off tuple matches our current transaction ID", xvac)); return false; case XID_IN_PROGRESS: report_corruption(ctx, psprintf("old-style VACUUM FULL transaction ID %u for moved off tuple appears to be in progress", xvac)); return false; case XID_COMMITTED: /* * The tuple is dead, because the xvac transaction moved * it off and committed. It's checkable, but also * prunable. */ return true; case XID_ABORTED: /* * The original xmin must have committed, because the xvac * transaction tried to move it later. Since xvac is * aborted, whether it's still alive now depends on the * status of xmax. */ break; } } /* Used by pre-9.0 binary upgrades */ else if (tuphdr->t_infomask & HEAP_MOVED_IN) { xvac = HeapTupleHeaderGetXvac(tuphdr); switch (get_xid_status(xvac, ctx, &xvac_status)) { case XID_INVALID: report_corruption(ctx, pstrdup("old-style VACUUM FULL transaction ID for moved in tuple is invalid")); return false; case XID_IN_FUTURE: report_corruption(ctx, psprintf("old-style VACUUM FULL transaction ID %u for moved in tuple equals or exceeds next valid transaction ID %u:%u", xvac, EpochFromFullTransactionId(ctx->next_fxid), XidFromFullTransactionId(ctx->next_fxid))); return false; case XID_PRECEDES_RELMIN: report_corruption(ctx, psprintf("old-style VACUUM FULL transaction ID %u for moved in tuple precedes relation freeze threshold %u:%u", xvac, EpochFromFullTransactionId(ctx->relfrozenfxid), XidFromFullTransactionId(ctx->relfrozenfxid))); return false; case XID_PRECEDES_CLUSTERMIN: report_corruption(ctx, psprintf("old-style VACUUM FULL transaction ID %u for moved in tuple precedes oldest valid transaction ID %u:%u", xvac, EpochFromFullTransactionId(ctx->oldest_fxid), XidFromFullTransactionId(ctx->oldest_fxid))); return false; case XID_BOUNDS_OK: break; } switch (xvac_status) { case XID_IS_CURRENT_XID: report_corruption(ctx, psprintf("old-style VACUUM FULL transaction ID %u for moved in tuple matches our current transaction ID", xvac)); return false; case XID_IN_PROGRESS: report_corruption(ctx, psprintf("old-style VACUUM FULL transaction ID %u for moved in tuple appears to be in progress", xvac)); return false; case XID_COMMITTED: /* * The original xmin must have committed, because the xvac * transaction moved it later. Whether it's still alive * now depends on the status of xmax. */ break; case XID_ABORTED: /* * The tuple is dead, because the xvac transaction moved * it off and committed. It's checkable, but also * prunable. */ return true; } } else if (xmin_status != XID_COMMITTED) { /* * Inserting transaction is not in progress, and not committed, so * it might have changed the TupleDesc in ways we don't know * about. Thus, don't try to check the tuple structure. * * If xmin_status happens to be XID_IS_CURRENT_XID, then in theory * any such DDL changes ought to be visible to us, so perhaps we * could check anyway in that case. But, for now, let's be * conservative and treat this like any other uncommitted insert. */ return false; } } /* * Okay, the inserter committed, so it was good at some point. Now what * about the deleting transaction? */ if (tuphdr->t_infomask & HEAP_XMAX_IS_MULTI) { /* * xmax is a multixact, so sanity-check the MXID. Note that we do this * prior to checking for HEAP_XMAX_INVALID or * HEAP_XMAX_IS_LOCKED_ONLY. This might therefore complain about * things that wouldn't actually be a problem during a normal scan, * but eventually we're going to have to freeze, and that process will * ignore hint bits. * * Even if the MXID is out of range, we still know that the original * insert committed, so we can check the tuple itself. However, we * can't rule out the possibility that this tuple is dead, so don't * clear ctx->tuple_could_be_pruned. Possibly we should go ahead and * clear that flag anyway if HEAP_XMAX_INVALID is set or if * HEAP_XMAX_IS_LOCKED_ONLY is true, but for now we err on the side of * avoiding possibly-bogus complaints about missing TOAST entries. */ xmax = HeapTupleHeaderGetRawXmax(tuphdr); switch (check_mxid_valid_in_rel(xmax, ctx)) { case XID_INVALID: report_corruption(ctx, pstrdup("multitransaction ID is invalid")); return true; case XID_PRECEDES_RELMIN: report_corruption(ctx, psprintf("multitransaction ID %u precedes relation minimum multitransaction ID threshold %u", xmax, ctx->relminmxid)); return true; case XID_PRECEDES_CLUSTERMIN: report_corruption(ctx, psprintf("multitransaction ID %u precedes oldest valid multitransaction ID threshold %u", xmax, ctx->oldest_mxact)); return true; case XID_IN_FUTURE: report_corruption(ctx, psprintf("multitransaction ID %u equals or exceeds next valid multitransaction ID %u", xmax, ctx->next_mxact)); return true; case XID_BOUNDS_OK: break; } } if (tuphdr->t_infomask & HEAP_XMAX_INVALID) { /* * This tuple is live. A concurrently running transaction could * delete it before we get around to checking the toast, but any such * running transaction is surely not less than our safe_xmin, so the * toast cannot be vacuumed out from under us. */ ctx->tuple_could_be_pruned = false; return true; } if (HEAP_XMAX_IS_LOCKED_ONLY(tuphdr->t_infomask)) { /* * "Deleting" xact really only locked it, so the tuple is live in any * case. As above, a concurrently running transaction could delete * it, but it cannot be vacuumed out from under us. */ ctx->tuple_could_be_pruned = false; return true; } if (tuphdr->t_infomask & HEAP_XMAX_IS_MULTI) { /* * We already checked above that this multixact is within limits for * this table. Now check the update xid from this multixact. */ xmax = HeapTupleGetUpdateXid(tuphdr); switch (get_xid_status(xmax, ctx, &xmax_status)) { case XID_INVALID: /* not LOCKED_ONLY, so it has to have an xmax */ report_corruption(ctx, pstrdup("update xid is invalid")); return true; case XID_IN_FUTURE: report_corruption(ctx, psprintf("update xid %u equals or exceeds next valid transaction ID %u:%u", xmax, EpochFromFullTransactionId(ctx->next_fxid), XidFromFullTransactionId(ctx->next_fxid))); return true; case XID_PRECEDES_RELMIN: report_corruption(ctx, psprintf("update xid %u precedes relation freeze threshold %u:%u", xmax, EpochFromFullTransactionId(ctx->relfrozenfxid), XidFromFullTransactionId(ctx->relfrozenfxid))); return true; case XID_PRECEDES_CLUSTERMIN: report_corruption(ctx, psprintf("update xid %u precedes oldest valid transaction ID %u:%u", xmax, EpochFromFullTransactionId(ctx->oldest_fxid), XidFromFullTransactionId(ctx->oldest_fxid))); return true; case XID_BOUNDS_OK: break; } switch (xmax_status) { case XID_IS_CURRENT_XID: case XID_IN_PROGRESS: /* * The delete is in progress, so it cannot be visible to our * snapshot. */ ctx->tuple_could_be_pruned = false; break; case XID_COMMITTED: /* * The delete committed. Whether the toast can be vacuumed * away depends on how old the deleting transaction is. */ ctx->tuple_could_be_pruned = TransactionIdPrecedes(xmax, ctx->safe_xmin); break; case XID_ABORTED: /* * The delete aborted or crashed. The tuple is still live. */ ctx->tuple_could_be_pruned = false; break; } /* Tuple itself is checkable even if it's dead. */ return true; } /* xmax is an XID, not a MXID. Sanity check it. */ xmax = HeapTupleHeaderGetRawXmax(tuphdr); switch (get_xid_status(xmax, ctx, &xmax_status)) { case XID_INVALID: ctx->tuple_could_be_pruned = false; return true; case XID_IN_FUTURE: report_corruption(ctx, psprintf("xmax %u equals or exceeds next valid transaction ID %u:%u", xmax, EpochFromFullTransactionId(ctx->next_fxid), XidFromFullTransactionId(ctx->next_fxid))); return false; /* corrupt */ case XID_PRECEDES_RELMIN: report_corruption(ctx, psprintf("xmax %u precedes relation freeze threshold %u:%u", xmax, EpochFromFullTransactionId(ctx->relfrozenfxid), XidFromFullTransactionId(ctx->relfrozenfxid))); return false; /* corrupt */ case XID_PRECEDES_CLUSTERMIN: report_corruption(ctx, psprintf("xmax %u precedes oldest valid transaction ID %u:%u", xmax, EpochFromFullTransactionId(ctx->oldest_fxid), XidFromFullTransactionId(ctx->oldest_fxid))); return false; /* corrupt */ case XID_BOUNDS_OK: break; } /* * Whether the toast can be vacuumed away depends on how old the deleting * transaction is. */ switch (xmax_status) { case XID_IS_CURRENT_XID: case XID_IN_PROGRESS: /* * The delete is in progress, so it cannot be visible to our * snapshot. */ ctx->tuple_could_be_pruned = false; break; case XID_COMMITTED: /* * The delete committed. Whether the toast can be vacuumed away * depends on how old the deleting transaction is. */ ctx->tuple_could_be_pruned = TransactionIdPrecedes(xmax, ctx->safe_xmin); break; case XID_ABORTED: /* * The delete aborted or crashed. The tuple is still live. */ ctx->tuple_could_be_pruned = false; break; } /* Tuple itself is checkable even if it's dead. */ return true; } /* * Check the current toast tuple against the state tracked in ctx, recording * any corruption found in ctx->tupstore. * * This is not equivalent to running verify_heapam on the toast table itself, * and is not hardened against corruption of the toast table. Rather, when * validating a toasted attribute in the main table, the sequence of toast * tuples that store the toasted value are retrieved and checked in order, with * each toast tuple being checked against where we are in the sequence, as well * as each toast tuple having its varlena structure sanity checked. * * On entry, *expected_chunk_seq should be the chunk_seq value that we expect * to find in toasttup. On exit, it will be updated to the value the next call * to this function should expect to see. */ static void check_toast_tuple(HeapTuple toasttup, HeapCheckContext *ctx, ToastedAttribute *ta, int32 *expected_chunk_seq, uint32 extsize) { int32 chunk_seq; int32 last_chunk_seq = (extsize - 1) / TOAST_MAX_CHUNK_SIZE; Pointer chunk; bool isnull; int32 chunksize; int32 expected_size; /* Sanity-check the sequence number. */ chunk_seq = DatumGetInt32(fastgetattr(toasttup, 2, ctx->toast_rel->rd_att, &isnull)); if (isnull) { report_toast_corruption(ctx, ta, psprintf("toast value %u has toast chunk with null sequence number", ta->toast_pointer.va_valueid)); return; } if (chunk_seq != *expected_chunk_seq) { /* Either the TOAST index is corrupt, or we don't have all chunks. */ report_toast_corruption(ctx, ta, psprintf("toast value %u index scan returned chunk %d when expecting chunk %d", ta->toast_pointer.va_valueid, chunk_seq, *expected_chunk_seq)); } *expected_chunk_seq = chunk_seq + 1; /* Sanity-check the chunk data. */ chunk = DatumGetPointer(fastgetattr(toasttup, 3, ctx->toast_rel->rd_att, &isnull)); if (isnull) { report_toast_corruption(ctx, ta, psprintf("toast value %u chunk %d has null data", ta->toast_pointer.va_valueid, chunk_seq)); return; } if (!VARATT_IS_EXTENDED(chunk)) chunksize = VARSIZE(chunk) - VARHDRSZ; else if (VARATT_IS_SHORT(chunk)) { /* * could happen due to heap_form_tuple doing its thing */ chunksize = VARSIZE_SHORT(chunk) - VARHDRSZ_SHORT; } else { /* should never happen */ uint32 header = ((varattrib_4b *) chunk)->va_4byte.va_header; report_toast_corruption(ctx, ta, psprintf("toast value %u chunk %d has invalid varlena header %0x", ta->toast_pointer.va_valueid, chunk_seq, header)); return; } /* * Some checks on the data we've found */ if (chunk_seq > last_chunk_seq) { report_toast_corruption(ctx, ta, psprintf("toast value %u chunk %d follows last expected chunk %d", ta->toast_pointer.va_valueid, chunk_seq, last_chunk_seq)); return; } expected_size = chunk_seq < last_chunk_seq ? TOAST_MAX_CHUNK_SIZE : extsize - (last_chunk_seq * TOAST_MAX_CHUNK_SIZE); if (chunksize != expected_size) report_toast_corruption(ctx, ta, psprintf("toast value %u chunk %d has size %u, but expected size %u", ta->toast_pointer.va_valueid, chunk_seq, chunksize, expected_size)); } /* * Check the current attribute as tracked in ctx, recording any corruption * found in ctx->tupstore. * * This function follows the logic performed by heap_deform_tuple(), and in the * case of a toasted value, optionally stores the toast pointer so later it can * be checked following the logic of detoast_external_attr(), checking for any * conditions that would result in either of those functions Asserting or * crashing the backend. The checks performed by Asserts present in those two * functions are also performed here and in check_toasted_attribute. In cases * where those two functions are a bit cavalier in their assumptions about data * being correct, we perform additional checks not present in either of those * two functions. Where some condition is checked in both of those functions, * we perform it here twice, as we parallel the logical flow of those two * functions. The presence of duplicate checks seems a reasonable price to pay * for keeping this code tightly coupled with the code it protects. * * Returns true if the tuple attribute is sane enough for processing to * continue on to the next attribute, false otherwise. */ static bool check_tuple_attribute(HeapCheckContext *ctx) { Datum attdatum; struct varlena *attr; char *tp; /* pointer to the tuple data */ uint16 infomask; CompactAttribute *thisatt; struct varatt_external toast_pointer; infomask = ctx->tuphdr->t_infomask; thisatt = TupleDescCompactAttr(RelationGetDescr(ctx->rel), ctx->attnum); tp = (char *) ctx->tuphdr + ctx->tuphdr->t_hoff; if (ctx->tuphdr->t_hoff + ctx->offset > ctx->lp_len) { report_corruption(ctx, psprintf("attribute with length %u starts at offset %u beyond total tuple length %u", thisatt->attlen, ctx->tuphdr->t_hoff + ctx->offset, ctx->lp_len)); return false; } /* Skip null values */ if (infomask & HEAP_HASNULL && att_isnull(ctx->attnum, ctx->tuphdr->t_bits)) return true; /* Skip non-varlena values, but update offset first */ if (thisatt->attlen != -1) { ctx->offset = att_nominal_alignby(ctx->offset, thisatt->attalignby); ctx->offset = att_addlength_pointer(ctx->offset, thisatt->attlen, tp + ctx->offset); if (ctx->tuphdr->t_hoff + ctx->offset > ctx->lp_len) { report_corruption(ctx, psprintf("attribute with length %u ends at offset %u beyond total tuple length %u", thisatt->attlen, ctx->tuphdr->t_hoff + ctx->offset, ctx->lp_len)); return false; } return true; } /* Ok, we're looking at a varlena attribute. */ ctx->offset = att_pointer_alignby(ctx->offset, thisatt->attalignby, -1, tp + ctx->offset); /* Get the (possibly corrupt) varlena datum */ attdatum = fetchatt(thisatt, tp + ctx->offset); /* * We have the datum, but we cannot decode it carelessly, as it may still * be corrupt. */ /* * Check that VARTAG_SIZE won't hit an Assert on a corrupt va_tag before * risking a call into att_addlength_pointer */ if (VARATT_IS_EXTERNAL(tp + ctx->offset)) { uint8 va_tag = VARTAG_EXTERNAL(tp + ctx->offset); if (va_tag != VARTAG_ONDISK) { report_corruption(ctx, psprintf("toasted attribute has unexpected TOAST tag %u", va_tag)); /* We can't know where the next attribute begins */ return false; } } /* Ok, should be safe now */ ctx->offset = att_addlength_pointer(ctx->offset, thisatt->attlen, tp + ctx->offset); if (ctx->tuphdr->t_hoff + ctx->offset > ctx->lp_len) { report_corruption(ctx, psprintf("attribute with length %u ends at offset %u beyond total tuple length %u", thisatt->attlen, ctx->tuphdr->t_hoff + ctx->offset, ctx->lp_len)); return false; } /* * heap_deform_tuple would be done with this attribute at this point, * having stored it in values[], and would continue to the next attribute. * We go further, because we need to check if the toast datum is corrupt. */ attr = (struct varlena *) DatumGetPointer(attdatum); /* * Now we follow the logic of detoast_external_attr(), with the same * caveats about being paranoid about corruption. */ /* Skip values that are not external */ if (!VARATT_IS_EXTERNAL(attr)) return true; /* It is external, and we're looking at a page on disk */ /* * Must copy attr into toast_pointer for alignment considerations */ VARATT_EXTERNAL_GET_POINTER(toast_pointer, attr); /* Toasted attributes too large to be untoasted should never be stored */ if (toast_pointer.va_rawsize > VARLENA_SIZE_LIMIT) report_corruption(ctx, psprintf("toast value %u rawsize %d exceeds limit %d", toast_pointer.va_valueid, toast_pointer.va_rawsize, VARLENA_SIZE_LIMIT)); if (VARATT_EXTERNAL_IS_COMPRESSED(toast_pointer)) { ToastCompressionId cmid; bool valid = false; /* Compressed attributes should have a valid compression method */ cmid = TOAST_COMPRESS_METHOD(&toast_pointer); switch (cmid) { /* List of all valid compression method IDs */ case TOAST_PGLZ_COMPRESSION_ID: case TOAST_LZ4_COMPRESSION_ID: valid = true; break; /* Recognized but invalid compression method ID */ case TOAST_INVALID_COMPRESSION_ID: break; /* Intentionally no default here */ } if (!valid) report_corruption(ctx, psprintf("toast value %u has invalid compression method id %d", toast_pointer.va_valueid, cmid)); } /* The tuple header better claim to contain toasted values */ if (!(infomask & HEAP_HASEXTERNAL)) { report_corruption(ctx, psprintf("toast value %u is external but tuple header flag HEAP_HASEXTERNAL not set", toast_pointer.va_valueid)); return true; } /* The relation better have a toast table */ if (!ctx->rel->rd_rel->reltoastrelid) { report_corruption(ctx, psprintf("toast value %u is external but relation has no toast relation", toast_pointer.va_valueid)); return true; } /* If we were told to skip toast checking, then we're done. */ if (ctx->toast_rel == NULL) return true; /* * If this tuple is eligible to be pruned, we cannot check the toast. * Otherwise, we push a copy of the toast tuple so we can check it after * releasing the main table buffer lock. */ if (!ctx->tuple_could_be_pruned) { ToastedAttribute *ta; ta = (ToastedAttribute *) palloc0(sizeof(ToastedAttribute)); VARATT_EXTERNAL_GET_POINTER(ta->toast_pointer, attr); ta->blkno = ctx->blkno; ta->offnum = ctx->offnum; ta->attnum = ctx->attnum; ctx->toasted_attributes = lappend(ctx->toasted_attributes, ta); } return true; } /* * For each attribute collected in ctx->toasted_attributes, look up the value * in the toast table and perform checks on it. This function should only be * called on toast pointers which cannot be vacuumed away during our * processing. */ static void check_toasted_attribute(HeapCheckContext *ctx, ToastedAttribute *ta) { ScanKeyData toastkey; SysScanDesc toastscan; bool found_toasttup; HeapTuple toasttup; uint32 extsize; int32 expected_chunk_seq = 0; int32 last_chunk_seq; extsize = VARATT_EXTERNAL_GET_EXTSIZE(ta->toast_pointer); last_chunk_seq = (extsize - 1) / TOAST_MAX_CHUNK_SIZE; /* * Setup a scan key to find chunks in toast table with matching va_valueid */ ScanKeyInit(&toastkey, (AttrNumber) 1, BTEqualStrategyNumber, F_OIDEQ, ObjectIdGetDatum(ta->toast_pointer.va_valueid)); /* * Check if any chunks for this toasted object exist in the toast table, * accessible via the index. */ toastscan = systable_beginscan_ordered(ctx->toast_rel, ctx->valid_toast_index, get_toast_snapshot(), 1, &toastkey); found_toasttup = false; while ((toasttup = systable_getnext_ordered(toastscan, ForwardScanDirection)) != NULL) { found_toasttup = true; check_toast_tuple(toasttup, ctx, ta, &expected_chunk_seq, extsize); } systable_endscan_ordered(toastscan); if (!found_toasttup) report_toast_corruption(ctx, ta, psprintf("toast value %u not found in toast table", ta->toast_pointer.va_valueid)); else if (expected_chunk_seq <= last_chunk_seq) report_toast_corruption(ctx, ta, psprintf("toast value %u was expected to end at chunk %d, but ended while expecting chunk %d", ta->toast_pointer.va_valueid, last_chunk_seq, expected_chunk_seq)); } /* * Check the current tuple as tracked in ctx, recording any corruption found in * ctx->tupstore. * * We return some information about the status of xmin to aid in validating * update chains. */ static void check_tuple(HeapCheckContext *ctx, bool *xmin_commit_status_ok, XidCommitStatus *xmin_commit_status) { /* * Check various forms of tuple header corruption, and if the header is * too corrupt, do not continue with other checks. */ if (!check_tuple_header(ctx)) return; /* * Check tuple visibility. If the inserting transaction aborted, we * cannot assume our relation description matches the tuple structure, and * therefore cannot check it. */ if (!check_tuple_visibility(ctx, xmin_commit_status_ok, xmin_commit_status)) return; /* * The tuple is visible, so it must be compatible with the current version * of the relation descriptor. It might have fewer columns than are * present in the relation descriptor, but it cannot have more. */ if (RelationGetDescr(ctx->rel)->natts < ctx->natts) { report_corruption(ctx, psprintf("number of attributes %u exceeds maximum expected for table %u", ctx->natts, RelationGetDescr(ctx->rel)->natts)); return; } /* * Check each attribute unless we hit corruption that confuses what to do * next, at which point we abort further attribute checks for this tuple. * Note that we don't abort for all types of corruption, only for those * types where we don't know how to continue. We also don't abort the * checking of toasted attributes collected from the tuple prior to * aborting. Those will still be checked later along with other toasted * attributes collected from the page. */ ctx->offset = 0; for (ctx->attnum = 0; ctx->attnum < ctx->natts; ctx->attnum++) if (!check_tuple_attribute(ctx)) break; /* cannot continue */ /* revert attnum to -1 until we again examine individual attributes */ ctx->attnum = -1; } /* * Convert a TransactionId into a FullTransactionId using our cached values of * the valid transaction ID range. It is the caller's responsibility to have * already updated the cached values, if necessary. This is akin to * FullTransactionIdFromAllowableAt(), but it tolerates corruption in the form * of an xid before epoch 0. */ static FullTransactionId FullTransactionIdFromXidAndCtx(TransactionId xid, const HeapCheckContext *ctx) { uint64 nextfxid_i; int32 diff; FullTransactionId fxid; Assert(TransactionIdIsNormal(ctx->next_xid)); Assert(FullTransactionIdIsNormal(ctx->next_fxid)); Assert(XidFromFullTransactionId(ctx->next_fxid) == ctx->next_xid); if (!TransactionIdIsNormal(xid)) return FullTransactionIdFromEpochAndXid(0, xid); nextfxid_i = U64FromFullTransactionId(ctx->next_fxid); /* compute the 32bit modulo difference */ diff = (int32) (ctx->next_xid - xid); /* * In cases of corruption we might see a 32bit xid that is before epoch 0. * We can't represent that as a 64bit xid, due to 64bit xids being * unsigned integers, without the modulo arithmetic of 32bit xid. There's * no really nice way to deal with that, but it works ok enough to use * FirstNormalFullTransactionId in that case, as a freshly initdb'd * cluster already has a newer horizon. */ if (diff > 0 && (nextfxid_i - FirstNormalTransactionId) < (int64) diff) { Assert(EpochFromFullTransactionId(ctx->next_fxid) == 0); fxid = FirstNormalFullTransactionId; } else fxid = FullTransactionIdFromU64(nextfxid_i - diff); Assert(FullTransactionIdIsNormal(fxid)); return fxid; } /* * Update our cached range of valid transaction IDs. */ static void update_cached_xid_range(HeapCheckContext *ctx) { /* Make cached copies */ LWLockAcquire(XidGenLock, LW_SHARED); ctx->next_fxid = TransamVariables->nextXid; ctx->oldest_xid = TransamVariables->oldestXid; LWLockRelease(XidGenLock); /* And compute alternate versions of the same */ ctx->next_xid = XidFromFullTransactionId(ctx->next_fxid); ctx->oldest_fxid = FullTransactionIdFromXidAndCtx(ctx->oldest_xid, ctx); } /* * Update our cached range of valid multitransaction IDs. */ static void update_cached_mxid_range(HeapCheckContext *ctx) { ReadMultiXactIdRange(&ctx->oldest_mxact, &ctx->next_mxact); } /* * Return whether the given FullTransactionId is within our cached valid * transaction ID range. */ static inline bool fxid_in_cached_range(FullTransactionId fxid, const HeapCheckContext *ctx) { return (FullTransactionIdPrecedesOrEquals(ctx->oldest_fxid, fxid) && FullTransactionIdPrecedes(fxid, ctx->next_fxid)); } /* * Checks whether a multitransaction ID is in the cached valid range, returning * the nature of the range violation, if any. */ static XidBoundsViolation check_mxid_in_range(MultiXactId mxid, HeapCheckContext *ctx) { if (!TransactionIdIsValid(mxid)) return XID_INVALID; if (MultiXactIdPrecedes(mxid, ctx->relminmxid)) return XID_PRECEDES_RELMIN; if (MultiXactIdPrecedes(mxid, ctx->oldest_mxact)) return XID_PRECEDES_CLUSTERMIN; if (MultiXactIdPrecedesOrEquals(ctx->next_mxact, mxid)) return XID_IN_FUTURE; return XID_BOUNDS_OK; } /* * Checks whether the given mxid is valid to appear in the heap being checked, * returning the nature of the range violation, if any. * * This function attempts to return quickly by caching the known valid mxid * range in ctx. Callers should already have performed the initial setup of * the cache prior to the first call to this function. */ static XidBoundsViolation check_mxid_valid_in_rel(MultiXactId mxid, HeapCheckContext *ctx) { XidBoundsViolation result; result = check_mxid_in_range(mxid, ctx); if (result == XID_BOUNDS_OK) return XID_BOUNDS_OK; /* The range may have advanced. Recheck. */ update_cached_mxid_range(ctx); return check_mxid_in_range(mxid, ctx); } /* * Checks whether the given transaction ID is (or was recently) valid to appear * in the heap being checked, or whether it is too old or too new to appear in * the relation, returning information about the nature of the bounds violation. * * We cache the range of valid transaction IDs. If xid is in that range, we * conclude that it is valid, even though concurrent changes to the table might * invalidate it under certain corrupt conditions. (For example, if the table * contains corrupt all-frozen bits, a concurrent vacuum might skip the page(s) * containing the xid and then truncate clog and advance the relfrozenxid * beyond xid.) Reporting the xid as valid under such conditions seems * acceptable, since if we had checked it earlier in our scan it would have * truly been valid at that time. * * If the status argument is not NULL, and if and only if the transaction ID * appears to be valid in this relation, the status argument will be set with * the commit status of the transaction ID. */ static XidBoundsViolation get_xid_status(TransactionId xid, HeapCheckContext *ctx, XidCommitStatus *status) { FullTransactionId fxid; FullTransactionId clog_horizon; /* Quick check for special xids */ if (!TransactionIdIsValid(xid)) return XID_INVALID; else if (xid == BootstrapTransactionId || xid == FrozenTransactionId) { if (status != NULL) *status = XID_COMMITTED; return XID_BOUNDS_OK; } /* Check if the xid is within bounds */ fxid = FullTransactionIdFromXidAndCtx(xid, ctx); if (!fxid_in_cached_range(fxid, ctx)) { /* * We may have been checking against stale values. Update the cached * range to be sure, and since we relied on the cached range when we * performed the full xid conversion, reconvert. */ update_cached_xid_range(ctx); fxid = FullTransactionIdFromXidAndCtx(xid, ctx); } if (FullTransactionIdPrecedesOrEquals(ctx->next_fxid, fxid)) return XID_IN_FUTURE; if (FullTransactionIdPrecedes(fxid, ctx->oldest_fxid)) return XID_PRECEDES_CLUSTERMIN; if (FullTransactionIdPrecedes(fxid, ctx->relfrozenfxid)) return XID_PRECEDES_RELMIN; /* Early return if the caller does not request clog checking */ if (status == NULL) return XID_BOUNDS_OK; /* Early return if we just checked this xid in a prior call */ if (xid == ctx->cached_xid) { *status = ctx->cached_status; return XID_BOUNDS_OK; } *status = XID_COMMITTED; LWLockAcquire(XactTruncationLock, LW_SHARED); clog_horizon = FullTransactionIdFromXidAndCtx(TransamVariables->oldestClogXid, ctx); if (FullTransactionIdPrecedesOrEquals(clog_horizon, fxid)) { if (TransactionIdIsCurrentTransactionId(xid)) *status = XID_IS_CURRENT_XID; else if (TransactionIdIsInProgress(xid)) *status = XID_IN_PROGRESS; else if (TransactionIdDidCommit(xid)) *status = XID_COMMITTED; else *status = XID_ABORTED; } LWLockRelease(XactTruncationLock); ctx->cached_xid = xid; ctx->cached_status = *status; return XID_BOUNDS_OK; } contrib/amcheck/verify_nbtree.c
New file @@ -0,0 +1,3595 @@ /*------------------------------------------------------------------------- * * verify_nbtree.c * Verifies the integrity of nbtree indexes based on invariants. * * For B-Tree indexes, verification includes checking that each page in the * target index has items in logical order as reported by an insertion scankey * (the insertion scankey sort-wise NULL semantics are needed for * verification). * * When index-to-heap verification is requested, a Bloom filter is used to * fingerprint all tuples in the target index, as the index is traversed to * verify its structure. A heap scan later uses Bloom filter probes to verify * that every visible heap tuple has a matching index tuple. * * * Copyright (c) 2017-2025, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/amcheck/verify_nbtree.c * *------------------------------------------------------------------------- */ #include "postgres.h" #include "access/heaptoast.h" #include "access/htup_details.h" #include "access/nbtree.h" #include "access/table.h" #include "access/tableam.h" #include "access/transam.h" #include "access/xact.h" #include "verify_common.h" #include "catalog/index.h" #include "catalog/pg_am.h" #include "catalog/pg_opfamily_d.h" #include "common/pg_prng.h" #include "lib/bloomfilter.h" #include "miscadmin.h" #include "storage/smgr.h" #include "utils/guc.h" #include "utils/memutils.h" #include "utils/snapmgr.h" PG_MODULE_MAGIC_EXT( .name = "amcheck", .version = PG_VERSION ); /* * A B-Tree cannot possibly have this many levels, since there must be one * block per level, which is bound by the range of BlockNumber: */ #define InvalidBtreeLevel ((uint32) InvalidBlockNumber) #define BTreeTupleGetNKeyAtts(itup, rel) \ Min(IndexRelationGetNumberOfKeyAttributes(rel), BTreeTupleGetNAtts(itup, rel)) /* * State associated with verifying a B-Tree index * * target is the point of reference for a verification operation. * * Other B-Tree pages may be allocated, but those are always auxiliary (e.g., * they are current target's child pages). Conceptually, problems are only * ever found in the current target page (or for a particular heap tuple during * heapallindexed verification). Each page found by verification's left/right, * top/bottom scan becomes the target exactly once. */ typedef struct BtreeCheckState { /* * Unchanging state, established at start of verification: */ /* B-Tree Index Relation and associated heap relation */ Relation rel; Relation heaprel; /* rel is heapkeyspace index? */ bool heapkeyspace; /* ShareLock held on heap/index, rather than AccessShareLock? */ bool readonly; /* Also verifying heap has no unindexed tuples? */ bool heapallindexed; /* Also making sure non-pivot tuples can be found by new search? */ bool rootdescend; /* Also check uniqueness constraint if index is unique */ bool checkunique; /* Per-page context */ MemoryContext targetcontext; /* Buffer access strategy */ BufferAccessStrategy checkstrategy; /* * Info for uniqueness checking. Fill this field and the one below once * per index check. */ IndexInfo *indexinfo; /* Table scan snapshot for heapallindexed and checkunique */ Snapshot snapshot; /* * Mutable state, for verification of particular page: */ /* Current target page */ Page target; /* Target block number */ BlockNumber targetblock; /* Target page's LSN */ XLogRecPtr targetlsn; /* * Low key: high key of left sibling of target page. Used only for child * verification. So, 'lowkey' is kept only when 'readonly' is set. */ IndexTuple lowkey; /* * The rightlink and incomplete split flag of block one level down to the * target page, which was visited last time via downlink from target page. * We use it to check for missing downlinks. */ BlockNumber prevrightlink; bool previncompletesplit; /* * Mutable state, for optional heapallindexed verification: */ /* Bloom filter fingerprints B-Tree index */ bloom_filter *filter; /* Debug counter */ int64 heaptuplespresent; } BtreeCheckState; /* * Starting point for verifying an entire B-Tree index level */ typedef struct BtreeLevel { /* Level number (0 is leaf page level). */ uint32 level; /* Left most block on level. Scan of level begins here. */ BlockNumber leftmost; /* Is this level reported as "true" root level by meta page? */ bool istruerootlevel; } BtreeLevel; /* * Information about the last visible entry with current B-tree key. Used * for validation of the unique constraint. */ typedef struct BtreeLastVisibleEntry { BlockNumber blkno; /* Index block */ OffsetNumber offset; /* Offset on index block */ int postingIndex; /* Number in the posting list (-1 for * non-deduplicated tuples) */ ItemPointer tid; /* Heap tid */ } BtreeLastVisibleEntry; /* * arguments for the bt_index_check_callback callback */ typedef struct BTCallbackState { bool parentcheck; bool heapallindexed; bool rootdescend; bool checkunique; } BTCallbackState; PG_FUNCTION_INFO_V1(bt_index_check); PG_FUNCTION_INFO_V1(bt_index_parent_check); static void bt_index_check_callback(Relation indrel, Relation heaprel, void *state, bool readonly); static void bt_check_every_level(Relation rel, Relation heaprel, bool heapkeyspace, bool readonly, bool heapallindexed, bool rootdescend, bool checkunique); static BtreeLevel bt_check_level_from_leftmost(BtreeCheckState *state, BtreeLevel level); static bool bt_leftmost_ignoring_half_dead(BtreeCheckState *state, BlockNumber start, BTPageOpaque start_opaque); static void bt_recheck_sibling_links(BtreeCheckState *state, BlockNumber btpo_prev_from_target, BlockNumber leftcurrent); static bool heap_entry_is_visible(BtreeCheckState *state, ItemPointer tid); static void bt_report_duplicate(BtreeCheckState *state, BtreeLastVisibleEntry *lVis, ItemPointer nexttid, BlockNumber nblock, OffsetNumber noffset, int nposting); static void bt_entry_unique_check(BtreeCheckState *state, IndexTuple itup, BlockNumber targetblock, OffsetNumber offset, BtreeLastVisibleEntry *lVis); static void bt_target_page_check(BtreeCheckState *state); static BTScanInsert bt_right_page_check_scankey(BtreeCheckState *state, OffsetNumber *rightfirstoffset); static void bt_child_check(BtreeCheckState *state, BTScanInsert targetkey, OffsetNumber downlinkoffnum); static void bt_child_highkey_check(BtreeCheckState *state, OffsetNumber target_downlinkoffnum, Page loaded_child, uint32 target_level); static void bt_downlink_missing_check(BtreeCheckState *state, bool rightsplit, BlockNumber blkno, Page page); static void bt_tuple_present_callback(Relation index, ItemPointer tid, Datum *values, bool *isnull, bool tupleIsAlive, void *checkstate); static IndexTuple bt_normalize_tuple(BtreeCheckState *state, IndexTuple itup); static inline IndexTuple bt_posting_plain_tuple(IndexTuple itup, int n); static bool bt_rootdescend(BtreeCheckState *state, IndexTuple itup); static inline bool offset_is_negative_infinity(BTPageOpaque opaque, OffsetNumber offset); static inline bool invariant_l_offset(BtreeCheckState *state, BTScanInsert key, OffsetNumber upperbound); static inline bool invariant_leq_offset(BtreeCheckState *state, BTScanInsert key, OffsetNumber upperbound); static inline bool invariant_g_offset(BtreeCheckState *state, BTScanInsert key, OffsetNumber lowerbound); static inline bool invariant_l_nontarget_offset(BtreeCheckState *state, BTScanInsert key, BlockNumber nontargetblock, Page nontarget, OffsetNumber upperbound); static Page palloc_btree_page(BtreeCheckState *state, BlockNumber blocknum); static inline BTScanInsert bt_mkscankey_pivotsearch(Relation rel, IndexTuple itup); static ItemId PageGetItemIdCareful(BtreeCheckState *state, BlockNumber block, Page page, OffsetNumber offset); static inline ItemPointer BTreeTupleGetHeapTIDCareful(BtreeCheckState *state, IndexTuple itup, bool nonpivot); static inline ItemPointer BTreeTupleGetPointsToTID(IndexTuple itup); /* * bt_index_check(index regclass, heapallindexed boolean, checkunique boolean) * * Verify integrity of B-Tree index. * * Acquires AccessShareLock on heap & index relations. Does not consider * invariants that exist between parent/child pages. Optionally verifies * that heap does not contain any unindexed or incorrectly indexed tuples. */ Datum bt_index_check(PG_FUNCTION_ARGS) { Oid indrelid = PG_GETARG_OID(0); BTCallbackState args; args.heapallindexed = false; args.rootdescend = false; args.parentcheck = false; args.checkunique = false; if (PG_NARGS() >= 2) args.heapallindexed = PG_GETARG_BOOL(1); if (PG_NARGS() >= 3) args.checkunique = PG_GETARG_BOOL(2); amcheck_lock_relation_and_check(indrelid, BTREE_AM_OID, bt_index_check_callback, AccessShareLock, &args); PG_RETURN_VOID(); } /* * bt_index_parent_check(index regclass, heapallindexed boolean, rootdescend boolean, checkunique boolean) * * Verify integrity of B-Tree index. * * Acquires ShareLock on heap & index relations. Verifies that downlinks in * parent pages are valid lower bounds on child pages. Optionally verifies * that heap does not contain any unindexed or incorrectly indexed tuples. */ Datum bt_index_parent_check(PG_FUNCTION_ARGS) { Oid indrelid = PG_GETARG_OID(0); BTCallbackState args; args.heapallindexed = false; args.rootdescend = false; args.parentcheck = true; args.checkunique = false; if (PG_NARGS() >= 2) args.heapallindexed = PG_GETARG_BOOL(1); if (PG_NARGS() >= 3) args.rootdescend = PG_GETARG_BOOL(2); if (PG_NARGS() >= 4) args.checkunique = PG_GETARG_BOOL(3); amcheck_lock_relation_and_check(indrelid, BTREE_AM_OID, bt_index_check_callback, ShareLock, &args); PG_RETURN_VOID(); } /* * Helper for bt_index_[parent_]check, coordinating the bulk of the work. */ static void bt_index_check_callback(Relation indrel, Relation heaprel, void *state, bool readonly) { BTCallbackState *args = (BTCallbackState *) state; bool heapkeyspace, allequalimage; if (!smgrexists(RelationGetSmgr(indrel), MAIN_FORKNUM)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" lacks a main relation fork", RelationGetRelationName(indrel)))); /* Extract metadata from metapage, and sanitize it in passing */ _bt_metaversion(indrel, &heapkeyspace, &allequalimage); if (allequalimage && !heapkeyspace) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" metapage has equalimage field set on unsupported nbtree version", RelationGetRelationName(indrel)))); if (allequalimage && !_bt_allequalimage(indrel, false)) { bool has_interval_ops = false; for (int i = 0; i < IndexRelationGetNumberOfKeyAttributes(indrel); i++) if (indrel->rd_opfamily[i] == INTERVAL_BTREE_FAM_OID) { has_interval_ops = true; ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" metapage incorrectly indicates that deduplication is safe", RelationGetRelationName(indrel)), has_interval_ops ? errhint("This is known of \"interval\" indexes last built on a version predating 2023-11.") : 0)); } } /* Check index, possibly against table it is an index on */ bt_check_every_level(indrel, heaprel, heapkeyspace, readonly, args->heapallindexed, args->rootdescend, args->checkunique); } /* * Main entry point for B-Tree SQL-callable functions. Walks the B-Tree in * logical order, verifying invariants as it goes. Optionally, verification * checks if the heap relation contains any tuples that are not represented in * the index but should be. * * It is the caller's responsibility to acquire appropriate heavyweight lock on * the index relation, and advise us if extra checks are safe when a ShareLock * is held. (A lock of the same type must also have been acquired on the heap * relation.) * * A ShareLock is generally assumed to prevent any kind of physical * modification to the index structure, including modifications that VACUUM may * make. This does not include setting of the LP_DEAD bit by concurrent index * scans, although that is just metadata that is not able to directly affect * any check performed here. Any concurrent process that might act on the * LP_DEAD bit being set (recycle space) requires a heavyweight lock that * cannot be held while we hold a ShareLock. (Besides, even if that could * happen, the ad-hoc recycling when a page might otherwise split is performed * per-page, and requires an exclusive buffer lock, which wouldn't cause us * trouble. _bt_delitems_vacuum() may only delete leaf items, and so the extra * parent/child check cannot be affected.) */ static void bt_check_every_level(Relation rel, Relation heaprel, bool heapkeyspace, bool readonly, bool heapallindexed, bool rootdescend, bool checkunique) { BtreeCheckState *state; Page metapage; BTMetaPageData *metad; uint32 previouslevel; BtreeLevel current; if (!readonly) elog(DEBUG1, "verifying consistency of tree structure for index \"%s\"", RelationGetRelationName(rel)); else elog(DEBUG1, "verifying consistency of tree structure for index \"%s\" with cross-level checks", RelationGetRelationName(rel)); /* * This assertion matches the one in index_getnext_tid(). See page * recycling/"visible to everyone" notes in nbtree README. */ Assert(TransactionIdIsValid(RecentXmin)); /* * Initialize state for entire verification operation */ state = palloc0(sizeof(BtreeCheckState)); state->rel = rel; state->heaprel = heaprel; state->heapkeyspace = heapkeyspace; state->readonly = readonly; state->heapallindexed = heapallindexed; state->rootdescend = rootdescend; state->checkunique = checkunique; state->snapshot = InvalidSnapshot; if (state->heapallindexed) { int64 total_pages; int64 total_elems; uint64 seed; /* * Size Bloom filter based on estimated number of tuples in index, * while conservatively assuming that each block must contain at least * MaxTIDsPerBTreePage / 3 "plain" tuples -- see * bt_posting_plain_tuple() for definition, and details of how posting * list tuples are handled. */ total_pages = RelationGetNumberOfBlocks(rel); total_elems = Max(total_pages * (MaxTIDsPerBTreePage / 3), (int64) state->rel->rd_rel->reltuples); /* Generate a random seed to avoid repetition */ seed = pg_prng_uint64(&pg_global_prng_state); /* Create Bloom filter to fingerprint index */ state->filter = bloom_create(total_elems, maintenance_work_mem, seed); state->heaptuplespresent = 0; /* * Register our own snapshot for heapallindexed, rather than asking * table_index_build_scan() to do this for us later. This needs to * happen before index fingerprinting begins, so we can later be * certain that index fingerprinting should have reached all tuples * returned by table_index_build_scan(). */ state->snapshot = RegisterSnapshot(GetTransactionSnapshot()); /* * GetTransactionSnapshot() always acquires a new MVCC snapshot in * READ COMMITTED mode. A new snapshot is guaranteed to have all the * entries it requires in the index. * * We must defend against the possibility that an old xact snapshot * was returned at higher isolation levels when that snapshot is not * safe for index scans of the target index. This is possible when * the snapshot sees tuples that are before the index's indcheckxmin * horizon. Throwing an error here should be very rare. It doesn't * seem worth using a secondary snapshot to avoid this. */ if (IsolationUsesXactSnapshot() && rel->rd_index->indcheckxmin && !TransactionIdPrecedes(HeapTupleHeaderGetXmin(rel->rd_indextuple->t_data), state->snapshot->xmin)) ereport(ERROR, errcode(ERRCODE_T_R_SERIALIZATION_FAILURE), errmsg("index \"%s\" cannot be verified using transaction snapshot", RelationGetRelationName(rel))); } /* * We need a snapshot to check the uniqueness of the index. For better * performance, take it once per index check. If one was already taken * above, use that. */ if (state->checkunique) { state->indexinfo = BuildIndexInfo(state->rel); if (state->indexinfo->ii_Unique && state->snapshot == InvalidSnapshot) state->snapshot = RegisterSnapshot(GetTransactionSnapshot()); } Assert(!state->rootdescend || state->readonly); if (state->rootdescend && !state->heapkeyspace) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), errmsg("cannot verify that tuples from index \"%s\" can each be found by an independent index search", RelationGetRelationName(rel)), errhint("Only B-Tree version 4 indexes support rootdescend verification."))); /* Create context for page */ state->targetcontext = AllocSetContextCreate(CurrentMemoryContext, "amcheck context", ALLOCSET_DEFAULT_SIZES); state->checkstrategy = GetAccessStrategy(BAS_BULKREAD); /* Get true root block from meta-page */ metapage = palloc_btree_page(state, BTREE_METAPAGE); metad = BTPageGetMeta(metapage); /* * Certain deletion patterns can result in "skinny" B-Tree indexes, where * the fast root and true root differ. * * Start from the true root, not the fast root, unlike conventional index * scans. This approach is more thorough, and removes the risk of * following a stale fast root from the meta page. */ if (metad->btm_fastroot != metad->btm_root) ereport(DEBUG1, (errcode(ERRCODE_NO_DATA), errmsg_internal("harmless fast root mismatch in index \"%s\"", RelationGetRelationName(rel)), errdetail_internal("Fast root block %u (level %u) differs from true root block %u (level %u).", metad->btm_fastroot, metad->btm_fastlevel, metad->btm_root, metad->btm_level))); /* * Starting at the root, verify every level. Move left to right, top to * bottom. Note that there may be no pages other than the meta page (meta * page can indicate that root is P_NONE when the index is totally empty). */ previouslevel = InvalidBtreeLevel; current.level = metad->btm_level; current.leftmost = metad->btm_root; current.istruerootlevel = true; while (current.leftmost != P_NONE) { /* * Verify this level, and get left most page for next level down, if * not at leaf level */ current = bt_check_level_from_leftmost(state, current); if (current.leftmost == InvalidBlockNumber) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" has no valid pages on level below %u or first level", RelationGetRelationName(rel), previouslevel))); previouslevel = current.level; } /* * * Check whether heap contains unindexed/malformed tuples * */ if (state->heapallindexed) { IndexInfo *indexinfo = BuildIndexInfo(state->rel); TableScanDesc scan; /* * Create our own scan for table_index_build_scan(), rather than * getting it to do so for us. This is required so that we can * actually use the MVCC snapshot registered earlier. * * Note that table_index_build_scan() calls heap_endscan() for us. */ scan = table_beginscan_strat(state->heaprel, /* relation */ state->snapshot, /* snapshot */ 0, /* number of keys */ NULL, /* scan key */ true, /* buffer access strategy OK */ true); /* syncscan OK? */ /* * Scan will behave as the first scan of a CREATE INDEX CONCURRENTLY * behaves. * * It's okay that we don't actually use the same lock strength for the * heap relation as any other ii_Concurrent caller would. We have no * reason to care about a concurrent VACUUM operation, since there * isn't going to be a second scan of the heap that needs to be sure * that there was no concurrent recycling of TIDs. */ indexinfo->ii_Concurrent = true; /* * Don't wait for uncommitted tuple xact commit/abort when index is a * unique index on a catalog (or an index used by an exclusion * constraint). This could otherwise happen in the readonly case. */ indexinfo->ii_Unique = false; indexinfo->ii_ExclusionOps = NULL; indexinfo->ii_ExclusionProcs = NULL; indexinfo->ii_ExclusionStrats = NULL; elog(DEBUG1, "verifying that tuples from index \"%s\" are present in \"%s\"", RelationGetRelationName(state->rel), RelationGetRelationName(state->heaprel)); table_index_build_scan(state->heaprel, state->rel, indexinfo, true, false, bt_tuple_present_callback, state, scan); ereport(DEBUG1, (errmsg_internal("finished verifying presence of " INT64_FORMAT " tuples from table \"%s\" with bitset %.2f%% set", state->heaptuplespresent, RelationGetRelationName(heaprel), 100.0 * bloom_prop_bits_set(state->filter)))); bloom_free(state->filter); } /* Be tidy: */ if (state->snapshot != InvalidSnapshot) UnregisterSnapshot(state->snapshot); MemoryContextDelete(state->targetcontext); } /* * Given a left-most block at some level, move right, verifying each page * individually (with more verification across pages for "readonly" * callers). Caller should pass the true root page as the leftmost initially, * working their way down by passing what is returned for the last call here * until level 0 (leaf page level) was reached. * * Returns state for next call, if any. This includes left-most block number * one level lower that should be passed on next level/call, which is set to * P_NONE on last call here (when leaf level is verified). Level numbers * follow the nbtree convention: higher levels have higher numbers, because new * levels are added only due to a root page split. Note that prior to the * first root page split, the root is also a leaf page, so there is always a * level 0 (leaf level), and it's always the last level processed. * * Note on memory management: State's per-page context is reset here, between * each call to bt_target_page_check(). */ static BtreeLevel bt_check_level_from_leftmost(BtreeCheckState *state, BtreeLevel level) { /* State to establish early, concerning entire level */ BTPageOpaque opaque; MemoryContext oldcontext; BtreeLevel nextleveldown; /* Variables for iterating across level using right links */ BlockNumber leftcurrent = P_NONE; BlockNumber current = level.leftmost; /* Initialize return state */ nextleveldown.leftmost = InvalidBlockNumber; nextleveldown.level = InvalidBtreeLevel; nextleveldown.istruerootlevel = false; /* Use page-level context for duration of this call */ oldcontext = MemoryContextSwitchTo(state->targetcontext); elog(DEBUG1, "verifying level %u%s", level.level, level.istruerootlevel ? " (true root level)" : level.level == 0 ? " (leaf level)" : ""); state->prevrightlink = InvalidBlockNumber; state->previncompletesplit = false; do { /* Don't rely on CHECK_FOR_INTERRUPTS() calls at lower level */ CHECK_FOR_INTERRUPTS(); /* Initialize state for this iteration */ state->targetblock = current; state->target = palloc_btree_page(state, state->targetblock); state->targetlsn = PageGetLSN(state->target); opaque = BTPageGetOpaque(state->target); if (P_IGNORE(opaque)) { /* * Since there cannot be a concurrent VACUUM operation in readonly * mode, and since a page has no links within other pages * (siblings and parent) once it is marked fully deleted, it * should be impossible to land on a fully deleted page in * readonly mode. See bt_child_check() for further details. * * The bt_child_check() P_ISDELETED() check is repeated here so * that pages that are only reachable through sibling links get * checked. */ if (state->readonly && P_ISDELETED(opaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("downlink or sibling link points to deleted block in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Block=%u left block=%u left link from block=%u.", current, leftcurrent, opaque->btpo_prev))); if (P_RIGHTMOST(opaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("block %u fell off the end of index \"%s\"", current, RelationGetRelationName(state->rel)))); else ereport(DEBUG1, (errcode(ERRCODE_NO_DATA), errmsg_internal("block %u of index \"%s\" concurrently deleted", current, RelationGetRelationName(state->rel)))); goto nextpage; } else if (nextleveldown.leftmost == InvalidBlockNumber) { /* * A concurrent page split could make the caller supplied leftmost * block no longer contain the leftmost page, or no longer be the * true root, but where that isn't possible due to heavyweight * locking, check that the first valid page meets caller's * expectations. */ if (state->readonly) { if (!bt_leftmost_ignoring_half_dead(state, current, opaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("block %u is not leftmost in index \"%s\"", current, RelationGetRelationName(state->rel)))); if (level.istruerootlevel && (!P_ISROOT(opaque) && !P_INCOMPLETE_SPLIT(opaque))) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("block %u is not true root in index \"%s\"", current, RelationGetRelationName(state->rel)))); } /* * Before beginning any non-trivial examination of level, prepare * state for next bt_check_level_from_leftmost() invocation for * the next level for the next level down (if any). * * There should be at least one non-ignorable page per level, * unless this is the leaf level, which is assumed by caller to be * final level. */ if (!P_ISLEAF(opaque)) { IndexTuple itup; ItemId itemid; /* Internal page -- downlink gets leftmost on next level */ itemid = PageGetItemIdCareful(state, state->targetblock, state->target, P_FIRSTDATAKEY(opaque)); itup = (IndexTuple) PageGetItem(state->target, itemid); nextleveldown.leftmost = BTreeTupleGetDownLink(itup); nextleveldown.level = opaque->btpo_level - 1; } else { /* * Leaf page -- final level caller must process. * * Note that this could also be the root page, if there has * been no root page split yet. */ nextleveldown.leftmost = P_NONE; nextleveldown.level = InvalidBtreeLevel; } /* * Finished setting up state for this call/level. Control will * never end up back here in any future loop iteration for this * level. */ } /* * Sibling links should be in mutual agreement. There arises * leftcurrent == P_NONE && btpo_prev != P_NONE when the left sibling * of the parent's low-key downlink is half-dead. (A half-dead page * has no downlink from its parent.) Under heavyweight locking, the * last bt_leftmost_ignoring_half_dead() validated this btpo_prev. * Without heavyweight locking, validation of the P_NONE case remains * unimplemented. */ if (opaque->btpo_prev != leftcurrent && leftcurrent != P_NONE) bt_recheck_sibling_links(state, opaque->btpo_prev, leftcurrent); /* Check level */ if (level.level != opaque->btpo_level) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("leftmost down link for level points to block in index \"%s\" whose level is not one level down", RelationGetRelationName(state->rel)), errdetail_internal("Block pointed to=%u expected level=%u level in pointed to block=%u.", current, level.level, opaque->btpo_level))); /* Verify invariants for page */ bt_target_page_check(state); nextpage: /* Try to detect circular links */ if (current == leftcurrent || current == opaque->btpo_prev) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("circular link chain found in block %u of index \"%s\"", current, RelationGetRelationName(state->rel)))); leftcurrent = current; current = opaque->btpo_next; if (state->lowkey) { Assert(state->readonly); pfree(state->lowkey); state->lowkey = NULL; } /* * Copy current target high key as the low key of right sibling. * Allocate memory in upper level context, so it would be cleared * after reset of target context. * * We only need the low key in corner cases of checking child high * keys. We use high key only when incomplete split on the child level * falls to the boundary of pages on the target level. See * bt_child_highkey_check() for details. So, typically we won't end * up doing anything with low key, but it's simpler for general case * high key verification to always have it available. * * The correctness of managing low key in the case of concurrent * splits wasn't investigated yet. Thankfully we only need low key * for readonly verification and concurrent splits won't happen. */ if (state->readonly && !P_RIGHTMOST(opaque)) { IndexTuple itup; ItemId itemid; itemid = PageGetItemIdCareful(state, state->targetblock, state->target, P_HIKEY); itup = (IndexTuple) PageGetItem(state->target, itemid); state->lowkey = MemoryContextAlloc(oldcontext, IndexTupleSize(itup)); memcpy(state->lowkey, itup, IndexTupleSize(itup)); } /* Free page and associated memory for this iteration */ MemoryContextReset(state->targetcontext); } while (current != P_NONE); if (state->lowkey) { Assert(state->readonly); pfree(state->lowkey); state->lowkey = NULL; } /* Don't change context for caller */ MemoryContextSwitchTo(oldcontext); return nextleveldown; } /* Check visibility of the table entry referenced by nbtree index */ static bool heap_entry_is_visible(BtreeCheckState *state, ItemPointer tid) { bool tid_visible; TupleTableSlot *slot = table_slot_create(state->heaprel, NULL); tid_visible = table_tuple_fetch_row_version(state->heaprel, tid, state->snapshot, slot); if (slot != NULL) ExecDropSingleTupleTableSlot(slot); return tid_visible; } /* * Prepare an error message for unique constrain violation in * a btree index and report ERROR. */ static void bt_report_duplicate(BtreeCheckState *state, BtreeLastVisibleEntry *lVis, ItemPointer nexttid, BlockNumber nblock, OffsetNumber noffset, int nposting) { char *htid, *nhtid, *itid, *nitid = "", *pposting = "", *pnposting = ""; htid = psprintf("tid=(%u,%u)", ItemPointerGetBlockNumberNoCheck(lVis->tid), ItemPointerGetOffsetNumberNoCheck(lVis->tid)); nhtid = psprintf("tid=(%u,%u)", ItemPointerGetBlockNumberNoCheck(nexttid), ItemPointerGetOffsetNumberNoCheck(nexttid)); itid = psprintf("tid=(%u,%u)", lVis->blkno, lVis->offset); if (nblock != lVis->blkno || noffset != lVis->offset) nitid = psprintf(" tid=(%u,%u)", nblock, noffset); if (lVis->postingIndex >= 0) pposting = psprintf(" posting %u", lVis->postingIndex); if (nposting >= 0) pnposting = psprintf(" posting %u", nposting); ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index uniqueness is violated for index \"%s\"", RelationGetRelationName(state->rel)), errdetail("Index %s%s and%s%s (point to heap %s and %s) page lsn=%X/%X.", itid, pposting, nitid, pnposting, htid, nhtid, LSN_FORMAT_ARGS(state->targetlsn)))); } /* Check if current nbtree leaf entry complies with UNIQUE constraint */ static void bt_entry_unique_check(BtreeCheckState *state, IndexTuple itup, BlockNumber targetblock, OffsetNumber offset, BtreeLastVisibleEntry *lVis) { ItemPointer tid; bool has_visible_entry = false; Assert(targetblock != P_NONE); /* * Current tuple has posting list. Report duplicate if TID of any posting * list entry is visible and lVis->tid is valid. */ if (BTreeTupleIsPosting(itup)) { for (int i = 0; i < BTreeTupleGetNPosting(itup); i++) { tid = BTreeTupleGetPostingN(itup, i); if (heap_entry_is_visible(state, tid)) { has_visible_entry = true; if (ItemPointerIsValid(lVis->tid)) { bt_report_duplicate(state, lVis, tid, targetblock, offset, i); } /* * Prevent double reporting unique constraint violation * between the posting list entries of the first tuple on the * page after cross-page check. */ if (lVis->blkno != targetblock && ItemPointerIsValid(lVis->tid)) return; lVis->blkno = targetblock; lVis->offset = offset; lVis->postingIndex = i; lVis->tid = tid; } } } /* * Current tuple has no posting list. If TID is visible save info about it * for the next comparisons in the loop in bt_target_page_check(). Report * duplicate if lVis->tid is already valid. */ else { tid = BTreeTupleGetHeapTID(itup); if (heap_entry_is_visible(state, tid)) { has_visible_entry = true; if (ItemPointerIsValid(lVis->tid)) { bt_report_duplicate(state, lVis, tid, targetblock, offset, -1); } lVis->blkno = targetblock; lVis->offset = offset; lVis->tid = tid; lVis->postingIndex = -1; } } if (!has_visible_entry && lVis->blkno != InvalidBlockNumber && lVis->blkno != targetblock) { char *posting = ""; if (lVis->postingIndex >= 0) posting = psprintf(" posting %u", lVis->postingIndex); ereport(DEBUG1, (errcode(ERRCODE_NO_DATA), errmsg("index uniqueness can not be checked for index tid=(%u,%u) in index \"%s\"", targetblock, offset, RelationGetRelationName(state->rel)), errdetail("It doesn't have visible heap tids and key is equal to the tid=(%u,%u)%s (points to heap tid=(%u,%u)).", lVis->blkno, lVis->offset, posting, ItemPointerGetBlockNumberNoCheck(lVis->tid), ItemPointerGetOffsetNumberNoCheck(lVis->tid)), errhint("VACUUM the table and repeat the check."))); } } /* * Like P_LEFTMOST(start_opaque), but accept an arbitrarily-long chain of * half-dead, sibling-linked pages to the left. If a half-dead page appears * under state->readonly, the database exited recovery between the first-stage * and second-stage WAL records of a deletion. */ static bool bt_leftmost_ignoring_half_dead(BtreeCheckState *state, BlockNumber start, BTPageOpaque start_opaque) { BlockNumber reached = start_opaque->btpo_prev, reached_from = start; bool all_half_dead = true; /* * To handle the !readonly case, we'd need to accept BTP_DELETED pages and * potentially observe nbtree/README "Page deletion and backwards scans". */ Assert(state->readonly); while (reached != P_NONE && all_half_dead) { Page page = palloc_btree_page(state, reached); BTPageOpaque reached_opaque = BTPageGetOpaque(page); CHECK_FOR_INTERRUPTS(); /* * Try to detect btpo_prev circular links. _bt_unlink_halfdead_page() * writes that side-links will continue to point to the siblings. * Check btpo_next for that property. */ all_half_dead = P_ISHALFDEAD(reached_opaque) && reached != start && reached != reached_from && reached_opaque->btpo_next == reached_from; if (all_half_dead) { XLogRecPtr pagelsn = PageGetLSN(page); /* pagelsn should point to an XLOG_BTREE_MARK_PAGE_HALFDEAD */ ereport(DEBUG1, (errcode(ERRCODE_NO_DATA), errmsg_internal("harmless interrupted page deletion detected in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Block=%u right block=%u page lsn=%X/%X.", reached, reached_from, LSN_FORMAT_ARGS(pagelsn)))); reached_from = reached; reached = reached_opaque->btpo_prev; } pfree(page); } return all_half_dead; } /* * Raise an error when target page's left link does not point back to the * previous target page, called leftcurrent here. The leftcurrent page's * right link was followed to get to the current target page, and we expect * mutual agreement among leftcurrent and the current target page. Make sure * that this condition has definitely been violated in the !readonly case, * where concurrent page splits are something that we need to deal with. * * Cross-page inconsistencies involving pages that don't agree about being * siblings are known to be a particularly good indicator of corruption * involving partial writes/lost updates. The bt_right_page_check_scankey * check also provides a way of detecting cross-page inconsistencies for * !readonly callers, but it can only detect sibling pages that have an * out-of-order keyspace, which can't catch many of the problems that we * expect to catch here. * * The classic example of the kind of inconsistency that we can only catch * with this check (when in !readonly mode) involves three sibling pages that * were affected by a faulty page split at some point in the past. The * effects of the split are reflected in the original page and its new right * sibling page, with a lack of any accompanying changes for the _original_ * right sibling page. The original right sibling page's left link fails to * point to the new right sibling page (its left link still points to the * original page), even though the first phase of a page split is supposed to * work as a single atomic action. This subtle inconsistency will probably * only break backwards scans in practice. * * Note that this is the only place where amcheck will "couple" buffer locks * (and only for !readonly callers). In general we prefer to avoid more * thorough cross-page checks in !readonly mode, but it seems worth the * complexity here. Also, the performance overhead of performing lock * coupling here is negligible in practice. Control only reaches here with a * non-corrupt index when there is a concurrent page split at the instant * caller crossed over to target page from leftcurrent page. */ static void bt_recheck_sibling_links(BtreeCheckState *state, BlockNumber btpo_prev_from_target, BlockNumber leftcurrent) { /* passing metapage to BTPageGetOpaque() would give irrelevant findings */ Assert(leftcurrent != P_NONE); if (!state->readonly) { Buffer lbuf; Buffer newtargetbuf; Page page; BTPageOpaque opaque; BlockNumber newtargetblock; /* Couple locks in the usual order for nbtree: Left to right */ lbuf = ReadBufferExtended(state->rel, MAIN_FORKNUM, leftcurrent, RBM_NORMAL, state->checkstrategy); LockBuffer(lbuf, BT_READ); _bt_checkpage(state->rel, lbuf); page = BufferGetPage(lbuf); opaque = BTPageGetOpaque(page); if (P_ISDELETED(opaque)) { /* * Cannot reason about concurrently deleted page -- the left link * in the page to the right is expected to point to some other * page to the left (not leftcurrent page). * * Note that we deliberately don't give up with a half-dead page. */ UnlockReleaseBuffer(lbuf); return; } newtargetblock = opaque->btpo_next; /* Avoid self-deadlock when newtargetblock == leftcurrent */ if (newtargetblock != leftcurrent) { newtargetbuf = ReadBufferExtended(state->rel, MAIN_FORKNUM, newtargetblock, RBM_NORMAL, state->checkstrategy); LockBuffer(newtargetbuf, BT_READ); _bt_checkpage(state->rel, newtargetbuf); page = BufferGetPage(newtargetbuf); opaque = BTPageGetOpaque(page); /* btpo_prev_from_target may have changed; update it */ btpo_prev_from_target = opaque->btpo_prev; } else { /* * leftcurrent right sibling points back to leftcurrent block. * Index is corrupt. Easiest way to handle this is to pretend * that we actually read from a distinct page that has an invalid * block number in its btpo_prev. */ newtargetbuf = InvalidBuffer; btpo_prev_from_target = InvalidBlockNumber; } /* * No need to check P_ISDELETED here, since new target block cannot be * marked deleted as long as we hold a lock on lbuf */ if (BufferIsValid(newtargetbuf)) UnlockReleaseBuffer(newtargetbuf); UnlockReleaseBuffer(lbuf); if (btpo_prev_from_target == leftcurrent) { /* Report split in left sibling, not target (or new target) */ ereport(DEBUG1, (errcode(ERRCODE_INTERNAL_ERROR), errmsg_internal("harmless concurrent page split detected in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Block=%u new right sibling=%u original right sibling=%u.", leftcurrent, newtargetblock, state->targetblock))); return; } /* * Index is corrupt. Make sure that we report correct target page. * * This could have changed in cases where there was a concurrent page * split, as well as index corruption (at least in theory). Note that * btpo_prev_from_target was already updated above. */ state->targetblock = newtargetblock; } ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("left link/right link pair in index \"%s\" not in agreement", RelationGetRelationName(state->rel)), errdetail_internal("Block=%u left block=%u left link from block=%u.", state->targetblock, leftcurrent, btpo_prev_from_target))); } /* * Function performs the following checks on target page, or pages ancillary to * target page: * * - That every "real" data item is less than or equal to the high key, which * is an upper bound on the items on the page. Data items should be * strictly less than the high key when the page is an internal page. * * - That within the page, every data item is strictly less than the item * immediately to its right, if any (i.e., that the items are in order * within the page, so that the binary searches performed by index scans are * sane). * * - That the last data item stored on the page is strictly less than the * first data item on the page to the right (when such a first item is * available). * * - Various checks on the structure of tuples themselves. For example, check * that non-pivot tuples have no truncated attributes. * * - For index with unique constraint make sure that only one of table entries * for equal keys is visible. * * Furthermore, when state passed shows ShareLock held, function also checks: * * - That all child pages respect strict lower bound from parent's pivot * tuple. * * - That downlink to block was encountered in parent where that's expected. * * - That high keys of child pages matches corresponding pivot keys in parent. * * This is also where heapallindexed callers use their Bloom filter to * fingerprint IndexTuples for later table_index_build_scan() verification. * * Note: Memory allocated in this routine is expected to be released by caller * resetting state->targetcontext. */ static void bt_target_page_check(BtreeCheckState *state) { OffsetNumber offset; OffsetNumber max; BTPageOpaque topaque; /* Last visible entry info for checking indexes with unique constraint */ BtreeLastVisibleEntry lVis = {InvalidBlockNumber, InvalidOffsetNumber, -1, NULL}; topaque = BTPageGetOpaque(state->target); max = PageGetMaxOffsetNumber(state->target); elog(DEBUG2, "verifying %u items on %s block %u", max, P_ISLEAF(topaque) ? "leaf" : "internal", state->targetblock); /* * Check the number of attributes in high key. Note, rightmost page * doesn't contain a high key, so nothing to check */ if (!P_RIGHTMOST(topaque)) { ItemId itemid; IndexTuple itup; /* Verify line pointer before checking tuple */ itemid = PageGetItemIdCareful(state, state->targetblock, state->target, P_HIKEY); if (!_bt_check_natts(state->rel, state->heapkeyspace, state->target, P_HIKEY)) { itup = (IndexTuple) PageGetItem(state->target, itemid); ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("wrong number of high key index tuple attributes in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Index block=%u natts=%u block type=%s page lsn=%X/%X.", state->targetblock, BTreeTupleGetNAtts(itup, state->rel), P_ISLEAF(topaque) ? "heap" : "index", LSN_FORMAT_ARGS(state->targetlsn)))); } } /* * Loop over page items, starting from first non-highkey item, not high * key (if any). Most tests are not performed for the "negative infinity" * real item (if any). */ for (offset = P_FIRSTDATAKEY(topaque); offset <= max; offset = OffsetNumberNext(offset)) { ItemId itemid; IndexTuple itup; size_t tupsize; BTScanInsert skey; bool lowersizelimit; ItemPointer scantid; /* * True if we already called bt_entry_unique_check() for the current * item. This helps to avoid visiting the heap for keys, which are * anyway presented only once and can't comprise a unique violation. */ bool unique_checked = false; CHECK_FOR_INTERRUPTS(); itemid = PageGetItemIdCareful(state, state->targetblock, state->target, offset); itup = (IndexTuple) PageGetItem(state->target, itemid); tupsize = IndexTupleSize(itup); /* * lp_len should match the IndexTuple reported length exactly, since * lp_len is completely redundant in indexes, and both sources of * tuple length are MAXALIGN()'d. nbtree does not use lp_len all that * frequently, and is surprisingly tolerant of corrupt lp_len fields. */ if (tupsize != ItemIdGetLength(itemid)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index tuple size does not equal lp_len in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Index tid=(%u,%u) tuple size=%zu lp_len=%u page lsn=%X/%X.", state->targetblock, offset, tupsize, ItemIdGetLength(itemid), LSN_FORMAT_ARGS(state->targetlsn)), errhint("This could be a torn page problem."))); /* Check the number of index tuple attributes */ if (!_bt_check_natts(state->rel, state->heapkeyspace, state->target, offset)) { ItemPointer tid; char *itid, *htid; itid = psprintf("(%u,%u)", state->targetblock, offset); tid = BTreeTupleGetPointsToTID(itup); htid = psprintf("(%u,%u)", ItemPointerGetBlockNumberNoCheck(tid), ItemPointerGetOffsetNumberNoCheck(tid)); ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("wrong number of index tuple attributes in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Index tid=%s natts=%u points to %s tid=%s page lsn=%X/%X.", itid, BTreeTupleGetNAtts(itup, state->rel), P_ISLEAF(topaque) ? "heap" : "index", htid, LSN_FORMAT_ARGS(state->targetlsn)))); } /* * Don't try to generate scankey using "negative infinity" item on * internal pages. They are always truncated to zero attributes. */ if (offset_is_negative_infinity(topaque, offset)) { /* * We don't call bt_child_check() for "negative infinity" items. * But if we're performing downlink connectivity check, we do it * for every item including "negative infinity" one. */ if (!P_ISLEAF(topaque) && state->readonly) { bt_child_highkey_check(state, offset, NULL, topaque->btpo_level); } continue; } /* * Readonly callers may optionally verify that non-pivot tuples can * each be found by an independent search that starts from the root. * Note that we deliberately don't do individual searches for each * TID, since the posting list itself is validated by other checks. */ if (state->rootdescend && P_ISLEAF(topaque) && !bt_rootdescend(state, itup)) { ItemPointer tid = BTreeTupleGetPointsToTID(itup); char *itid, *htid; itid = psprintf("(%u,%u)", state->targetblock, offset); htid = psprintf("(%u,%u)", ItemPointerGetBlockNumber(tid), ItemPointerGetOffsetNumber(tid)); ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("could not find tuple using search from root page in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Index tid=%s points to heap tid=%s page lsn=%X/%X.", itid, htid, LSN_FORMAT_ARGS(state->targetlsn)))); } /* * If tuple is a posting list tuple, make sure posting list TIDs are * in order */ if (BTreeTupleIsPosting(itup)) { ItemPointerData last; ItemPointer current; ItemPointerCopy(BTreeTupleGetHeapTID(itup), &last); for (int i = 1; i < BTreeTupleGetNPosting(itup); i++) { current = BTreeTupleGetPostingN(itup, i); if (ItemPointerCompare(current, &last) <= 0) { char *itid = psprintf("(%u,%u)", state->targetblock, offset); ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg_internal("posting list contains misplaced TID in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Index tid=%s posting list offset=%d page lsn=%X/%X.", itid, i, LSN_FORMAT_ARGS(state->targetlsn)))); } ItemPointerCopy(current, &last); } } /* Build insertion scankey for current page offset */ skey = bt_mkscankey_pivotsearch(state->rel, itup); /* * Make sure tuple size does not exceed the relevant BTREE_VERSION * specific limit. * * BTREE_VERSION 4 (which introduced heapkeyspace rules) requisitioned * a small amount of space from BTMaxItemSize() in order to ensure * that suffix truncation always has enough space to add an explicit * heap TID back to a tuple -- we pessimistically assume that every * newly inserted tuple will eventually need to have a heap TID * appended during a future leaf page split, when the tuple becomes * the basis of the new high key (pivot tuple) for the leaf page. * * Since the reclaimed space is reserved for that purpose, we must not * enforce the slightly lower limit when the extra space has been used * as intended. In other words, there is only a cross-version * difference in the limit on tuple size within leaf pages. * * Still, we're particular about the details within BTREE_VERSION 4 * internal pages. Pivot tuples may only use the extra space for its * designated purpose. Enforce the lower limit for pivot tuples when * an explicit heap TID isn't actually present. (In all other cases * suffix truncation is guaranteed to generate a pivot tuple that's no * larger than the firstright tuple provided to it by its caller.) */ lowersizelimit = skey->heapkeyspace && (P_ISLEAF(topaque) || BTreeTupleGetHeapTID(itup) == NULL); if (tupsize > (lowersizelimit ? BTMaxItemSize : BTMaxItemSizeNoHeapTid)) { ItemPointer tid = BTreeTupleGetPointsToTID(itup); char *itid, *htid; itid = psprintf("(%u,%u)", state->targetblock, offset); htid = psprintf("(%u,%u)", ItemPointerGetBlockNumberNoCheck(tid), ItemPointerGetOffsetNumberNoCheck(tid)); ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index row size %zu exceeds maximum for index \"%s\"", tupsize, RelationGetRelationName(state->rel)), errdetail_internal("Index tid=%s points to %s tid=%s page lsn=%X/%X.", itid, P_ISLEAF(topaque) ? "heap" : "index", htid, LSN_FORMAT_ARGS(state->targetlsn)))); } /* Fingerprint leaf page tuples (those that point to the heap) */ if (state->heapallindexed && P_ISLEAF(topaque) && !ItemIdIsDead(itemid)) { IndexTuple norm; if (BTreeTupleIsPosting(itup)) { /* Fingerprint all elements as distinct "plain" tuples */ for (int i = 0; i < BTreeTupleGetNPosting(itup); i++) { IndexTuple logtuple; logtuple = bt_posting_plain_tuple(itup, i); norm = bt_normalize_tuple(state, logtuple); bloom_add_element(state->filter, (unsigned char *) norm, IndexTupleSize(norm)); /* Be tidy */ if (norm != logtuple) pfree(norm); pfree(logtuple); } } else { norm = bt_normalize_tuple(state, itup); bloom_add_element(state->filter, (unsigned char *) norm, IndexTupleSize(norm)); /* Be tidy */ if (norm != itup) pfree(norm); } } /* * * High key check * * * If there is a high key (if this is not the rightmost page on its * entire level), check that high key actually is upper bound on all * page items. If this is a posting list tuple, we'll need to set * scantid to be highest TID in posting list. * * We prefer to check all items against high key rather than checking * just the last and trusting that the operator class obeys the * transitive law (which implies that all previous items also * respected the high key invariant if they pass the item order * check). * * Ideally, we'd compare every item in the index against every other * item in the index, and not trust opclass obedience of the * transitive law to bridge the gap between children and their * grandparents (as well as great-grandparents, and so on). We don't * go to those lengths because that would be prohibitively expensive, * and probably not markedly more effective in practice. * * On the leaf level, we check that the key is <= the highkey. * However, on non-leaf levels we check that the key is < the highkey, * because the high key is "just another separator" rather than a copy * of some existing key item; we expect it to be unique among all keys * on the same level. (Suffix truncation will sometimes produce a * leaf highkey that is an untruncated copy of the lastleft item, but * never any other item, which necessitates weakening the leaf level * check to <=.) * * Full explanation for why a highkey is never truly a copy of another * item from the same level on internal levels: * * While the new left page's high key is copied from the first offset * on the right page during an internal page split, that's not the * full story. In effect, internal pages are split in the middle of * the firstright tuple, not between the would-be lastleft and * firstright tuples: the firstright key ends up on the left side as * left's new highkey, and the firstright downlink ends up on the * right side as right's new "negative infinity" item. The negative * infinity tuple is truncated to zero attributes, so we're only left * with the downlink. In other words, the copying is just an * implementation detail of splitting in the middle of a (pivot) * tuple. (See also: "Notes About Data Representation" in the nbtree * README.) */ scantid = skey->scantid; if (state->heapkeyspace && BTreeTupleIsPosting(itup)) skey->scantid = BTreeTupleGetMaxHeapTID(itup); if (!P_RIGHTMOST(topaque) && !(P_ISLEAF(topaque) ? invariant_leq_offset(state, skey, P_HIKEY) : invariant_l_offset(state, skey, P_HIKEY))) { ItemPointer tid = BTreeTupleGetPointsToTID(itup); char *itid, *htid; itid = psprintf("(%u,%u)", state->targetblock, offset); htid = psprintf("(%u,%u)", ItemPointerGetBlockNumberNoCheck(tid), ItemPointerGetOffsetNumberNoCheck(tid)); ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("high key invariant violated for index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Index tid=%s points to %s tid=%s page lsn=%X/%X.", itid, P_ISLEAF(topaque) ? "heap" : "index", htid, LSN_FORMAT_ARGS(state->targetlsn)))); } /* Reset, in case scantid was set to (itup) posting tuple's max TID */ skey->scantid = scantid; /* * * Item order check * * * Check that items are stored on page in logical order, by checking * current item is strictly less than next item (if any). */ if (OffsetNumberNext(offset) <= max && !invariant_l_offset(state, skey, OffsetNumberNext(offset))) { ItemPointer tid; char *itid, *htid, *nitid, *nhtid; itid = psprintf("(%u,%u)", state->targetblock, offset); tid = BTreeTupleGetPointsToTID(itup); htid = psprintf("(%u,%u)", ItemPointerGetBlockNumberNoCheck(tid), ItemPointerGetOffsetNumberNoCheck(tid)); nitid = psprintf("(%u,%u)", state->targetblock, OffsetNumberNext(offset)); /* Reuse itup to get pointed-to heap location of second item */ itemid = PageGetItemIdCareful(state, state->targetblock, state->target, OffsetNumberNext(offset)); itup = (IndexTuple) PageGetItem(state->target, itemid); tid = BTreeTupleGetPointsToTID(itup); nhtid = psprintf("(%u,%u)", ItemPointerGetBlockNumberNoCheck(tid), ItemPointerGetOffsetNumberNoCheck(tid)); ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("item order invariant violated for index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Lower index tid=%s (points to %s tid=%s) " "higher index tid=%s (points to %s tid=%s) " "page lsn=%X/%X.", itid, P_ISLEAF(topaque) ? "heap" : "index", htid, nitid, P_ISLEAF(topaque) ? "heap" : "index", nhtid, LSN_FORMAT_ARGS(state->targetlsn)))); } /* * If the index is unique verify entries uniqueness by checking the * heap tuples visibility. Immediately check posting tuples and * tuples with repeated keys. Postpone check for keys, which have the * first appearance. */ if (state->checkunique && state->indexinfo->ii_Unique && P_ISLEAF(topaque) && !skey->anynullkeys && (BTreeTupleIsPosting(itup) || ItemPointerIsValid(lVis.tid))) { bt_entry_unique_check(state, itup, state->targetblock, offset, &lVis); unique_checked = true; } if (state->checkunique && state->indexinfo->ii_Unique && P_ISLEAF(topaque) && OffsetNumberNext(offset) <= max) { /* Save current scankey tid */ scantid = skey->scantid; /* * Invalidate scankey tid to make _bt_compare compare only keys in * the item to report equality even if heap TIDs are different */ skey->scantid = NULL; /* * If next key tuple is different, invalidate last visible entry * data (whole index tuple or last posting in index tuple). Key * containing null value does not violate unique constraint and * treated as different to any other key. * * If the next key is the same as the previous one, do the * bt_entry_unique_check() call if it was postponed. */ if (_bt_compare(state->rel, skey, state->target, OffsetNumberNext(offset)) != 0 || skey->anynullkeys) { lVis.blkno = InvalidBlockNumber; lVis.offset = InvalidOffsetNumber; lVis.postingIndex = -1; lVis.tid = NULL; } else if (!unique_checked) { bt_entry_unique_check(state, itup, state->targetblock, offset, &lVis); } skey->scantid = scantid; /* Restore saved scan key state */ } /* * * Last item check * * * Check last item against next/right page's first data item's when * last item on page is reached. This additional check will detect * transposed pages iff the supposed right sibling page happens to * belong before target in the key space. (Otherwise, a subsequent * heap verification will probably detect the problem.) * * This check is similar to the item order check that will have * already been performed for every other "real" item on target page * when last item is checked. The difference is that the next item * (the item that is compared to target's last item) needs to come * from the next/sibling page. There may not be such an item * available from sibling for various reasons, though (e.g., target is * the rightmost page on level). */ if (offset == max) { BTScanInsert rightkey; /* first offset on a right index page (log only) */ OffsetNumber rightfirstoffset = InvalidOffsetNumber; /* Get item in next/right page */ rightkey = bt_right_page_check_scankey(state, &rightfirstoffset); if (rightkey && !invariant_g_offset(state, rightkey, max)) { /* * As explained at length in bt_right_page_check_scankey(), * there is a known !readonly race that could account for * apparent violation of invariant, which we must check for * before actually proceeding with raising error. Our canary * condition is that target page was deleted. */ if (!state->readonly) { /* Get fresh copy of target page */ state->target = palloc_btree_page(state, state->targetblock); /* Note that we deliberately do not update target LSN */ topaque = BTPageGetOpaque(state->target); /* * All !readonly checks now performed; just return */ if (P_IGNORE(topaque)) return; } ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("cross page item order invariant violated for index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Last item on page tid=(%u,%u) page lsn=%X/%X.", state->targetblock, offset, LSN_FORMAT_ARGS(state->targetlsn)))); } /* * If index has unique constraint make sure that no more than one * found equal items is visible. */ if (state->checkunique && state->indexinfo->ii_Unique && rightkey && P_ISLEAF(topaque) && !P_RIGHTMOST(topaque)) { BlockNumber rightblock_number = topaque->btpo_next; elog(DEBUG2, "check cross page unique condition"); /* * Make _bt_compare compare only index keys without heap TIDs. * rightkey->scantid is modified destructively but it is ok * for it is not used later. */ rightkey->scantid = NULL; /* The first key on the next page is the same */ if (_bt_compare(state->rel, rightkey, state->target, max) == 0 && !rightkey->anynullkeys) { Page rightpage; /* * Do the bt_entry_unique_check() call if it was * postponed. */ if (!unique_checked) bt_entry_unique_check(state, itup, state->targetblock, offset, &lVis); elog(DEBUG2, "cross page equal keys"); rightpage = palloc_btree_page(state, rightblock_number); topaque = BTPageGetOpaque(rightpage); if (P_IGNORE(topaque)) { pfree(rightpage); break; } if (unlikely(!P_ISLEAF(topaque))) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("right block of leaf block is non-leaf for index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Block=%u page lsn=%X/%X.", state->targetblock, LSN_FORMAT_ARGS(state->targetlsn)))); itemid = PageGetItemIdCareful(state, rightblock_number, rightpage, rightfirstoffset); itup = (IndexTuple) PageGetItem(rightpage, itemid); bt_entry_unique_check(state, itup, rightblock_number, rightfirstoffset, &lVis); pfree(rightpage); } } } /* * * Downlink check * * * Additional check of child items iff this is an internal page and * caller holds a ShareLock. This happens for every downlink (item) * in target excluding the negative-infinity downlink (again, this is * because it has no useful value to compare). */ if (!P_ISLEAF(topaque) && state->readonly) bt_child_check(state, skey, offset); } /* * Special case bt_child_highkey_check() call * * We don't pass a real downlink, but we've to finish the level * processing. If condition is satisfied, we've already processed all the * downlinks from the target level. But there still might be pages to the * right of the child page pointer to by our rightmost downlink. And they * might have missing downlinks. This final call checks for them. */ if (!P_ISLEAF(topaque) && P_RIGHTMOST(topaque) && state->readonly) { bt_child_highkey_check(state, InvalidOffsetNumber, NULL, topaque->btpo_level); } } /* * Return a scankey for an item on page to right of current target (or the * first non-ignorable page), sufficient to check ordering invariant on last * item in current target page. Returned scankey relies on local memory * allocated for the child page, which caller cannot pfree(). Caller's memory * context should be reset between calls here. * * This is the first data item, and so all adjacent items are checked against * their immediate sibling item (which may be on a sibling page, or even a * "cousin" page at parent boundaries where target's rightlink points to page * with different parent page). If no such valid item is available, return * NULL instead. * * Note that !readonly callers must reverify that target page has not * been concurrently deleted. * * Save rightfirstoffset for detailed error message. */ static BTScanInsert bt_right_page_check_scankey(BtreeCheckState *state, OffsetNumber *rightfirstoffset) { BTPageOpaque opaque; ItemId rightitem; IndexTuple firstitup; BlockNumber targetnext; Page rightpage; OffsetNumber nline; /* Determine target's next block number */ opaque = BTPageGetOpaque(state->target); /* If target is already rightmost, no right sibling; nothing to do here */ if (P_RIGHTMOST(opaque)) return NULL; /* * General notes on concurrent page splits and page deletion: * * Routines like _bt_search() don't require *any* page split interlock * when descending the tree, including something very light like a buffer * pin. That's why it's okay that we don't either. This avoidance of any * need to "couple" buffer locks is the raison d' etre of the Lehman & Yao * algorithm, in fact. * * That leaves deletion. A deleted page won't actually be recycled by * VACUUM early enough for us to fail to at least follow its right link * (or left link, or downlink) and find its sibling, because recycling * does not occur until no possible index scan could land on the page. * Index scans can follow links with nothing more than their snapshot as * an interlock and be sure of at least that much. (See page * recycling/"visible to everyone" notes in nbtree README.) * * Furthermore, it's okay if we follow a rightlink and find a half-dead or * dead (ignorable) page one or more times. There will either be a * further right link to follow that leads to a live page before too long * (before passing by parent's rightmost child), or we will find the end * of the entire level instead (possible when parent page is itself the * rightmost on its level). */ targetnext = opaque->btpo_next; for (;;) { CHECK_FOR_INTERRUPTS(); rightpage = palloc_btree_page(state, targetnext); opaque = BTPageGetOpaque(rightpage); if (!P_IGNORE(opaque) || P_RIGHTMOST(opaque)) break; /* * We landed on a deleted or half-dead sibling page. Step right until * we locate a live sibling page. */ ereport(DEBUG2, (errcode(ERRCODE_NO_DATA), errmsg_internal("level %u sibling page in block %u of index \"%s\" was found deleted or half dead", opaque->btpo_level, targetnext, RelationGetRelationName(state->rel)), errdetail_internal("Deleted page found when building scankey from right sibling."))); targetnext = opaque->btpo_next; /* Be slightly more pro-active in freeing this memory, just in case */ pfree(rightpage); } /* * No ShareLock held case -- why it's safe to proceed. * * Problem: * * We must avoid false positive reports of corruption when caller treats * item returned here as an upper bound on target's last item. In * general, false positives are disallowed. Avoiding them here when * caller is !readonly is subtle. * * A concurrent page deletion by VACUUM of the target page can result in * the insertion of items on to this right sibling page that would * previously have been inserted on our target page. There might have * been insertions that followed the target's downlink after it was made * to point to right sibling instead of target by page deletion's first * phase. The inserters insert items that would belong on target page. * This race is very tight, but it's possible. This is our only problem. * * Non-problems: * * We are not hindered by a concurrent page split of the target; we'll * never land on the second half of the page anyway. A concurrent split * of the right page will also not matter, because the first data item * remains the same within the left half, which we'll reliably land on. If * we had to skip over ignorable/deleted pages, it cannot matter because * their key space has already been atomically merged with the first * non-ignorable page we eventually find (doesn't matter whether the page * we eventually find is a true sibling or a cousin of target, which we go * into below). * * Solution: * * Caller knows that it should reverify that target is not ignorable * (half-dead or deleted) when cross-page sibling item comparison appears * to indicate corruption (invariant fails). This detects the single race * condition that exists for caller. This is correct because the * continued existence of target block as non-ignorable (not half-dead or * deleted) implies that target page was not merged into from the right by * deletion; the key space at or after target never moved left. Target's * parent either has the same downlink to target as before, or a < * downlink due to deletion at the left of target. Target either has the * same highkey as before, or a highkey < before when there is a page * split. (The rightmost concurrently-split-from-target-page page will * still have the same highkey as target was originally found to have, * which for our purposes is equivalent to target's highkey itself never * changing, since we reliably skip over * concurrently-split-from-target-page pages.) * * In simpler terms, we allow that the key space of the target may expand * left (the key space can move left on the left side of target only), but * the target key space cannot expand right and get ahead of us without * our detecting it. The key space of the target cannot shrink, unless it * shrinks to zero due to the deletion of the original page, our canary * condition. (To be very precise, we're a bit stricter than that because * it might just have been that the target page split and only the * original target page was deleted. We can be more strict, just not more * lax.) * * Top level tree walk caller moves on to next page (makes it the new * target) following recovery from this race. (cf. The rationale for * child/downlink verification needing a ShareLock within * bt_child_check(), where page deletion is also the main source of * trouble.) * * Note that it doesn't matter if right sibling page here is actually a * cousin page, because in order for the key space to be readjusted in a * way that causes us issues in next level up (guiding problematic * concurrent insertions to the cousin from the grandparent rather than to * the sibling from the parent), there'd have to be page deletion of * target's parent page (affecting target's parent's downlink in target's * grandparent page). Internal page deletion only occurs when there are * no child pages (they were all fully deleted), and caller is checking * that the target's parent has at least one non-deleted (so * non-ignorable) child: the target page. (Note that the first phase of * deletion atomically marks the page to be deleted half-dead/ignorable at * the same time downlink in its parent is removed, so caller will * definitely not fail to detect that this happened.) * * This trick is inspired by the method backward scans use for dealing * with concurrent page splits; concurrent page deletion is a problem that * similarly receives special consideration sometimes (it's possible that * the backwards scan will re-read its "original" block after failing to * find a right-link to it, having already moved in the opposite direction * (right/"forwards") a few times to try to locate one). Just like us, * that happens only to determine if there was a concurrent page deletion * of a reference page, and just like us if there was a page deletion of * that reference page it means we can move on from caring about the * reference page. See the nbtree README for a full description of how * that works. */ nline = PageGetMaxOffsetNumber(rightpage); /* * Get first data item, if any */ if (P_ISLEAF(opaque) && nline >= P_FIRSTDATAKEY(opaque)) { /* Return first data item (if any) */ rightitem = PageGetItemIdCareful(state, targetnext, rightpage, P_FIRSTDATAKEY(opaque)); *rightfirstoffset = P_FIRSTDATAKEY(opaque); } else if (!P_ISLEAF(opaque) && nline >= OffsetNumberNext(P_FIRSTDATAKEY(opaque))) { /* * Return first item after the internal page's "negative infinity" * item */ rightitem = PageGetItemIdCareful(state, targetnext, rightpage, OffsetNumberNext(P_FIRSTDATAKEY(opaque))); } else { /* * No first item. Page is probably empty leaf page, but it's also * possible that it's an internal page with only a negative infinity * item. */ ereport(DEBUG2, (errcode(ERRCODE_NO_DATA), errmsg_internal("%s block %u of index \"%s\" has no first data item", P_ISLEAF(opaque) ? "leaf" : "internal", targetnext, RelationGetRelationName(state->rel)))); return NULL; } /* * Return first real item scankey. Note that this relies on right page * memory remaining allocated. */ firstitup = (IndexTuple) PageGetItem(rightpage, rightitem); return bt_mkscankey_pivotsearch(state->rel, firstitup); } /* * Check if two tuples are binary identical except the block number. So, * this function is capable to compare pivot keys on different levels. */ static bool bt_pivot_tuple_identical(bool heapkeyspace, IndexTuple itup1, IndexTuple itup2) { if (IndexTupleSize(itup1) != IndexTupleSize(itup2)) return false; if (heapkeyspace) { /* * Offset number will contain important information in heapkeyspace * indexes: the number of attributes left in the pivot tuple following * suffix truncation. Don't skip over it (compare it too). */ if (memcmp(&itup1->t_tid.ip_posid, &itup2->t_tid.ip_posid, IndexTupleSize(itup1) - offsetof(ItemPointerData, ip_posid)) != 0) return false; } else { /* * Cannot rely on offset number field having consistent value across * levels on pg_upgrade'd !heapkeyspace indexes. Compare contents of * tuple starting from just after item pointer (i.e. after block * number and offset number). */ if (memcmp(&itup1->t_info, &itup2->t_info, IndexTupleSize(itup1) - offsetof(IndexTupleData, t_info)) != 0) return false; } return true; } /*--- * Check high keys on the child level. Traverse rightlinks from previous * downlink to the current one. Check that there are no intermediate pages * with missing downlinks. * * If 'loaded_child' is given, it's assumed to be the page pointed to by the * downlink referenced by 'downlinkoffnum' of the target page. * * Basically this function is called for each target downlink and checks two * invariants: * * 1) You can reach the next child from previous one via rightlinks; * 2) Each child high key have matching pivot key on target level. * * Consider the sample tree picture. * * 1 * / \ * 2 <-> 3 * / \ / \ * 4 <> 5 <> 6 <> 7 <> 8 * * This function will be called for blocks 4, 5, 6 and 8. Consider what is * happening for each function call. * * - The function call for block 4 initializes data structure and matches high * key of block 4 to downlink's pivot key of block 2. * - The high key of block 5 is matched to the high key of block 2. * - The block 6 has an incomplete split flag set, so its high key isn't * matched to anything. * - The function call for block 8 checks that block 8 can be found while * following rightlinks from block 6. The high key of block 7 will be * matched to downlink's pivot key in block 3. * * There is also final call of this function, which checks that there is no * missing downlinks for children to the right of the child referenced by * rightmost downlink in target level. */ static void bt_child_highkey_check(BtreeCheckState *state, OffsetNumber target_downlinkoffnum, Page loaded_child, uint32 target_level) { BlockNumber blkno = state->prevrightlink; Page page; BTPageOpaque opaque; bool rightsplit = state->previncompletesplit; bool first = true; ItemId itemid; IndexTuple itup; BlockNumber downlink; if (OffsetNumberIsValid(target_downlinkoffnum)) { itemid = PageGetItemIdCareful(state, state->targetblock, state->target, target_downlinkoffnum); itup = (IndexTuple) PageGetItem(state->target, itemid); downlink = BTreeTupleGetDownLink(itup); } else { downlink = P_NONE; } /* * If no previous rightlink is memorized for current level just below * target page's level, we are about to start from the leftmost page. We * can't follow rightlinks from previous page, because there is no * previous page. But we still can match high key. * * So we initialize variables for the loop above like there is previous * page referencing current child. Also we imply previous page to not * have incomplete split flag, that would make us require downlink for * current child. That's correct, because leftmost page on the level * should always have parent downlink. */ if (!BlockNumberIsValid(blkno)) { blkno = downlink; rightsplit = false; } /* Move to the right on the child level */ while (true) { /* * Did we traverse the whole tree level and this is check for pages to * the right of rightmost downlink? */ if (blkno == P_NONE && downlink == P_NONE) { state->prevrightlink = InvalidBlockNumber; state->previncompletesplit = false; return; } /* Did we traverse the whole tree level and don't find next downlink? */ if (blkno == P_NONE) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("can't traverse from downlink %u to downlink %u of index \"%s\"", state->prevrightlink, downlink, RelationGetRelationName(state->rel)))); /* Load page contents */ if (blkno == downlink && loaded_child) page = loaded_child; else page = palloc_btree_page(state, blkno); opaque = BTPageGetOpaque(page); /* The first page we visit at the level should be leftmost */ if (first && !BlockNumberIsValid(state->prevrightlink) && !bt_leftmost_ignoring_half_dead(state, blkno, opaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("the first child of leftmost target page is not leftmost of its level in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Target block=%u child block=%u target page lsn=%X/%X.", state->targetblock, blkno, LSN_FORMAT_ARGS(state->targetlsn)))); /* Do level sanity check */ if ((!P_ISDELETED(opaque) || P_HAS_FULLXID(opaque)) && opaque->btpo_level != target_level - 1) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("block found while following rightlinks from child of index \"%s\" has invalid level", RelationGetRelationName(state->rel)), errdetail_internal("Block pointed to=%u expected level=%u level in pointed to block=%u.", blkno, target_level - 1, opaque->btpo_level))); /* Try to detect circular links */ if ((!first && blkno == state->prevrightlink) || blkno == opaque->btpo_prev) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("circular link chain found in block %u of index \"%s\"", blkno, RelationGetRelationName(state->rel)))); if (blkno != downlink && !P_IGNORE(opaque)) { /* blkno probably has missing parent downlink */ bt_downlink_missing_check(state, rightsplit, blkno, page); } rightsplit = P_INCOMPLETE_SPLIT(opaque); /* * If we visit page with high key, check that it is equal to the * target key next to corresponding downlink. */ if (!rightsplit && !P_RIGHTMOST(opaque) && !P_ISHALFDEAD(opaque)) { BTPageOpaque topaque; IndexTuple highkey; OffsetNumber pivotkey_offset; /* Get high key */ itemid = PageGetItemIdCareful(state, blkno, page, P_HIKEY); highkey = (IndexTuple) PageGetItem(page, itemid); /* * There might be two situations when we examine high key. If * current child page is referenced by given target downlink, we * should look to the next offset number for matching key from * target page. * * Alternatively, we're following rightlinks somewhere in the * middle between page referenced by previous target's downlink * and the page referenced by current target's downlink. If * current child page hasn't incomplete split flag set, then its * high key should match to the target's key of current offset * number. This happens when a previous call here (to * bt_child_highkey_check()) found an incomplete split, and we * reach a right sibling page without a downlink -- the right * sibling page's high key still needs to be matched to a * separator key on the parent/target level. * * Don't apply OffsetNumberNext() to target_downlinkoffnum when we * already had to step right on the child level. Our traversal of * the child level must try to move in perfect lockstep behind (to * the left of) the target/parent level traversal. */ if (blkno == downlink) pivotkey_offset = OffsetNumberNext(target_downlinkoffnum); else pivotkey_offset = target_downlinkoffnum; topaque = BTPageGetOpaque(state->target); if (!offset_is_negative_infinity(topaque, pivotkey_offset)) { /* * If we're looking for the next pivot tuple in target page, * but there is no more pivot tuples, then we should match to * high key instead. */ if (pivotkey_offset > PageGetMaxOffsetNumber(state->target)) { if (P_RIGHTMOST(topaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("child high key is greater than rightmost pivot key on target level in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Target block=%u child block=%u target page lsn=%X/%X.", state->targetblock, blkno, LSN_FORMAT_ARGS(state->targetlsn)))); pivotkey_offset = P_HIKEY; } itemid = PageGetItemIdCareful(state, state->targetblock, state->target, pivotkey_offset); itup = (IndexTuple) PageGetItem(state->target, itemid); } else { /* * We cannot try to match child's high key to a negative * infinity key in target, since there is nothing to compare. * However, it's still possible to match child's high key * outside of target page. The reason why we're are is that * bt_child_highkey_check() was previously called for the * cousin page of 'loaded_child', which is incomplete split. * So, now we traverse to the right of that cousin page and * current child level page under consideration still belongs * to the subtree of target's left sibling. Thus, we need to * match child's high key to its left uncle page high key. * Thankfully we saved it, it's called a "low key" of target * page. */ if (!state->lowkey) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("can't find left sibling high key in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Target block=%u child block=%u target page lsn=%X/%X.", state->targetblock, blkno, LSN_FORMAT_ARGS(state->targetlsn)))); itup = state->lowkey; } if (!bt_pivot_tuple_identical(state->heapkeyspace, highkey, itup)) { ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("mismatch between parent key and child high key in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Target block=%u child block=%u target page lsn=%X/%X.", state->targetblock, blkno, LSN_FORMAT_ARGS(state->targetlsn)))); } } /* Exit if we already found next downlink */ if (blkno == downlink) { state->prevrightlink = opaque->btpo_next; state->previncompletesplit = rightsplit; return; } /* Traverse to the next page using rightlink */ blkno = opaque->btpo_next; /* Free page contents if it's allocated by us */ if (page != loaded_child) pfree(page); first = false; } } /* * Checks one of target's downlink against its child page. * * Conceptually, the target page continues to be what is checked here. The * target block is still blamed in the event of finding an invariant violation. * The downlink insertion into the target is probably where any problem raised * here arises, and there is no such thing as a parent link, so doing the * verification this way around is much more practical. * * This function visits child page and it's sequentially called for each * downlink of target page. Assuming this we also check downlink connectivity * here in order to save child page visits. */ static void bt_child_check(BtreeCheckState *state, BTScanInsert targetkey, OffsetNumber downlinkoffnum) { ItemId itemid; IndexTuple itup; BlockNumber childblock; OffsetNumber offset; OffsetNumber maxoffset; Page child; BTPageOpaque copaque; BTPageOpaque topaque; itemid = PageGetItemIdCareful(state, state->targetblock, state->target, downlinkoffnum); itup = (IndexTuple) PageGetItem(state->target, itemid); childblock = BTreeTupleGetDownLink(itup); /* * Caller must have ShareLock on target relation, because of * considerations around page deletion by VACUUM. * * NB: In general, page deletion deletes the right sibling's downlink, not * the downlink of the page being deleted; the deleted page's downlink is * reused for its sibling. The key space is thereby consolidated between * the deleted page and its right sibling. (We cannot delete a parent * page's rightmost child unless it is the last child page, and we intend * to also delete the parent itself.) * * If this verification happened without a ShareLock, the following race * condition could cause false positives: * * In general, concurrent page deletion might occur, including deletion of * the left sibling of the child page that is examined here. If such a * page deletion were to occur, closely followed by an insertion into the * newly expanded key space of the child, a window for the false positive * opens up: the stale parent/target downlink originally followed to get * to the child legitimately ceases to be a lower bound on all items in * the page, since the key space was concurrently expanded "left". * (Insertion followed the "new" downlink for the child, not our now-stale * downlink, which was concurrently physically removed in target/parent as * part of deletion's first phase.) * * While we use various techniques elsewhere to perform cross-page * verification for !readonly callers, a similar trick seems difficult * here. The tricks used by bt_recheck_sibling_links and by * bt_right_page_check_scankey both involve verification of a same-level, * cross-sibling invariant. Cross-level invariants are far more squishy, * though. The nbtree REDO routines do not actually couple buffer locks * across levels during page splits, so making any cross-level check work * reliably in !readonly mode may be impossible. */ Assert(state->readonly); /* * Verify child page has the downlink key from target page (its parent) as * a lower bound; downlink must be strictly less than all keys on the * page. * * Check all items, rather than checking just the first and trusting that * the operator class obeys the transitive law. */ topaque = BTPageGetOpaque(state->target); child = palloc_btree_page(state, childblock); copaque = BTPageGetOpaque(child); maxoffset = PageGetMaxOffsetNumber(child); /* * Since we've already loaded the child block, combine this check with * check for downlink connectivity. */ bt_child_highkey_check(state, downlinkoffnum, child, topaque->btpo_level); /* * Since there cannot be a concurrent VACUUM operation in readonly mode, * and since a page has no links within other pages (siblings and parent) * once it is marked fully deleted, it should be impossible to land on a * fully deleted page. * * It does not quite make sense to enforce that the page cannot even be * half-dead, despite the fact the downlink is modified at the same stage * that the child leaf page is marked half-dead. That's incorrect because * there may occasionally be multiple downlinks from a chain of pages * undergoing deletion, where multiple successive calls are made to * _bt_unlink_halfdead_page() by VACUUM before it can finally safely mark * the leaf page as fully dead. While _bt_mark_page_halfdead() usually * removes the downlink to the leaf page that is marked half-dead, that's * not guaranteed, so it's possible we'll land on a half-dead page with a * downlink due to an interrupted multi-level page deletion. * * We go ahead with our checks if the child page is half-dead. It's safe * to do so because we do not test the child's high key, so it does not * matter that the original high key will have been replaced by a dummy * truncated high key within _bt_mark_page_halfdead(). All other page * items are left intact on a half-dead page, so there is still something * to test. */ if (P_ISDELETED(copaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("downlink to deleted page found in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Parent block=%u child block=%u parent page lsn=%X/%X.", state->targetblock, childblock, LSN_FORMAT_ARGS(state->targetlsn)))); for (offset = P_FIRSTDATAKEY(copaque); offset <= maxoffset; offset = OffsetNumberNext(offset)) { /* * Skip comparison of target page key against "negative infinity" * item, if any. Checking it would indicate that it's not a strict * lower bound, but that's only because of the hard-coding for * negative infinity items within _bt_compare(). * * If nbtree didn't truncate negative infinity tuples during internal * page splits then we'd expect child's negative infinity key to be * equal to the scankey/downlink from target/parent (it would be a * "low key" in this hypothetical scenario, and so it would still need * to be treated as a special case here). * * Negative infinity items can be thought of as a strict lower bound * that works transitively, with the last non-negative-infinity pivot * followed during a descent from the root as its "true" strict lower * bound. Only a small number of negative infinity items are truly * negative infinity; those that are the first items of leftmost * internal pages. In more general terms, a negative infinity item is * only negative infinity with respect to the subtree that the page is * at the root of. * * See also: bt_rootdescend(), which can even detect transitive * inconsistencies on cousin leaf pages. */ if (offset_is_negative_infinity(copaque, offset)) continue; if (!invariant_l_nontarget_offset(state, targetkey, childblock, child, offset)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("down-link lower bound invariant violated for index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Parent block=%u child index tid=(%u,%u) parent page lsn=%X/%X.", state->targetblock, childblock, offset, LSN_FORMAT_ARGS(state->targetlsn)))); } pfree(child); } /* * Checks if page is missing a downlink that it should have. * * A page that lacks a downlink/parent may indicate corruption. However, we * must account for the fact that a missing downlink can occasionally be * encountered in a non-corrupt index. This can be due to an interrupted page * split, or an interrupted multi-level page deletion (i.e. there was a hard * crash or an error during a page split, or while VACUUM was deleting a * multi-level chain of pages). * * Note that this can only be called in readonly mode, so there is no need to * be concerned about concurrent page splits or page deletions. */ static void bt_downlink_missing_check(BtreeCheckState *state, bool rightsplit, BlockNumber blkno, Page page) { BTPageOpaque opaque = BTPageGetOpaque(page); ItemId itemid; IndexTuple itup; Page child; BTPageOpaque copaque; uint32 level; BlockNumber childblk; XLogRecPtr pagelsn; Assert(state->readonly); Assert(!P_IGNORE(opaque)); /* No next level up with downlinks to fingerprint from the true root */ if (P_ISROOT(opaque)) return; pagelsn = PageGetLSN(page); /* * Incomplete (interrupted) page splits can account for the lack of a * downlink. Some inserting transaction should eventually complete the * page split in passing, when it notices that the left sibling page is * P_INCOMPLETE_SPLIT(). * * In general, VACUUM is not prepared for there to be no downlink to a * page that it deletes. This is the main reason why the lack of a * downlink can be reported as corruption here. It's not obvious that an * invalid missing downlink can result in wrong answers to queries, * though, since index scans that land on the child may end up * consistently moving right. The handling of concurrent page splits (and * page deletions) within _bt_moveright() cannot distinguish * inconsistencies that last for a moment from inconsistencies that are * permanent and irrecoverable. * * VACUUM isn't even prepared to delete pages that have no downlink due to * an incomplete page split, but it can detect and reason about that case * by design, so it shouldn't be taken to indicate corruption. See * _bt_pagedel() for full details. */ if (rightsplit) { ereport(DEBUG1, (errcode(ERRCODE_NO_DATA), errmsg_internal("harmless interrupted page split detected in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Block=%u level=%u left sibling=%u page lsn=%X/%X.", blkno, opaque->btpo_level, opaque->btpo_prev, LSN_FORMAT_ARGS(pagelsn)))); return; } /* * Page under check is probably the "top parent" of a multi-level page * deletion. We'll need to descend the subtree to make sure that * descendant pages are consistent with that, though. * * If the page (which must be non-ignorable) is a leaf page, then clearly * it can't be the top parent. The lack of a downlink is probably a * symptom of a broad problem that could just as easily cause * inconsistencies anywhere else. */ if (P_ISLEAF(opaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("leaf index block lacks downlink in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Block=%u page lsn=%X/%X.", blkno, LSN_FORMAT_ARGS(pagelsn)))); /* Descend from the given page, which is an internal page */ elog(DEBUG1, "checking for interrupted multi-level deletion due to missing downlink in index \"%s\"", RelationGetRelationName(state->rel)); level = opaque->btpo_level; itemid = PageGetItemIdCareful(state, blkno, page, P_FIRSTDATAKEY(opaque)); itup = (IndexTuple) PageGetItem(page, itemid); childblk = BTreeTupleGetDownLink(itup); for (;;) { CHECK_FOR_INTERRUPTS(); child = palloc_btree_page(state, childblk); copaque = BTPageGetOpaque(child); if (P_ISLEAF(copaque)) break; /* Do an extra sanity check in passing on internal pages */ if (copaque->btpo_level != level - 1) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg_internal("downlink points to block in index \"%s\" whose level is not one level down", RelationGetRelationName(state->rel)), errdetail_internal("Top parent/under check block=%u block pointed to=%u expected level=%u level in pointed to block=%u.", blkno, childblk, level - 1, copaque->btpo_level))); level = copaque->btpo_level; itemid = PageGetItemIdCareful(state, childblk, child, P_FIRSTDATAKEY(copaque)); itup = (IndexTuple) PageGetItem(child, itemid); childblk = BTreeTupleGetDownLink(itup); /* Be slightly more pro-active in freeing this memory, just in case */ pfree(child); } /* * Since there cannot be a concurrent VACUUM operation in readonly mode, * and since a page has no links within other pages (siblings and parent) * once it is marked fully deleted, it should be impossible to land on a * fully deleted page. See bt_child_check() for further details. * * The bt_child_check() P_ISDELETED() check is repeated here because * bt_child_check() does not visit pages reachable through negative * infinity items. Besides, bt_child_check() is unwilling to descend * multiple levels. (The similar bt_child_check() P_ISDELETED() check * within bt_check_level_from_leftmost() won't reach the page either, * since the leaf's live siblings should have their sibling links updated * to bypass the deletion target page when it is marked fully dead.) * * If this error is raised, it might be due to a previous multi-level page * deletion that failed to realize that it wasn't yet safe to mark the * leaf page as fully dead. A "dangling downlink" will still remain when * this happens. The fact that the dangling downlink's page (the leaf's * parent/ancestor page) lacked a downlink is incidental. */ if (P_ISDELETED(copaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg_internal("downlink to deleted leaf page found in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Top parent/target block=%u leaf block=%u top parent/under check lsn=%X/%X.", blkno, childblk, LSN_FORMAT_ARGS(pagelsn)))); /* * Iff leaf page is half-dead, its high key top parent link should point * to what VACUUM considered to be the top parent page at the instant it * was interrupted. Provided the high key link actually points to the * page under check, the missing downlink we detected is consistent with * there having been an interrupted multi-level page deletion. This means * that the subtree with the page under check at its root (a page deletion * chain) is in a consistent state, enabling VACUUM to resume deleting the * entire chain the next time it encounters the half-dead leaf page. */ if (P_ISHALFDEAD(copaque) && !P_RIGHTMOST(copaque)) { itemid = PageGetItemIdCareful(state, childblk, child, P_HIKEY); itup = (IndexTuple) PageGetItem(child, itemid); if (BTreeTupleGetTopParent(itup) == blkno) return; } ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("internal index block lacks downlink in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Block=%u level=%u page lsn=%X/%X.", blkno, opaque->btpo_level, LSN_FORMAT_ARGS(pagelsn)))); } /* * Per-tuple callback from table_index_build_scan, used to determine if index has * all the entries that definitely should have been observed in leaf pages of * the target index (that is, all IndexTuples that were fingerprinted by our * Bloom filter). All heapallindexed checks occur here. * * The redundancy between an index and the table it indexes provides a good * opportunity to detect corruption, especially corruption within the table. * The high level principle behind the verification performed here is that any * IndexTuple that should be in an index following a fresh CREATE INDEX (based * on the same index definition) should also have been in the original, * existing index, which should have used exactly the same representation * * Since the overall structure of the index has already been verified, the most * likely explanation for error here is a corrupt heap page (could be logical * or physical corruption). Index corruption may still be detected here, * though. Only readonly callers will have verified that left links and right * links are in agreement, and so it's possible that a leaf page transposition * within index is actually the source of corruption detected here (for * !readonly callers). The checks performed only for readonly callers might * more accurately frame the problem as a cross-page invariant issue (this * could even be due to recovery not replaying all WAL records). The !readonly * ERROR message raised here includes a HINT about retrying with readonly * verification, just in case it's a cross-page invariant issue, though that * isn't particularly likely. * * table_index_build_scan() expects to be able to find the root tuple when a * heap-only tuple (the live tuple at the end of some HOT chain) needs to be * indexed, in order to replace the actual tuple's TID with the root tuple's * TID (which is what we're actually passed back here). The index build heap * scan code will raise an error when a tuple that claims to be the root of the * heap-only tuple's HOT chain cannot be located. This catches cases where the * original root item offset/root tuple for a HOT chain indicates (for whatever * reason) that the entire HOT chain is dead, despite the fact that the latest * heap-only tuple should be indexed. When this happens, sequential scans may * always give correct answers, and all indexes may be considered structurally * consistent (i.e. the nbtree structural checks would not detect corruption). * It may be the case that only index scans give wrong answers, and yet heap or * SLRU corruption is the real culprit. (While it's true that LP_DEAD bit * setting will probably also leave the index in a corrupt state before too * long, the problem is nonetheless that there is heap corruption.) * * Heap-only tuple handling within table_index_build_scan() works in a way that * helps us to detect index tuples that contain the wrong values (values that * don't match the latest tuple in the HOT chain). This can happen when there * is no superseding index tuple due to a faulty assessment of HOT safety, * perhaps during the original CREATE INDEX. Because the latest tuple's * contents are used with the root TID, an error will be raised when a tuple * with the same TID but non-matching attribute values is passed back to us. * Faulty assessment of HOT-safety was behind at least two distinct CREATE * INDEX CONCURRENTLY bugs that made it into stable releases, one of which was * undetected for many years. In short, the same principle that allows a * REINDEX to repair corruption when there was an (undetected) broken HOT chain * also allows us to detect the corruption in many cases. */ static void bt_tuple_present_callback(Relation index, ItemPointer tid, Datum *values, bool *isnull, bool tupleIsAlive, void *checkstate) { BtreeCheckState *state = (BtreeCheckState *) checkstate; IndexTuple itup, norm; Assert(state->heapallindexed); /* Generate a normalized index tuple for fingerprinting */ itup = index_form_tuple(RelationGetDescr(index), values, isnull); itup->t_tid = *tid; norm = bt_normalize_tuple(state, itup); /* Probe Bloom filter -- tuple should be present */ if (bloom_lacks_element(state->filter, (unsigned char *) norm, IndexTupleSize(norm))) ereport(ERROR, (errcode(ERRCODE_DATA_CORRUPTED), errmsg("heap tuple (%u,%u) from table \"%s\" lacks matching index tuple within index \"%s\"", ItemPointerGetBlockNumber(&(itup->t_tid)), ItemPointerGetOffsetNumber(&(itup->t_tid)), RelationGetRelationName(state->heaprel), RelationGetRelationName(state->rel)), !state->readonly ? errhint("Retrying verification using the function bt_index_parent_check() might provide a more specific error.") : 0)); state->heaptuplespresent++; pfree(itup); /* Cannot leak memory here */ if (norm != itup) pfree(norm); } /* * Normalize an index tuple for fingerprinting. * * In general, index tuple formation is assumed to be deterministic by * heapallindexed verification, and IndexTuples are assumed immutable. While * the LP_DEAD bit is mutable in leaf pages, that's ItemId metadata, which is * not fingerprinted. Normalization is required to compensate for corner * cases where the determinism assumption doesn't quite work. * * There is currently one such case: index_form_tuple() does not try to hide * the source TOAST state of input datums. The executor applies TOAST * compression for heap tuples based on different criteria to the compression * applied within btinsert()'s call to index_form_tuple(): it sometimes * compresses more aggressively, resulting in compressed heap tuple datums but * uncompressed corresponding index tuple datums. A subsequent heapallindexed * verification will get a logically equivalent though bitwise unequal tuple * from index_form_tuple(). False positive heapallindexed corruption reports * could occur without normalizing away the inconsistency. * * Returned tuple is often caller's own original tuple. Otherwise, it is a * new representation of caller's original index tuple, palloc()'d in caller's * memory context. * * Note: This routine is not concerned with distinctions about the * representation of tuples beyond those that might break heapallindexed * verification. In particular, it won't try to normalize opclass-equal * datums with potentially distinct representations (e.g., btree/numeric_ops * index datums will not get their display scale normalized-away here). * Caller does normalization for non-pivot tuples that have a posting list, * since dummy CREATE INDEX callback code generates new tuples with the same * normalized representation. */ static IndexTuple bt_normalize_tuple(BtreeCheckState *state, IndexTuple itup) { TupleDesc tupleDescriptor = RelationGetDescr(state->rel); Datum normalized[INDEX_MAX_KEYS]; bool isnull[INDEX_MAX_KEYS]; bool need_free[INDEX_MAX_KEYS]; bool formnewtup = false; IndexTuple reformed; int i; /* Caller should only pass "logical" non-pivot tuples here */ Assert(!BTreeTupleIsPosting(itup) && !BTreeTupleIsPivot(itup)); /* Easy case: It's immediately clear that tuple has no varlena datums */ if (!IndexTupleHasVarwidths(itup)) return itup; for (i = 0; i < tupleDescriptor->natts; i++) { Form_pg_attribute att; att = TupleDescAttr(tupleDescriptor, i); /* Assume untoasted/already normalized datum initially */ need_free[i] = false; normalized[i] = index_getattr(itup, att->attnum, tupleDescriptor, &isnull[i]); if (att->attbyval || att->attlen != -1 || isnull[i]) continue; /* * Callers always pass a tuple that could safely be inserted into the * index without further processing, so an external varlena header * should never be encountered here */ if (VARATT_IS_EXTERNAL(DatumGetPointer(normalized[i]))) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("external varlena datum in tuple that references heap row (%u,%u) in index \"%s\"", ItemPointerGetBlockNumber(&(itup->t_tid)), ItemPointerGetOffsetNumber(&(itup->t_tid)), RelationGetRelationName(state->rel)))); else if (!VARATT_IS_COMPRESSED(DatumGetPointer(normalized[i])) && VARSIZE(DatumGetPointer(normalized[i])) > TOAST_INDEX_TARGET && (att->attstorage == TYPSTORAGE_EXTENDED || att->attstorage == TYPSTORAGE_MAIN)) { /* * This value will be compressed by index_form_tuple() with the * current storage settings. We may be here because this tuple * was formed with different storage settings. So, force forming. */ formnewtup = true; } else if (VARATT_IS_COMPRESSED(DatumGetPointer(normalized[i]))) { formnewtup = true; normalized[i] = PointerGetDatum(PG_DETOAST_DATUM(normalized[i])); need_free[i] = true; } /* * Short tuples may have 1B or 4B header. Convert 4B header of short * tuples to 1B */ else if (VARATT_CAN_MAKE_SHORT(DatumGetPointer(normalized[i]))) { /* convert to short varlena */ Size len = VARATT_CONVERTED_SHORT_SIZE(DatumGetPointer(normalized[i])); char *data = palloc(len); SET_VARSIZE_SHORT(data, len); memcpy(data + 1, VARDATA(DatumGetPointer(normalized[i])), len - 1); formnewtup = true; normalized[i] = PointerGetDatum(data); need_free[i] = true; } } /* * Easier case: Tuple has varlena datums, none of which are compressed or * short with 4B header */ if (!formnewtup) return itup; /* * Hard case: Tuple had compressed varlena datums that necessitate * creating normalized version of the tuple from uncompressed input datums * (normalized input datums). This is rather naive, but shouldn't be * necessary too often. * * In the heap, tuples may contain short varlena datums with both 1B * header and 4B headers. But the corresponding index tuple should always * have such varlena's with 1B headers. So, if there is a short varlena * with 4B header, we need to convert it for fingerprinting. * * Note that we rely on deterministic index_form_tuple() TOAST compression * of normalized input. */ reformed = index_form_tuple(tupleDescriptor, normalized, isnull); reformed->t_tid = itup->t_tid; /* Cannot leak memory here */ for (i = 0; i < tupleDescriptor->natts; i++) if (need_free[i]) pfree(DatumGetPointer(normalized[i])); return reformed; } /* * Produce palloc()'d "plain" tuple for nth posting list entry/TID. * * In general, deduplication is not supposed to change the logical contents of * an index. Multiple index tuples are merged together into one equivalent * posting list index tuple when convenient. * * heapallindexed verification must normalize-away this variation in * representation by converting posting list tuples into two or more "plain" * tuples. Each tuple must be fingerprinted separately -- there must be one * tuple for each corresponding Bloom filter probe during the heap scan. * * Note: Caller still needs to call bt_normalize_tuple() with returned tuple. */ static inline IndexTuple bt_posting_plain_tuple(IndexTuple itup, int n) { Assert(BTreeTupleIsPosting(itup)); /* Returns non-posting-list tuple */ return _bt_form_posting(itup, BTreeTupleGetPostingN(itup, n), 1); } /* * Search for itup in index, starting from fast root page. itup must be a * non-pivot tuple. This is only supported with heapkeyspace indexes, since * we rely on having fully unique keys to find a match with only a single * visit to a leaf page, barring an interrupted page split, where we may have * to move right. (A concurrent page split is impossible because caller must * be readonly caller.) * * This routine can detect very subtle transitive consistency issues across * more than one level of the tree. Leaf pages all have a high key (even the * rightmost page has a conceptual positive infinity high key), but not a low * key. Their downlink in parent is a lower bound, which along with the high * key is almost enough to detect every possible inconsistency. A downlink * separator key value won't always be available from parent, though, because * the first items of internal pages are negative infinity items, truncated * down to zero attributes during internal page splits. While it's true that * bt_child_check() and the high key check can detect most imaginable key * space problems, there are remaining problems it won't detect with non-pivot * tuples in cousin leaf pages. Starting a search from the root for every * existing leaf tuple detects small inconsistencies in upper levels of the * tree that cannot be detected any other way. (Besides all this, this is * probably also useful as a direct test of the code used by index scans * themselves.) */ static bool bt_rootdescend(BtreeCheckState *state, IndexTuple itup) { BTScanInsert key; BTStack stack; Buffer lbuf; bool exists; key = _bt_mkscankey(state->rel, itup); Assert(key->heapkeyspace && key->scantid != NULL); /* * Search from root. * * Ideally, we would arrange to only move right within _bt_search() when * an interrupted page split is detected (i.e. when the incomplete split * bit is found to be set), but for now we accept the possibility that * that could conceal an inconsistency. */ Assert(state->readonly && state->rootdescend); exists = false; stack = _bt_search(state->rel, NULL, key, &lbuf, BT_READ); if (BufferIsValid(lbuf)) { BTInsertStateData insertstate; OffsetNumber offnum; Page page; insertstate.itup = itup; insertstate.itemsz = MAXALIGN(IndexTupleSize(itup)); insertstate.itup_key = key; insertstate.postingoff = 0; insertstate.bounds_valid = false; insertstate.buf = lbuf; /* Get matching tuple on leaf page */ offnum = _bt_binsrch_insert(state->rel, &insertstate); /* Compare first >= matching item on leaf page, if any */ page = BufferGetPage(lbuf); /* Should match on first heap TID when tuple has a posting list */ if (offnum <= PageGetMaxOffsetNumber(page) && insertstate.postingoff <= 0 && _bt_compare(state->rel, key, page, offnum) == 0) exists = true; _bt_relbuf(state->rel, lbuf); } _bt_freestack(stack); pfree(key); return exists; } /* * Is particular offset within page (whose special state is passed by caller) * the page negative-infinity item? * * As noted in comments above _bt_compare(), there is special handling of the * first data item as a "negative infinity" item. The hard-coding within * _bt_compare() makes comparing this item for the purposes of verification * pointless at best, since the IndexTuple only contains a valid TID (a * reference TID to child page). */ static inline bool offset_is_negative_infinity(BTPageOpaque opaque, OffsetNumber offset) { /* * For internal pages only, the first item after high key, if any, is * negative infinity item. Internal pages always have a negative infinity * item, whereas leaf pages never have one. This implies that negative * infinity item is either first or second line item, or there is none * within page. * * Negative infinity items are a special case among pivot tuples. They * always have zero attributes, while all other pivot tuples always have * nkeyatts attributes. * * Right-most pages don't have a high key, but could be said to * conceptually have a "positive infinity" high key. Thus, there is a * symmetry between down link items in parent pages, and high keys in * children. Together, they represent the part of the key space that * belongs to each page in the index. For example, all children of the * root page will have negative infinity as a lower bound from root * negative infinity downlink, and positive infinity as an upper bound * (implicitly, from "imaginary" positive infinity high key in root). */ return !P_ISLEAF(opaque) && offset == P_FIRSTDATAKEY(opaque); } /* * Does the invariant hold that the key is strictly less than a given upper * bound offset item? * * Verifies line pointer on behalf of caller. * * If this function returns false, convention is that caller throws error due * to corruption. */ static inline bool invariant_l_offset(BtreeCheckState *state, BTScanInsert key, OffsetNumber upperbound) { ItemId itemid; int32 cmp; Assert(!key->nextkey && key->backward); /* Verify line pointer before checking tuple */ itemid = PageGetItemIdCareful(state, state->targetblock, state->target, upperbound); /* pg_upgrade'd indexes may legally have equal sibling tuples */ if (!key->heapkeyspace) return invariant_leq_offset(state, key, upperbound); cmp = _bt_compare(state->rel, key, state->target, upperbound); /* * _bt_compare() is capable of determining that a scankey with a * filled-out attribute is greater than pivot tuples where the comparison * is resolved at a truncated attribute (value of attribute in pivot is * minus infinity). However, it is not capable of determining that a * scankey is _less than_ a tuple on the basis of a comparison resolved at * _scankey_ minus infinity attribute. Complete an extra step to simulate * having minus infinity values for omitted scankey attribute(s). */ if (cmp == 0) { BTPageOpaque topaque; IndexTuple ritup; int uppnkeyatts; ItemPointer rheaptid; bool nonpivot; ritup = (IndexTuple) PageGetItem(state->target, itemid); topaque = BTPageGetOpaque(state->target); nonpivot = P_ISLEAF(topaque) && upperbound >= P_FIRSTDATAKEY(topaque); /* Get number of keys + heap TID for item to the right */ uppnkeyatts = BTreeTupleGetNKeyAtts(ritup, state->rel); rheaptid = BTreeTupleGetHeapTIDCareful(state, ritup, nonpivot); /* Heap TID is tiebreaker key attribute */ if (key->keysz == uppnkeyatts) return key->scantid == NULL && rheaptid != NULL; return key->keysz < uppnkeyatts; } return cmp < 0; } /* * Does the invariant hold that the key is less than or equal to a given upper * bound offset item? * * Caller should have verified that upperbound's line pointer is consistent * using PageGetItemIdCareful() call. * * If this function returns false, convention is that caller throws error due * to corruption. */ static inline bool invariant_leq_offset(BtreeCheckState *state, BTScanInsert key, OffsetNumber upperbound) { int32 cmp; Assert(!key->nextkey && key->backward); cmp = _bt_compare(state->rel, key, state->target, upperbound); return cmp <= 0; } /* * Does the invariant hold that the key is strictly greater than a given lower * bound offset item? * * Caller should have verified that lowerbound's line pointer is consistent * using PageGetItemIdCareful() call. * * If this function returns false, convention is that caller throws error due * to corruption. */ static inline bool invariant_g_offset(BtreeCheckState *state, BTScanInsert key, OffsetNumber lowerbound) { int32 cmp; Assert(!key->nextkey && key->backward); cmp = _bt_compare(state->rel, key, state->target, lowerbound); /* pg_upgrade'd indexes may legally have equal sibling tuples */ if (!key->heapkeyspace) return cmp >= 0; /* * No need to consider the possibility that scankey has attributes that we * need to force to be interpreted as negative infinity. _bt_compare() is * able to determine that scankey is greater than negative infinity. The * distinction between "==" and "<" isn't interesting here, since * corruption is indicated either way. */ return cmp > 0; } /* * Does the invariant hold that the key is strictly less than a given upper * bound offset item, with the offset relating to a caller-supplied page that * is not the current target page? * * Caller's non-target page is a child page of the target, checked as part of * checking a property of the target page (i.e. the key comes from the * target). Verifies line pointer on behalf of caller. * * If this function returns false, convention is that caller throws error due * to corruption. */ static inline bool invariant_l_nontarget_offset(BtreeCheckState *state, BTScanInsert key, BlockNumber nontargetblock, Page nontarget, OffsetNumber upperbound) { ItemId itemid; int32 cmp; Assert(!key->nextkey && key->backward); /* Verify line pointer before checking tuple */ itemid = PageGetItemIdCareful(state, nontargetblock, nontarget, upperbound); cmp = _bt_compare(state->rel, key, nontarget, upperbound); /* pg_upgrade'd indexes may legally have equal sibling tuples */ if (!key->heapkeyspace) return cmp <= 0; /* See invariant_l_offset() for an explanation of this extra step */ if (cmp == 0) { IndexTuple child; int uppnkeyatts; ItemPointer childheaptid; BTPageOpaque copaque; bool nonpivot; child = (IndexTuple) PageGetItem(nontarget, itemid); copaque = BTPageGetOpaque(nontarget); nonpivot = P_ISLEAF(copaque) && upperbound >= P_FIRSTDATAKEY(copaque); /* Get number of keys + heap TID for child/non-target item */ uppnkeyatts = BTreeTupleGetNKeyAtts(child, state->rel); childheaptid = BTreeTupleGetHeapTIDCareful(state, child, nonpivot); /* Heap TID is tiebreaker key attribute */ if (key->keysz == uppnkeyatts) return key->scantid == NULL && childheaptid != NULL; return key->keysz < uppnkeyatts; } return cmp < 0; } /* * Given a block number of a B-Tree page, return page in palloc()'d memory. * While at it, perform some basic checks of the page. * * There is never an attempt to get a consistent view of multiple pages using * multiple concurrent buffer locks; in general, we only acquire a single pin * and buffer lock at a time, which is often all that the nbtree code requires. * (Actually, bt_recheck_sibling_links couples buffer locks, which is the only * exception to this general rule.) * * Operating on a copy of the page is useful because it prevents control * getting stuck in an uninterruptible state when an underlying operator class * misbehaves. */ static Page palloc_btree_page(BtreeCheckState *state, BlockNumber blocknum) { Buffer buffer; Page page; BTPageOpaque opaque; OffsetNumber maxoffset; page = palloc(BLCKSZ); /* * We copy the page into local storage to avoid holding pin on the buffer * longer than we must. */ buffer = ReadBufferExtended(state->rel, MAIN_FORKNUM, blocknum, RBM_NORMAL, state->checkstrategy); LockBuffer(buffer, BT_READ); /* * Perform the same basic sanity checking that nbtree itself performs for * every page: */ _bt_checkpage(state->rel, buffer); /* Only use copy of page in palloc()'d memory */ memcpy(page, BufferGetPage(buffer), BLCKSZ); UnlockReleaseBuffer(buffer); opaque = BTPageGetOpaque(page); if (P_ISMETA(opaque) && blocknum != BTREE_METAPAGE) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("invalid meta page found at block %u in index \"%s\"", blocknum, RelationGetRelationName(state->rel)))); /* Check page from block that ought to be meta page */ if (blocknum == BTREE_METAPAGE) { BTMetaPageData *metad = BTPageGetMeta(page); if (!P_ISMETA(opaque) || metad->btm_magic != BTREE_MAGIC) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("index \"%s\" meta page is corrupt", RelationGetRelationName(state->rel)))); if (metad->btm_version < BTREE_MIN_VERSION || metad->btm_version > BTREE_VERSION) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("version mismatch in index \"%s\": file version %d, " "current version %d, minimum supported version %d", RelationGetRelationName(state->rel), metad->btm_version, BTREE_VERSION, BTREE_MIN_VERSION))); /* Finished with metapage checks */ return page; } /* * Deleted pages that still use the old 32-bit XID representation have no * sane "level" field because they type pun the field, but all other pages * (including pages deleted on Postgres 14+) have a valid value. */ if (!P_ISDELETED(opaque) || P_HAS_FULLXID(opaque)) { /* Okay, no reason not to trust btpo_level field from page */ if (P_ISLEAF(opaque) && opaque->btpo_level != 0) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg_internal("invalid leaf page level %u for block %u in index \"%s\"", opaque->btpo_level, blocknum, RelationGetRelationName(state->rel)))); if (!P_ISLEAF(opaque) && opaque->btpo_level == 0) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg_internal("invalid internal page level 0 for block %u in index \"%s\"", blocknum, RelationGetRelationName(state->rel)))); } /* * Sanity checks for number of items on page. * * As noted at the beginning of _bt_binsrch(), an internal page must have * children, since there must always be a negative infinity downlink * (there may also be a highkey). In the case of non-rightmost leaf * pages, there must be at least a highkey. The exceptions are deleted * pages, which contain no items. * * This is correct when pages are half-dead, since internal pages are * never half-dead, and leaf pages must have a high key when half-dead * (the rightmost page can never be deleted). It's also correct with * fully deleted pages: _bt_unlink_halfdead_page() doesn't change anything * about the target page other than setting the page as fully dead, and * setting its xact field. In particular, it doesn't change the sibling * links in the deletion target itself, since they're required when index * scans land on the deletion target, and then need to move right (or need * to move left, in the case of backward index scans). */ maxoffset = PageGetMaxOffsetNumber(page); if (maxoffset > MaxIndexTuplesPerPage) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("Number of items on block %u of index \"%s\" exceeds MaxIndexTuplesPerPage (%u)", blocknum, RelationGetRelationName(state->rel), MaxIndexTuplesPerPage))); if (!P_ISLEAF(opaque) && !P_ISDELETED(opaque) && maxoffset < P_FIRSTDATAKEY(opaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("internal block %u in index \"%s\" lacks high key and/or at least one downlink", blocknum, RelationGetRelationName(state->rel)))); if (P_ISLEAF(opaque) && !P_ISDELETED(opaque) && !P_RIGHTMOST(opaque) && maxoffset < P_HIKEY) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("non-rightmost leaf block %u in index \"%s\" lacks high key item", blocknum, RelationGetRelationName(state->rel)))); /* * In general, internal pages are never marked half-dead, except on * versions of Postgres prior to 9.4, where it can be valid transient * state. This state is nonetheless treated as corruption by VACUUM on * from version 9.4 on, so do the same here. See _bt_pagedel() for full * details. */ if (!P_ISLEAF(opaque) && P_ISHALFDEAD(opaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("internal page block %u in index \"%s\" is half-dead", blocknum, RelationGetRelationName(state->rel)), errhint("This can be caused by an interrupted VACUUM in version 9.3 or older, before upgrade. Please REINDEX it."))); /* * Check that internal pages have no garbage items, and that no page has * an invalid combination of deletion-related page level flags */ if (!P_ISLEAF(opaque) && P_HAS_GARBAGE(opaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg_internal("internal page block %u in index \"%s\" has garbage items", blocknum, RelationGetRelationName(state->rel)))); if (P_HAS_FULLXID(opaque) && !P_ISDELETED(opaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg_internal("full transaction id page flag appears in non-deleted block %u in index \"%s\"", blocknum, RelationGetRelationName(state->rel)))); if (P_ISDELETED(opaque) && P_ISHALFDEAD(opaque)) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg_internal("deleted page block %u in index \"%s\" is half-dead", blocknum, RelationGetRelationName(state->rel)))); return page; } /* * _bt_mkscankey() wrapper that automatically prevents insertion scankey from * being considered greater than the pivot tuple that its values originated * from (or some other identical pivot tuple) in the common case where there * are truncated/minus infinity attributes. Without this extra step, there * are forms of corruption that amcheck could theoretically fail to report. * * For example, invariant_g_offset() might miss a cross-page invariant failure * on an internal level if the scankey built from the first item on the * target's right sibling page happened to be equal to (not greater than) the * last item on target page. The !backward tiebreaker in _bt_compare() might * otherwise cause amcheck to assume (rather than actually verify) that the * scankey is greater. */ static inline BTScanInsert bt_mkscankey_pivotsearch(Relation rel, IndexTuple itup) { BTScanInsert skey; skey = _bt_mkscankey(rel, itup); skey->backward = true; return skey; } /* * PageGetItemId() wrapper that validates returned line pointer. * * Buffer page/page item access macros generally trust that line pointers are * not corrupt, which might cause problems for verification itself. For * example, there is no bounds checking in PageGetItem(). Passing it a * corrupt line pointer can cause it to return a tuple/pointer that is unsafe * to dereference. * * Validating line pointers before tuples avoids undefined behavior and * assertion failures with corrupt indexes, making the verification process * more robust and predictable. */ static ItemId PageGetItemIdCareful(BtreeCheckState *state, BlockNumber block, Page page, OffsetNumber offset) { ItemId itemid = PageGetItemId(page, offset); if (ItemIdGetOffset(itemid) + ItemIdGetLength(itemid) > BLCKSZ - MAXALIGN(sizeof(BTPageOpaqueData))) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("line pointer points past end of tuple space in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Index tid=(%u,%u) lp_off=%u, lp_len=%u lp_flags=%u.", block, offset, ItemIdGetOffset(itemid), ItemIdGetLength(itemid), ItemIdGetFlags(itemid)))); /* * Verify that line pointer isn't LP_REDIRECT or LP_UNUSED, since nbtree * never uses either. Verify that line pointer has storage, too, since * even LP_DEAD items should within nbtree. */ if (ItemIdIsRedirected(itemid) || !ItemIdIsUsed(itemid) || ItemIdGetLength(itemid) == 0) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("invalid line pointer storage in index \"%s\"", RelationGetRelationName(state->rel)), errdetail_internal("Index tid=(%u,%u) lp_off=%u, lp_len=%u lp_flags=%u.", block, offset, ItemIdGetOffset(itemid), ItemIdGetLength(itemid), ItemIdGetFlags(itemid)))); return itemid; } /* * BTreeTupleGetHeapTID() wrapper that enforces that a heap TID is present in * cases where that is mandatory (i.e. for non-pivot tuples) */ static inline ItemPointer BTreeTupleGetHeapTIDCareful(BtreeCheckState *state, IndexTuple itup, bool nonpivot) { ItemPointer htid; /* * Caller determines whether this is supposed to be a pivot or non-pivot * tuple using page type and item offset number. Verify that tuple * metadata agrees with this. */ Assert(state->heapkeyspace); if (BTreeTupleIsPivot(itup) && nonpivot) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg_internal("block %u or its right sibling block or child block in index \"%s\" has unexpected pivot tuple", state->targetblock, RelationGetRelationName(state->rel)))); if (!BTreeTupleIsPivot(itup) && !nonpivot) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg_internal("block %u or its right sibling block or child block in index \"%s\" has unexpected non-pivot tuple", state->targetblock, RelationGetRelationName(state->rel)))); htid = BTreeTupleGetHeapTID(itup); if (!ItemPointerIsValid(htid) && nonpivot) ereport(ERROR, (errcode(ERRCODE_INDEX_CORRUPTED), errmsg("block %u or its right sibling block or child block in index \"%s\" contains non-pivot tuple that lacks a heap TID", state->targetblock, RelationGetRelationName(state->rel)))); return htid; } /* * Return the "pointed to" TID for itup, which is used to generate a * descriptive error message. itup must be a "data item" tuple (it wouldn't * make much sense to call here with a high key tuple, since there won't be a * valid downlink/block number to display). * * Returns either a heap TID (which will be the first heap TID in posting list * if itup is posting list tuple), or a TID that contains downlink block * number, plus some encoded metadata (e.g., the number of attributes present * in itup). */ static inline ItemPointer BTreeTupleGetPointsToTID(IndexTuple itup) { /* * Rely on the assumption that !heapkeyspace internal page data items will * correctly return TID with downlink here -- BTreeTupleGetHeapTID() won't * recognize it as a pivot tuple, but everything still works out because * the t_tid field is still returned */ if (!BTreeTupleIsPivot(itup)) return BTreeTupleGetHeapTID(itup); /* Pivot tuple returns TID with downlink block (heapkeyspace variant) */ return &itup->t_tid; } contrib/auth_delay/Makefile
New file @@ -0,0 +1,15 @@ # contrib/auth_delay/Makefile MODULES = auth_delay PGFILEDESC = "auth_delay - delay authentication failure reports" ifdef USE_PGXS PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) else subdir = contrib/auth_delay top_builddir = ../.. include $(top_builddir)/src/Makefile.global include $(top_srcdir)/contrib/contrib-global.mk endif contrib/auth_delay/auth_delay.c
New file @@ -0,0 +1,75 @@ /* ------------------------------------------------------------------------- * * auth_delay.c * * Copyright (c) 2010-2025, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/auth_delay/auth_delay.c * * ------------------------------------------------------------------------- */ #include "postgres.h" #include <limits.h> #include "libpq/auth.h" #include "utils/guc.h" PG_MODULE_MAGIC_EXT( .name = "auth_delay", .version = PG_VERSION ); /* GUC Variables */ static int auth_delay_milliseconds = 0; /* Original Hook */ static ClientAuthentication_hook_type original_client_auth_hook = NULL; /* * Check authentication */ static void auth_delay_checks(Port *port, int status) { /* * Any other plugins which use ClientAuthentication_hook. */ if (original_client_auth_hook) original_client_auth_hook(port, status); /* * Inject a short delay if authentication failed. */ if (status != STATUS_OK) { pg_usleep(1000L * auth_delay_milliseconds); } } /* * Module Load Callback */ void _PG_init(void) { /* Define custom GUC variables */ DefineCustomIntVariable("auth_delay.milliseconds", "Milliseconds to delay before reporting authentication failure", NULL, &auth_delay_milliseconds, 0, 0, INT_MAX / 1000, PGC_SIGHUP, GUC_UNIT_MS, NULL, NULL, NULL); MarkGUCPrefixReserved("auth_delay"); /* Install Hooks */ original_client_auth_hook = ClientAuthentication_hook; ClientAuthentication_hook = auth_delay_checks; } Diff truncated after the above file
contrib/auth_delay/meson.build contrib/auto_dump/Makefile contrib/auto_dump/auto_dump--1.0--1.1.sql contrib/auto_dump/auto_dump--1.0.sql contrib/auto_dump/auto_dump.c contrib/auto_dump/auto_dump.control contrib/auto_dump/meson.build contrib/auto_explain/.gitignore contrib/auto_explain/Makefile contrib/auto_explain/auto_explain.c contrib/auto_explain/expected/alter_reset.out contrib/auto_explain/meson.build contrib/auto_explain/sql/alter_reset.sql contrib/auto_explain/t/001_auto_explain.pl contrib/basebackup_to_shell/.gitignore contrib/basebackup_to_shell/Makefile contrib/basebackup_to_shell/basebackup_to_shell.c contrib/basebackup_to_shell/meson.build contrib/basebackup_to_shell/t/001_basic.pl contrib/basic_archive/.gitignore contrib/basic_archive/Makefile contrib/basic_archive/basic_archive.c contrib/basic_archive/basic_archive.conf contrib/basic_archive/expected/basic_archive.out contrib/basic_archive/meson.build contrib/basic_archive/sql/basic_archive.sql contrib/bloom/.gitignore contrib/bloom/Makefile contrib/bloom/blcost.c contrib/bloom/blinsert.c contrib/bloom/bloom--1.0.sql contrib/bloom/bloom.control contrib/bloom/bloom.h contrib/bloom/blscan.c contrib/bloom/blutils.c contrib/bloom/blvacuum.c contrib/bloom/blvalidate.c contrib/bloom/expected/bloom.out contrib/bloom/meson.build contrib/bloom/sql/bloom.sql contrib/bloom/t/001_wal.pl contrib/bool_plperl/.gitignore contrib/bool_plperl/Makefile contrib/bool_plperl/bool_plperl--1.0.sql contrib/bool_plperl/bool_plperl.c contrib/bool_plperl/bool_plperl.control contrib/bool_plperl/bool_plperlu--1.0.sql contrib/bool_plperl/bool_plperlu.control contrib/bool_plperl/expected/bool_plperl.out contrib/bool_plperl/expected/bool_plperlu.out contrib/bool_plperl/meson.build contrib/bool_plperl/sql/bool_plperl.sql contrib/bool_plperl/sql/bool_plperlu.sql contrib/btree_gin/.gitignore contrib/btree_gin/Makefile contrib/btree_gin/btree_gin--1.0--1.1.sql contrib/btree_gin/btree_gin--1.0.sql contrib/btree_gin/btree_gin--1.1--1.2.sql contrib/btree_gin/btree_gin--1.2--1.3.sql contrib/btree_gin/btree_gin.c contrib/btree_gin/btree_gin.control contrib/btree_gin/expected/bit.out contrib/btree_gin/expected/bool.out contrib/btree_gin/expected/bpchar.out contrib/btree_gin/expected/bytea.out contrib/btree_gin/expected/char.out contrib/btree_gin/expected/cidr.out contrib/btree_gin/expected/date.out contrib/btree_gin/expected/enum.out contrib/btree_gin/expected/float4.out contrib/btree_gin/expected/float8.out contrib/btree_gin/expected/inet.out contrib/btree_gin/expected/install_btree_gin.out contrib/btree_gin/expected/int2.out contrib/btree_gin/expected/int4.out contrib/btree_gin/expected/int8.out contrib/btree_gin/expected/interval.out contrib/btree_gin/expected/macaddr.out contrib/btree_gin/expected/macaddr8.out contrib/btree_gin/expected/money.out contrib/btree_gin/expected/name.out contrib/btree_gin/expected/numeric.out contrib/btree_gin/expected/oid.out contrib/btree_gin/expected/text.out contrib/btree_gin/expected/time.out contrib/btree_gin/expected/timestamp.out contrib/btree_gin/expected/timestamptz.out contrib/btree_gin/expected/timetz.out contrib/btree_gin/expected/uuid.out contrib/btree_gin/expected/varbit.out contrib/btree_gin/expected/varchar.out contrib/btree_gin/meson.build contrib/btree_gin/sql/bit.sql contrib/btree_gin/sql/bool.sql contrib/btree_gin/sql/bpchar.sql contrib/btree_gin/sql/bytea.sql contrib/btree_gin/sql/char.sql contrib/btree_gin/sql/cidr.sql contrib/btree_gin/sql/date.sql contrib/btree_gin/sql/enum.sql contrib/btree_gin/sql/float4.sql contrib/btree_gin/sql/float8.sql contrib/btree_gin/sql/inet.sql contrib/btree_gin/sql/install_btree_gin.sql contrib/btree_gin/sql/int2.sql contrib/btree_gin/sql/int4.sql contrib/btree_gin/sql/int8.sql contrib/btree_gin/sql/interval.sql contrib/btree_gin/sql/macaddr.sql contrib/btree_gin/sql/macaddr8.sql contrib/btree_gin/sql/money.sql contrib/btree_gin/sql/name.sql contrib/btree_gin/sql/numeric.sql contrib/btree_gin/sql/oid.sql contrib/btree_gin/sql/text.sql contrib/btree_gin/sql/time.sql contrib/btree_gin/sql/timestamp.sql contrib/btree_gin/sql/timestamptz.sql contrib/btree_gin/sql/timetz.sql contrib/btree_gin/sql/uuid.sql contrib/btree_gin/sql/varbit.sql contrib/btree_gin/sql/varchar.sql contrib/btree_gist/.gitignore contrib/btree_gist/Makefile contrib/btree_gist/btree_bit.c contrib/btree_gist/btree_bool.c contrib/btree_gist/btree_bytea.c contrib/btree_gist/btree_cash.c contrib/btree_gist/btree_date.c contrib/btree_gist/btree_enum.c contrib/btree_gist/btree_float4.c contrib/btree_gist/btree_float8.c contrib/btree_gist/btree_gist--1.0--1.1.sql contrib/btree_gist/btree_gist--1.1--1.2.sql contrib/btree_gist/btree_gist--1.2--1.3.sql contrib/btree_gist/btree_gist--1.2.sql contrib/btree_gist/btree_gist--1.3--1.4.sql contrib/btree_gist/btree_gist--1.4--1.5.sql contrib/btree_gist/btree_gist--1.5--1.6.sql contrib/btree_gist/btree_gist--1.6--1.7.sql contrib/btree_gist/btree_gist--1.7--1.8.sql contrib/btree_gist/btree_gist.c contrib/btree_gist/btree_gist.control contrib/btree_gist/btree_gist.h contrib/btree_gist/btree_inet.c contrib/btree_gist/btree_int2.c contrib/btree_gist/btree_int4.c contrib/btree_gist/btree_int8.c contrib/btree_gist/btree_interval.c contrib/btree_gist/btree_macaddr.c contrib/btree_gist/btree_macaddr8.c contrib/btree_gist/btree_numeric.c contrib/btree_gist/btree_oid.c contrib/btree_gist/btree_text.c contrib/btree_gist/btree_time.c contrib/btree_gist/btree_ts.c contrib/btree_gist/btree_utils_num.c contrib/btree_gist/btree_utils_num.h contrib/btree_gist/btree_utils_var.c contrib/btree_gist/btree_utils_var.h contrib/btree_gist/btree_uuid.c contrib/btree_gist/data/bit.data contrib/btree_gist/data/cash.data contrib/btree_gist/data/char.data contrib/btree_gist/data/date.data contrib/btree_gist/data/enum.data contrib/btree_gist/data/float4.data contrib/btree_gist/data/float8.data contrib/btree_gist/data/inet.data contrib/btree_gist/data/int2.data contrib/btree_gist/data/int4.data contrib/btree_gist/data/int8.data contrib/btree_gist/data/interval.data contrib/btree_gist/data/macaddr.data contrib/btree_gist/data/numeric.data contrib/btree_gist/data/text.data contrib/btree_gist/data/time.data contrib/btree_gist/data/timestamp.data contrib/btree_gist/data/timestamptz.data contrib/btree_gist/data/timetz.data contrib/btree_gist/data/uuid.data contrib/btree_gist/data/varbit.data contrib/btree_gist/expected/bit.out contrib/btree_gist/expected/bool.out contrib/btree_gist/expected/bytea.out contrib/btree_gist/expected/cash.out contrib/btree_gist/expected/char.out contrib/btree_gist/expected/char_1.out contrib/btree_gist/expected/cidr.out contrib/btree_gist/expected/date.out contrib/btree_gist/expected/enum.out contrib/btree_gist/expected/float4.out contrib/btree_gist/expected/float8.out contrib/btree_gist/expected/inet.out contrib/btree_gist/expected/init.out contrib/btree_gist/expected/int2.out contrib/btree_gist/expected/int4.out contrib/btree_gist/expected/int8.out contrib/btree_gist/expected/interval.out contrib/btree_gist/expected/macaddr.out contrib/btree_gist/expected/macaddr8.out contrib/btree_gist/expected/not_equal.out contrib/btree_gist/expected/numeric.out contrib/btree_gist/expected/oid.out contrib/btree_gist/expected/partitions.out contrib/btree_gist/expected/stratnum.out contrib/btree_gist/expected/text.out contrib/btree_gist/expected/text_1.out contrib/btree_gist/expected/time.out contrib/btree_gist/expected/timestamp.out contrib/btree_gist/expected/timestamptz.out contrib/btree_gist/expected/timetz.out contrib/btree_gist/expected/uuid.out contrib/btree_gist/expected/varbit.out contrib/btree_gist/expected/varchar.out contrib/btree_gist/expected/varchar_1.out contrib/btree_gist/expected/without_overlaps.out contrib/btree_gist/meson.build contrib/btree_gist/sql/bit.sql contrib/btree_gist/sql/bool.sql contrib/btree_gist/sql/bytea.sql contrib/btree_gist/sql/cash.sql contrib/btree_gist/sql/char.sql contrib/btree_gist/sql/cidr.sql contrib/btree_gist/sql/date.sql contrib/btree_gist/sql/enum.sql contrib/btree_gist/sql/float4.sql contrib/btree_gist/sql/float8.sql contrib/btree_gist/sql/inet.sql contrib/btree_gist/sql/init.sql contrib/btree_gist/sql/int2.sql contrib/btree_gist/sql/int4.sql contrib/btree_gist/sql/int8.sql contrib/btree_gist/sql/interval.sql contrib/btree_gist/sql/macaddr.sql contrib/btree_gist/sql/macaddr8.sql contrib/btree_gist/sql/not_equal.sql contrib/btree_gist/sql/numeric.sql contrib/btree_gist/sql/oid.sql contrib/btree_gist/sql/partitions.sql contrib/btree_gist/sql/stratnum.sql contrib/btree_gist/sql/text.sql contrib/btree_gist/sql/time.sql contrib/btree_gist/sql/timestamp.sql contrib/btree_gist/sql/timestamptz.sql contrib/btree_gist/sql/timetz.sql contrib/btree_gist/sql/uuid.sql contrib/btree_gist/sql/varbit.sql contrib/btree_gist/sql/varchar.sql contrib/btree_gist/sql/without_overlaps.sql contrib/check_build_config.sh contrib/citext/.gitignore contrib/citext/Makefile contrib/citext/citext--1.0--1.1.sql contrib/citext/citext--1.1--1.2.sql contrib/citext/citext--1.2--1.3.sql contrib/citext/citext--1.3--1.4.sql contrib/citext/citext--1.4--1.5.sql contrib/citext/citext--1.4.sql contrib/citext/citext--1.5--1.6.sql contrib/citext/citext--1.6--1.7.sql contrib/citext/citext--1.7--1.8.sql contrib/citext/citext.c contrib/citext/citext.control contrib/citext/expected/citext.out contrib/citext/expected/citext_1.out contrib/citext/expected/citext_utf8.out contrib/citext/expected/citext_utf8_1.out contrib/citext/expected/create_index_acl.out contrib/citext/meson.build contrib/citext/sql/citext.sql contrib/citext/sql/citext_utf8.sql contrib/citext/sql/create_index_acl.sql contrib/contrib-global.mk contrib/cube/.gitignore contrib/cube/CHANGES contrib/cube/Makefile contrib/cube/cube--1.0--1.1.sql contrib/cube/cube--1.1--1.2.sql contrib/cube/cube--1.2--1.3.sql contrib/cube/cube--1.2.sql contrib/cube/cube--1.3--1.4.sql contrib/cube/cube--1.4--1.5.sql contrib/cube/cube.c contrib/cube/cube.control contrib/cube/cubedata.h contrib/cube/cubeparse.y contrib/cube/cubescan.l contrib/cube/data/test_cube.data contrib/cube/expected/cube.out contrib/cube/expected/cube_sci.out contrib/cube/meson.build contrib/cube/sql/cube.sql contrib/cube/sql/cube_sci.sql contrib/dbcopies_decoding/.gitignore contrib/dbcopies_decoding/Makefile contrib/dbcopies_decoding/dbcopies_decoding.c contrib/dbcopies_decoding/expected/simple.out contrib/dbcopies_decoding/logical.conf contrib/dbcopies_decoding/meson.build contrib/dbcopies_decoding/sql/simple.sql contrib/dblink/.gitignore contrib/dblink/Makefile contrib/dblink/dblink--1.0--1.1.sql contrib/dblink/dblink--1.1--1.2.sql contrib/dblink/dblink--1.2.sql contrib/dblink/dblink.c contrib/dblink/dblink.control contrib/dblink/expected/dblink.out contrib/dblink/meson.build contrib/dblink/pg_service.conf contrib/dblink/sql/dblink.sql contrib/dblink/t/001_auth_scram.pl contrib/dict_int/.gitignore contrib/dict_int/Makefile contrib/dict_int/dict_int--1.0.sql contrib/dict_int/dict_int.c contrib/dict_int/dict_int.control contrib/dict_int/expected/dict_int.out contrib/dict_int/meson.build contrib/dict_int/sql/dict_int.sql contrib/dict_xsyn/.gitignore contrib/dict_xsyn/Makefile contrib/dict_xsyn/dict_xsyn--1.0.sql contrib/dict_xsyn/dict_xsyn.c contrib/dict_xsyn/dict_xsyn.control contrib/dict_xsyn/expected/dict_xsyn.out contrib/dict_xsyn/meson.build contrib/dict_xsyn/sql/dict_xsyn.sql contrib/dict_xsyn/xsyn_sample.rules contrib/earthdistance/.gitignore contrib/earthdistance/Makefile contrib/earthdistance/earthdistance--1.0--1.1.sql contrib/earthdistance/earthdistance--1.1--1.2.sql contrib/earthdistance/earthdistance--1.1.sql contrib/earthdistance/earthdistance.c contrib/earthdistance/earthdistance.control contrib/earthdistance/expected/earthdistance.out contrib/earthdistance/meson.build contrib/earthdistance/sql/earthdistance.sql contrib/fasttrun/Makefile contrib/fasttrun/README.fasttrun contrib/fasttrun/expected/fasttrun.out contrib/fasttrun/fasttrun--2.0.sql contrib/fasttrun/fasttrun--unpackaged--2.0.sql contrib/fasttrun/fasttrun.c contrib/fasttrun/fasttrun.control contrib/fasttrun/meson.build contrib/fasttrun/sql/fasttrun.sql contrib/file_fdw/.gitignore contrib/file_fdw/Makefile contrib/file_fdw/data/agg.bad contrib/file_fdw/data/agg.csv contrib/file_fdw/data/agg.data contrib/file_fdw/data/copy_default.csv contrib/file_fdw/data/list1.csv contrib/file_fdw/data/list2.bad contrib/file_fdw/data/list2.csv contrib/file_fdw/data/text.csv contrib/file_fdw/expected/file_fdw.out contrib/file_fdw/file_fdw--1.0.sql contrib/file_fdw/file_fdw.c contrib/file_fdw/file_fdw.control contrib/file_fdw/meson.build contrib/file_fdw/sql/file_fdw.sql contrib/fulleq/.gitignore contrib/fulleq/Makefile contrib/fulleq/README.fulleq contrib/fulleq/expected/fulleq.out contrib/fulleq/fulleq--2.0.sql.in contrib/fulleq/fulleq--unpackaged--2.0.sql.in contrib/fulleq/fulleq.c contrib/fulleq/fulleq.control contrib/fulleq/generate.sh contrib/fulleq/meson.build contrib/fulleq/sql/fulleq.sql contrib/fuzzystrmatch/.gitignore contrib/fuzzystrmatch/Makefile contrib/fuzzystrmatch/daitch_mokotoff.c contrib/fuzzystrmatch/daitch_mokotoff_header.pl contrib/fuzzystrmatch/dmetaphone.c contrib/fuzzystrmatch/expected/fuzzystrmatch.out contrib/fuzzystrmatch/expected/fuzzystrmatch_utf8.out contrib/fuzzystrmatch/expected/fuzzystrmatch_utf8_1.out contrib/fuzzystrmatch/fuzzystrmatch--1.0--1.1.sql contrib/fuzzystrmatch/fuzzystrmatch--1.1--1.2.sql contrib/fuzzystrmatch/fuzzystrmatch--1.1.sql contrib/fuzzystrmatch/fuzzystrmatch.c contrib/fuzzystrmatch/fuzzystrmatch.control contrib/fuzzystrmatch/meson.build contrib/fuzzystrmatch/sql/fuzzystrmatch.sql contrib/fuzzystrmatch/sql/fuzzystrmatch_utf8.sql contrib/hstore/.gitignore contrib/hstore/Makefile contrib/hstore/data/hstore.data contrib/hstore/expected/hstore.out contrib/hstore/expected/hstore_utf8.out contrib/hstore/expected/hstore_utf8_1.out contrib/hstore/hstore--1.1--1.2.sql contrib/hstore/hstore--1.2--1.3.sql contrib/hstore/hstore--1.3--1.4.sql contrib/hstore/hstore--1.4--1.5.sql contrib/hstore/hstore--1.4.sql contrib/hstore/hstore--1.5--1.6.sql contrib/hstore/hstore--1.6--1.7.sql contrib/hstore/hstore--1.7--1.8.sql contrib/hstore/hstore.control contrib/hstore/hstore.h contrib/hstore/hstore_compat.c contrib/hstore/hstore_gin.c contrib/hstore/hstore_gist.c contrib/hstore/hstore_io.c contrib/hstore/hstore_op.c contrib/hstore/hstore_subs.c contrib/hstore/meson.build contrib/hstore/sql/hstore.sql contrib/hstore/sql/hstore_utf8.sql contrib/hstore_plperl/.gitignore contrib/hstore_plperl/Makefile contrib/hstore_plperl/expected/create_transform.out contrib/hstore_plperl/expected/hstore_plperl.out contrib/hstore_plperl/expected/hstore_plperlu.out contrib/hstore_plperl/hstore_plperl--1.0.sql contrib/hstore_plperl/hstore_plperl.c contrib/hstore_plperl/hstore_plperl.control contrib/hstore_plperl/hstore_plperlu--1.0.sql contrib/hstore_plperl/hstore_plperlu.control contrib/hstore_plperl/meson.build contrib/hstore_plperl/sql/create_transform.sql contrib/hstore_plperl/sql/hstore_plperl.sql contrib/hstore_plperl/sql/hstore_plperlu.sql contrib/hstore_plpython/.gitignore contrib/hstore_plpython/Makefile contrib/hstore_plpython/expected/hstore_plpython.out contrib/hstore_plpython/hstore_plpython.c contrib/hstore_plpython/hstore_plpython3u--1.0.sql contrib/hstore_plpython/hstore_plpython3u.control contrib/hstore_plpython/meson.build contrib/hstore_plpython/sql/hstore_plpython.sql contrib/http/.editorconfig contrib/http/.gitignore contrib/http/LICENSE.md contrib/http/META.json contrib/http/Makefile contrib/http/README.md contrib/http/ci/pg_hba.conf contrib/http/diasoft_version.info contrib/http/expected/http-ver.out contrib/http/expected/http.out contrib/http/http--1.0--1.1.sql contrib/http/http--1.1--1.2.sql contrib/http/http--1.2--1.3.sql contrib/http/http--1.3--1.4.sql contrib/http/http--1.4--1.5.sql contrib/http/http--1.5--1.6.sql contrib/http/http--1.6--1.6.1.sql contrib/http/http--1.6.1--1.6.sql contrib/http/http--1.6.sql contrib/http/http.c contrib/http/http.control contrib/http/sql/http-ver.sql contrib/http/sql/http.sql contrib/intagg/Makefile contrib/intagg/intagg--1.0--1.1.sql contrib/intagg/intagg--1.1.sql contrib/intagg/intagg.control contrib/intagg/meson.build contrib/intarray/.gitignore contrib/intarray/Makefile contrib/intarray/_int.h contrib/intarray/_int_bool.c contrib/intarray/_int_gin.c contrib/intarray/_int_gist.c contrib/intarray/_int_op.c contrib/intarray/_int_selfuncs.c contrib/intarray/_int_tool.c contrib/intarray/_intbig_gist.c contrib/intarray/bench/bench.pl contrib/intarray/bench/create_test.pl contrib/intarray/data/test__int.data contrib/intarray/expected/_int.out contrib/intarray/intarray--1.0--1.1.sql contrib/intarray/intarray--1.1--1.2.sql contrib/intarray/intarray--1.2--1.3.sql contrib/intarray/intarray--1.2.sql contrib/intarray/intarray--1.3--1.4.sql contrib/intarray/intarray--1.4--1.5.sql contrib/intarray/intarray.control contrib/intarray/meson.build contrib/intarray/sql/_int.sql contrib/isn/.gitignore contrib/isn/EAN13.h contrib/isn/ISBN.h contrib/isn/ISMN.h contrib/isn/ISSN.h contrib/isn/Makefile contrib/isn/UPC.h contrib/isn/expected/isn.out contrib/isn/isn--1.0--1.1.sql contrib/isn/isn--1.1--1.2.sql contrib/isn/isn--1.1.sql contrib/isn/isn--1.2--1.3.sql contrib/isn/isn.c contrib/isn/isn.control contrib/isn/isn.h contrib/isn/meson.build contrib/isn/sql/isn.sql contrib/jsonb_plperl/.gitignore contrib/jsonb_plperl/Makefile contrib/jsonb_plperl/expected/jsonb_plperl.out contrib/jsonb_plperl/expected/jsonb_plperlu.out contrib/jsonb_plperl/jsonb_plperl--1.0.sql contrib/jsonb_plperl/jsonb_plperl.c contrib/jsonb_plperl/jsonb_plperl.control contrib/jsonb_plperl/jsonb_plperlu--1.0.sql contrib/jsonb_plperl/jsonb_plperlu.control contrib/jsonb_plperl/meson.build contrib/jsonb_plperl/sql/jsonb_plperl.sql contrib/jsonb_plperl/sql/jsonb_plperlu.sql contrib/jsonb_plpython/.gitignore contrib/jsonb_plpython/Makefile contrib/jsonb_plpython/expected/jsonb_plpython.out contrib/jsonb_plpython/jsonb_plpython.c contrib/jsonb_plpython/jsonb_plpython3u--1.0.sql contrib/jsonb_plpython/jsonb_plpython3u.control contrib/jsonb_plpython/meson.build contrib/jsonb_plpython/sql/jsonb_plpython.sql contrib/lo/.gitignore contrib/lo/Makefile contrib/lo/expected/lo.out contrib/lo/lo--1.0--1.1.sql contrib/lo/lo--1.1--1.2.sql contrib/lo/lo--1.1.sql contrib/lo/lo.c contrib/lo/lo.control contrib/lo/lo_test.sql contrib/lo/meson.build contrib/lo/sql/lo.sql contrib/ltree/.gitignore contrib/ltree/Makefile contrib/ltree/_ltree_gist.c contrib/ltree/_ltree_op.c contrib/ltree/crc32.c contrib/ltree/crc32.h contrib/ltree/data/_ltree.data contrib/ltree/data/ltree.data contrib/ltree/expected/ltree.out contrib/ltree/lquery_op.c contrib/ltree/ltree--1.0--1.1.sql contrib/ltree/ltree--1.1--1.2.sql contrib/ltree/ltree--1.1.sql contrib/ltree/ltree--1.2--1.3.sql contrib/ltree/ltree.control contrib/ltree/ltree.h contrib/ltree/ltree_gist.c contrib/ltree/ltree_io.c contrib/ltree/ltree_op.c contrib/ltree/ltreetest.sql contrib/ltree/ltxtquery_io.c contrib/ltree/ltxtquery_op.c contrib/ltree/meson.build contrib/ltree/sql/ltree.sql contrib/ltree_plpython/.gitignore contrib/ltree_plpython/Makefile contrib/ltree_plpython/expected/ltree_plpython.out contrib/ltree_plpython/ltree_plpython.c contrib/ltree_plpython/ltree_plpython3u--1.0.sql contrib/ltree_plpython/ltree_plpython3u.control contrib/ltree_plpython/meson.build contrib/ltree_plpython/sql/ltree_plpython.sql contrib/mchar/Changes contrib/mchar/Makefile contrib/mchar/README.mchar contrib/mchar/expected/compat.out contrib/mchar/expected/init.out contrib/mchar/expected/like.out contrib/mchar/expected/mchar.out contrib/mchar/expected/mm.out contrib/mchar/expected/mvarchar.out contrib/mchar/mchar--2.0--2.1.sql contrib/mchar/mchar--2.0.1--2.1.sql contrib/mchar/mchar--2.1--2.2.sql contrib/mchar/mchar--2.1.1--2.2.sql contrib/mchar/mchar--2.2--2.2.1.sql contrib/mchar/mchar--2.2.1.sql contrib/mchar/mchar--unpackaged--2.0.sql contrib/mchar/mchar.control contrib/mchar/mchar.h contrib/mchar/mchar_io.c contrib/mchar/mchar_like.c contrib/mchar/mchar_op.c contrib/mchar/mchar_proc.c contrib/mchar/mchar_recode.c contrib/mchar/meson.build contrib/mchar/sql/compat.sql contrib/mchar/sql/init.sql contrib/mchar/sql/like.sql contrib/mchar/sql/mchar.sql contrib/mchar/sql/mm.sql contrib/mchar/sql/mvarchar.sql contrib/meson.build contrib/oid2name/.gitignore contrib/oid2name/Makefile contrib/oid2name/meson.build contrib/oid2name/oid2name.c contrib/oid2name/t/001_basic.pl contrib/online_analyze/COPYRIGHT contrib/online_analyze/Makefile contrib/online_analyze/README.online_analyze contrib/online_analyze/meson.build contrib/online_analyze/online_analyze.c contrib/pageinspect/.gitignore contrib/pageinspect/Makefile contrib/pageinspect/brinfuncs.c contrib/pageinspect/btreefuncs.c contrib/pageinspect/expected/brin.out contrib/pageinspect/expected/btree.out contrib/pageinspect/expected/checksum.out contrib/pageinspect/expected/checksum_1.out contrib/pageinspect/expected/gin.out contrib/pageinspect/expected/gist.out contrib/pageinspect/expected/hash.out contrib/pageinspect/expected/oldextversions.out contrib/pageinspect/expected/page.out contrib/pageinspect/fsmfuncs.c contrib/pageinspect/ginfuncs.c contrib/pageinspect/gistfuncs.c contrib/pageinspect/hashfuncs.c contrib/pageinspect/heapfuncs.c contrib/pageinspect/meson.build contrib/pageinspect/pageinspect--1.0--1.1.sql contrib/pageinspect/pageinspect--1.1--1.2.sql contrib/pageinspect/pageinspect--1.10--1.11.sql contrib/pageinspect/pageinspect--1.11--1.12.sql contrib/pageinspect/pageinspect--1.12--1.13.sql contrib/pageinspect/pageinspect--1.2--1.3.sql contrib/pageinspect/pageinspect--1.3--1.4.sql contrib/pageinspect/pageinspect--1.4--1.5.sql contrib/pageinspect/pageinspect--1.5--1.6.sql contrib/pageinspect/pageinspect--1.5.sql contrib/pageinspect/pageinspect--1.6--1.7.sql contrib/pageinspect/pageinspect--1.7--1.8.sql contrib/pageinspect/pageinspect--1.8--1.9.sql contrib/pageinspect/pageinspect--1.9--1.10.sql contrib/pageinspect/pageinspect.control contrib/pageinspect/pageinspect.h contrib/pageinspect/rawpage.c contrib/pageinspect/sql/brin.sql contrib/pageinspect/sql/btree.sql contrib/pageinspect/sql/checksum.sql contrib/pageinspect/sql/gin.sql contrib/pageinspect/sql/gist.sql contrib/pageinspect/sql/hash.sql contrib/pageinspect/sql/oldextversions.sql contrib/pageinspect/sql/page.sql contrib/passwordcheck/.gitignore contrib/passwordcheck/Makefile contrib/passwordcheck/expected/passwordcheck.out contrib/passwordcheck/expected/passwordcheck_1.out contrib/passwordcheck/meson.build contrib/passwordcheck/passwordcheck.c contrib/passwordcheck/sql/passwordcheck.sql contrib/pg_buffercache/.gitignore contrib/pg_buffercache/Makefile contrib/pg_buffercache/expected/pg_buffercache.out contrib/pg_buffercache/expected/pg_buffercache_numa.out contrib/pg_buffercache/expected/pg_buffercache_numa_1.out contrib/pg_buffercache/meson.build contrib/pg_buffercache/pg_buffercache--1.0--1.1.sql contrib/pg_buffercache/pg_buffercache--1.1--1.2.sql contrib/pg_buffercache/pg_buffercache--1.2--1.3.sql contrib/pg_buffercache/pg_buffercache--1.2.sql contrib/pg_buffercache/pg_buffercache--1.3--1.4.sql contrib/pg_buffercache/pg_buffercache--1.4--1.5.sql contrib/pg_buffercache/pg_buffercache--1.5--1.6.sql contrib/pg_buffercache/pg_buffercache.control contrib/pg_buffercache/pg_buffercache_pages.c contrib/pg_buffercache/sql/pg_buffercache.sql contrib/pg_buffercache/sql/pg_buffercache_numa.sql contrib/pg_curl/.gitignore contrib/pg_curl/LICENSE contrib/pg_curl/META.json contrib/pg_curl/Makefile contrib/pg_curl/README.md contrib/pg_curl/README.pg_curl contrib/pg_curl/diasoft_addition.md contrib/pg_curl/diasoft_version.info contrib/pg_curl/expected/auth.out contrib/pg_curl/expected/auth_.out contrib/pg_curl/expected/http_methods.out contrib/pg_curl/expected/http_methods_.out contrib/pg_curl/expected/interrupt.out contrib/pg_curl/expected/interrupt_.out contrib/pg_curl/password_file.c contrib/pg_curl/pg_curl--1.0--2.0.sql contrib/pg_curl/pg_curl--1.0.sql contrib/pg_curl/pg_curl--2.0--2.1.sql contrib/pg_curl/pg_curl--2.0.sql contrib/pg_curl/pg_curl--2.1--2.2.sql contrib/pg_curl/pg_curl--2.1.sql contrib/pg_curl/pg_curl--2.2--2.3.sql contrib/pg_curl/pg_curl--2.2.sql contrib/pg_curl/pg_curl--2.3--2.4.sql contrib/pg_curl/pg_curl--2.3.sql contrib/pg_curl/pg_curl--2.4.sql contrib/pg_curl/pg_curl.c contrib/pg_curl/pg_curl.conf contrib/pg_curl/pg_curl.control contrib/pg_curl/sql/auth.sql contrib/pg_curl/sql/auth_.sql contrib/pg_curl/sql/http_methods.sql contrib/pg_curl/sql/http_methods_.sql contrib/pg_curl/sql/interrupt.sql contrib/pg_curl/sql/interrupt_.sql contrib/pg_freespacemap/.gitignore contrib/pg_freespacemap/Makefile contrib/pg_freespacemap/expected/pg_freespacemap.out contrib/pg_freespacemap/meson.build contrib/pg_freespacemap/pg_freespacemap--1.0--1.1.sql contrib/pg_freespacemap/pg_freespacemap--1.1--1.2.sql contrib/pg_freespacemap/pg_freespacemap--1.1.sql contrib/pg_freespacemap/pg_freespacemap--1.2--1.3.sql contrib/pg_freespacemap/pg_freespacemap.c contrib/pg_freespacemap/pg_freespacemap.conf contrib/pg_freespacemap/pg_freespacemap.control contrib/pg_freespacemap/sql/pg_freespacemap.sql contrib/pg_hint_plan/.gitattributes contrib/pg_hint_plan/.gitignore contrib/pg_hint_plan/COPYRIGHT contrib/pg_hint_plan/COPYRIGHT.postgresql contrib/pg_hint_plan/META.json contrib/pg_hint_plan/Makefile contrib/pg_hint_plan/README.md contrib/pg_hint_plan/SPECS/pg_hint_plan18.spec contrib/pg_hint_plan/core.c contrib/pg_hint_plan/data/data.csv contrib/pg_hint_plan/diasoft_version.info contrib/pg_hint_plan/docs/Makefile contrib/pg_hint_plan/docs/README contrib/pg_hint_plan/docs/conf.py contrib/pg_hint_plan/docs/description.md contrib/pg_hint_plan/docs/errors.md contrib/pg_hint_plan/docs/functional_limitations.md contrib/pg_hint_plan/docs/hint_details.md contrib/pg_hint_plan/docs/hint_list.md contrib/pg_hint_plan/docs/hint_table.md contrib/pg_hint_plan/docs/index.md contrib/pg_hint_plan/docs/installation.md contrib/pg_hint_plan/docs/locale/ja/LC_MESSAGES/description.po contrib/pg_hint_plan/docs/locale/ja/LC_MESSAGES/errors.po contrib/pg_hint_plan/docs/locale/ja/LC_MESSAGES/functional_limitations.po contrib/pg_hint_plan/docs/locale/ja/LC_MESSAGES/hint_details.po contrib/pg_hint_plan/docs/locale/ja/LC_MESSAGES/hint_list.po contrib/pg_hint_plan/docs/locale/ja/LC_MESSAGES/hint_table.po contrib/pg_hint_plan/docs/locale/ja/LC_MESSAGES/index.po contrib/pg_hint_plan/docs/locale/ja/LC_MESSAGES/installation.po contrib/pg_hint_plan/docs/locale/ja/LC_MESSAGES/requirements.po contrib/pg_hint_plan/docs/locale/ja/LC_MESSAGES/synopsis.po contrib/pg_hint_plan/docs/locale/ja/LC_MESSAGES/uninstallation.po contrib/pg_hint_plan/docs/make.bat contrib/pg_hint_plan/docs/requirements.in contrib/pg_hint_plan/docs/requirements.md contrib/pg_hint_plan/docs/requirements.txt contrib/pg_hint_plan/docs/synopsis.md contrib/pg_hint_plan/docs/uninstallation.md contrib/pg_hint_plan/expected/R_sample.out contrib/pg_hint_plan/expected/base_plan.out contrib/pg_hint_plan/expected/disable_index.out contrib/pg_hint_plan/expected/hint_table.out contrib/pg_hint_plan/expected/implicit_type_casting_mchar.out contrib/pg_hint_plan/expected/implicit_type_casting_numeric.out contrib/pg_hint_plan/expected/init.out contrib/pg_hint_plan/expected/init_new.out contrib/pg_hint_plan/expected/new_hints.out contrib/pg_hint_plan/expected/oldextversions.out contrib/pg_hint_plan/expected/pg_hint_plan.out contrib/pg_hint_plan/expected/plpgsql.out contrib/pg_hint_plan/expected/ut-A.out contrib/pg_hint_plan/expected/ut-G.out contrib/pg_hint_plan/expected/ut-J.out contrib/pg_hint_plan/expected/ut-L.out contrib/pg_hint_plan/expected/ut-R.out contrib/pg_hint_plan/expected/ut-S.out contrib/pg_hint_plan/expected/ut-T.out contrib/pg_hint_plan/expected/ut-W.out contrib/pg_hint_plan/expected/ut-fdw.out contrib/pg_hint_plan/expected/ut-fini.out contrib/pg_hint_plan/expected/ut-init.out contrib/pg_hint_plan/make_join_rel.c contrib/pg_hint_plan/pg_hint_plan--1.3.0--1.3.1.sql contrib/pg_hint_plan/pg_hint_plan--1.3.0.sql contrib/pg_hint_plan/pg_hint_plan--1.3.1--1.3.2.sql contrib/pg_hint_plan/pg_hint_plan--1.3.10--1.3.11.sql contrib/pg_hint_plan/pg_hint_plan--1.3.11--1.4.sql contrib/pg_hint_plan/pg_hint_plan--1.3.2--1.3.3.sql contrib/pg_hint_plan/pg_hint_plan--1.3.3--1.3.4.sql contrib/pg_hint_plan/pg_hint_plan--1.3.4--1.3.5.sql contrib/pg_hint_plan/pg_hint_plan--1.3.5--1.3.6.sql contrib/pg_hint_plan/pg_hint_plan--1.3.6--1.3.7.sql contrib/pg_hint_plan/pg_hint_plan--1.3.7--1.3.8.sql contrib/pg_hint_plan/pg_hint_plan--1.3.8--1.3.9.sql contrib/pg_hint_plan/pg_hint_plan--1.3.9--1.3.10.sql contrib/pg_hint_plan/pg_hint_plan--1.4--1.4.1.sql contrib/pg_hint_plan/pg_hint_plan--1.4.1--1.4.2.sql contrib/pg_hint_plan/pg_hint_plan--1.4.2--1.4.3.sql contrib/pg_hint_plan/pg_hint_plan--1.4.3--1.4.4.sql contrib/pg_hint_plan/pg_hint_plan--1.4.4--1.5.sql contrib/pg_hint_plan/pg_hint_plan--1.5--1.5.1.sql contrib/pg_hint_plan/pg_hint_plan--1.5.1--1.5.2.sql contrib/pg_hint_plan/pg_hint_plan--1.5.2--1.5.3.sql contrib/pg_hint_plan/pg_hint_plan--1.5.3--1.6.0.sql contrib/pg_hint_plan/pg_hint_plan--1.6.0--1.6.1.sql contrib/pg_hint_plan/pg_hint_plan--1.6.1--1.6.2.sql contrib/pg_hint_plan/pg_hint_plan--1.6.2--1.7.0.sql contrib/pg_hint_plan/pg_hint_plan--1.7.0--1.7.1.sql contrib/pg_hint_plan/pg_hint_plan--1.7.1--1.8.0.sql contrib/pg_hint_plan/pg_hint_plan.c contrib/pg_hint_plan/pg_hint_plan.conf contrib/pg_hint_plan/pg_hint_plan.control contrib/pg_hint_plan/query_scan.h contrib/pg_hint_plan/query_scan.l contrib/pg_hint_plan/query_scan_int.h contrib/pg_hint_plan/sql/base_plan.sql contrib/pg_hint_plan/sql/disable_index.sql contrib/pg_hint_plan/sql/hint_table.sql contrib/pg_hint_plan/sql/implicit_type_casting_mchar.sql contrib/pg_hint_plan/sql/implicit_type_casting_numeric.sql contrib/pg_hint_plan/sql/init.sql contrib/pg_hint_plan/sql/init_new.sql contrib/pg_hint_plan/sql/new_hints.sql contrib/pg_hint_plan/sql/oldextversions.sql contrib/pg_hint_plan/sql/pg_hint_plan.sql contrib/pg_hint_plan/sql/plpgsql.sql contrib/pg_hint_plan/sql/ut-A.sql contrib/pg_hint_plan/sql/ut-G.sql contrib/pg_hint_plan/sql/ut-J.sql contrib/pg_hint_plan/sql/ut-L.sql contrib/pg_hint_plan/sql/ut-R.sql contrib/pg_hint_plan/sql/ut-S.sql contrib/pg_hint_plan/sql/ut-T.sql contrib/pg_hint_plan/sql/ut-W.sql contrib/pg_hint_plan/sql/ut-fdw.sql contrib/pg_hint_plan/sql/ut-fini.sql contrib/pg_hint_plan/sql/ut-init.sql contrib/pg_hint_plan/typedefs.list contrib/pg_hint_plan/update_copied_funcs.pl contrib/pg_logicalinspect/.gitignore contrib/pg_logicalinspect/Makefile contrib/pg_logicalinspect/expected/logical_inspect.out contrib/pg_logicalinspect/expected/pg_logicalinspect.out contrib/pg_logicalinspect/logicalinspect.conf contrib/pg_logicalinspect/meson.build contrib/pg_logicalinspect/pg_logicalinspect--1.0.sql contrib/pg_logicalinspect/pg_logicalinspect.c contrib/pg_logicalinspect/pg_logicalinspect.control contrib/pg_logicalinspect/specs/logical_inspect.spec contrib/pg_logicalinspect/sql/pg_logicalinspect.sql contrib/pg_overexplain/.gitignore contrib/pg_overexplain/Makefile contrib/pg_overexplain/expected/pg_overexplain.out contrib/pg_overexplain/meson.build contrib/pg_overexplain/pg_overexplain.c contrib/pg_overexplain/sql/pg_overexplain.sql contrib/pg_prewarm/.gitignore contrib/pg_prewarm/Makefile contrib/pg_prewarm/autoprewarm.c contrib/pg_prewarm/expected/pg_prewarm.out contrib/pg_prewarm/meson.build contrib/pg_prewarm/pg_prewarm--1.0--1.1.sql contrib/pg_prewarm/pg_prewarm--1.1--1.2.sql contrib/pg_prewarm/pg_prewarm--1.1.sql contrib/pg_prewarm/pg_prewarm.c contrib/pg_prewarm/pg_prewarm.control contrib/pg_prewarm/sql/pg_prewarm.sql contrib/pg_prewarm/t/001_basic.pl contrib/pg_query_state/.dockerignore contrib/pg_query_state/.gitignore contrib/pg_query_state/.travis.yml contrib/pg_query_state/LICENSE contrib/pg_query_state/Makefile contrib/pg_query_state/README.md contrib/pg_query_state/diasoft_version.info contrib/pg_query_state/docker-compose.yml contrib/pg_query_state/expected/corner_cases.out contrib/pg_query_state/expected/corner_cases_2.out contrib/pg_query_state/expected/corner_cases_3.out contrib/pg_query_state/init.sql contrib/pg_query_state/meson.build contrib/pg_query_state/mk_dockerfile.sh contrib/pg_query_state/patches/custom_signals_10.0.patch contrib/pg_query_state/patches/custom_signals_11.0.patch contrib/pg_query_state/patches/custom_signals_12.0.patch contrib/pg_query_state/patches/custom_signals_13.0.patch contrib/pg_query_state/patches/custom_signals_14.0.patch contrib/pg_query_state/patches/custom_signals_15.0.patch contrib/pg_query_state/patches/custom_signals_16.0.patch contrib/pg_query_state/patches/custom_signals_17.0.patch contrib/pg_query_state/patches/custom_signals_18.0.patch contrib/pg_query_state/patches/custom_signals_9.6.patch contrib/pg_query_state/patches/runtime_explain.patch contrib/pg_query_state/patches/runtime_explain_11.0.patch contrib/pg_query_state/patches/runtime_explain_12.0.patch contrib/pg_query_state/patches/runtime_explain_13.0.patch contrib/pg_query_state/patches/runtime_explain_14.0.patch contrib/pg_query_state/patches/runtime_explain_15.0.patch contrib/pg_query_state/patches/runtime_explain_16.0.patch contrib/pg_query_state/patches/runtime_explain_17.0.patch contrib/pg_query_state/patches/runtime_explain_18.0.patch contrib/pg_query_state/patches_diasoft/custom_signals_17.0.patch contrib/pg_query_state/patches_diasoft/runtime_explain_17.0.patch contrib/pg_query_state/pg_query_state.c contrib/pg_query_state/pg_query_state.control contrib/pg_query_state/pg_query_state.h contrib/pg_query_state/run_tests.sh contrib/pg_query_state/signal_handler.c contrib/pg_query_state/specs/corner_cases.spec contrib/pg_query_state/t/001_bad_progress_bar.pl contrib/pg_query_state/test.conf contrib/pg_query_state/tests/common.py contrib/pg_query_state/tests/pg_qs_test_runner.py contrib/pg_query_state/tests/prepare_stress.sh contrib/pg_query_state/tests/requirements.txt contrib/pg_query_state/tests/test_cases.py contrib/pg_query_state/tests/tpcds.py contrib/pg_stat_statements/.gitignore contrib/pg_stat_statements/Makefile contrib/pg_stat_statements/expected/cleanup.out contrib/pg_stat_statements/expected/cursors.out contrib/pg_stat_statements/expected/dml.out contrib/pg_stat_statements/expected/entry_timestamp.out contrib/pg_stat_statements/expected/extended.out contrib/pg_stat_statements/expected/level_tracking.out contrib/pg_stat_statements/expected/oldextversions.out contrib/pg_stat_statements/expected/parallel.out contrib/pg_stat_statements/expected/planning.out contrib/pg_stat_statements/expected/privileges.out contrib/pg_stat_statements/expected/select.out contrib/pg_stat_statements/expected/squashing.out contrib/pg_stat_statements/expected/user_activity.out contrib/pg_stat_statements/expected/utility.out contrib/pg_stat_statements/expected/wal.out contrib/pg_stat_statements/meson.build contrib/pg_stat_statements/pg_stat_statements--1.0--1.1.sql contrib/pg_stat_statements/pg_stat_statements--1.1--1.2.sql contrib/pg_stat_statements/pg_stat_statements--1.10--1.11.sql contrib/pg_stat_statements/pg_stat_statements--1.11--1.12.sql contrib/pg_stat_statements/pg_stat_statements--1.2--1.3.sql contrib/pg_stat_statements/pg_stat_statements--1.3--1.4.sql contrib/pg_stat_statements/pg_stat_statements--1.4--1.5.sql contrib/pg_stat_statements/pg_stat_statements--1.4.sql contrib/pg_stat_statements/pg_stat_statements--1.5--1.6.sql contrib/pg_stat_statements/pg_stat_statements--1.6--1.7.sql contrib/pg_stat_statements/pg_stat_statements--1.7--1.8.sql contrib/pg_stat_statements/pg_stat_statements--1.8--1.9.sql contrib/pg_stat_statements/pg_stat_statements--1.9--1.10.sql contrib/pg_stat_statements/pg_stat_statements.c contrib/pg_stat_statements/pg_stat_statements.conf contrib/pg_stat_statements/pg_stat_statements.control contrib/pg_stat_statements/sql/cleanup.sql contrib/pg_stat_statements/sql/cursors.sql contrib/pg_stat_statements/sql/dml.sql contrib/pg_stat_statements/sql/entry_timestamp.sql contrib/pg_stat_statements/sql/extended.sql contrib/pg_stat_statements/sql/level_tracking.sql contrib/pg_stat_statements/sql/oldextversions.sql contrib/pg_stat_statements/sql/parallel.sql contrib/pg_stat_statements/sql/planning.sql contrib/pg_stat_statements/sql/privileges.sql contrib/pg_stat_statements/sql/select.sql contrib/pg_stat_statements/sql/squashing.sql contrib/pg_stat_statements/sql/user_activity.sql contrib/pg_stat_statements/sql/utility.sql contrib/pg_stat_statements/sql/wal.sql contrib/pg_stat_statements/t/010_restart.pl contrib/pg_surgery/.gitignore contrib/pg_surgery/Makefile contrib/pg_surgery/expected/heap_surgery.out contrib/pg_surgery/heap_surgery.c contrib/pg_surgery/meson.build contrib/pg_surgery/pg_surgery--1.0.sql contrib/pg_surgery/pg_surgery.control contrib/pg_surgery/sql/heap_surgery.sql contrib/pg_trgm/.gitignore contrib/pg_trgm/Makefile contrib/pg_trgm/data/trgm.data contrib/pg_trgm/data/trgm2.data contrib/pg_trgm/data/trgm_utf8.data contrib/pg_trgm/expected/pg_strict_word_trgm.out contrib/pg_trgm/expected/pg_trgm.out contrib/pg_trgm/expected/pg_utf8_trgm.out contrib/pg_trgm/expected/pg_utf8_trgm_1.out contrib/pg_trgm/expected/pg_word_trgm.out contrib/pg_trgm/meson.build contrib/pg_trgm/pg_trgm--1.0--1.1.sql contrib/pg_trgm/pg_trgm--1.1--1.2.sql contrib/pg_trgm/pg_trgm--1.2--1.3.sql contrib/pg_trgm/pg_trgm--1.3--1.4.sql contrib/pg_trgm/pg_trgm--1.3.sql contrib/pg_trgm/pg_trgm--1.4--1.5.sql contrib/pg_trgm/pg_trgm--1.5--1.6.sql contrib/pg_trgm/pg_trgm.control contrib/pg_trgm/sql/pg_strict_word_trgm.sql contrib/pg_trgm/sql/pg_trgm.sql contrib/pg_trgm/sql/pg_utf8_trgm.sql contrib/pg_trgm/sql/pg_word_trgm.sql contrib/pg_trgm/trgm.h contrib/pg_trgm/trgm_gin.c contrib/pg_trgm/trgm_gist.c contrib/pg_trgm/trgm_op.c contrib/pg_trgm/trgm_regexp.c contrib/pg_visibility/.gitignore contrib/pg_visibility/Makefile contrib/pg_visibility/expected/pg_visibility.out contrib/pg_visibility/meson.build contrib/pg_visibility/pg_visibility--1.0--1.1.sql contrib/pg_visibility/pg_visibility--1.1--1.2.sql contrib/pg_visibility/pg_visibility--1.1.sql contrib/pg_visibility/pg_visibility.c contrib/pg_visibility/pg_visibility.control contrib/pg_visibility/sql/pg_visibility.sql contrib/pg_visibility/t/001_concurrent_transaction.pl contrib/pg_visibility/t/002_corrupt_vm.pl contrib/pg_wait_sampling/.gitignore contrib/pg_wait_sampling/.travis.yml contrib/pg_wait_sampling/LICENSE contrib/pg_wait_sampling/Makefile contrib/pg_wait_sampling/README.md contrib/pg_wait_sampling/collector.c contrib/pg_wait_sampling/compat.h contrib/pg_wait_sampling/conf.add contrib/pg_wait_sampling/expected/load.out contrib/pg_wait_sampling/expected/load_1.out contrib/pg_wait_sampling/expected/queries.out contrib/pg_wait_sampling/meson.build contrib/pg_wait_sampling/pg_wait_sampling--1.0--1.1.sql contrib/pg_wait_sampling/pg_wait_sampling--1.1.sql contrib/pg_wait_sampling/pg_wait_sampling.c contrib/pg_wait_sampling/pg_wait_sampling.control contrib/pg_wait_sampling/pg_wait_sampling.h contrib/pg_wait_sampling/run-tests.sh contrib/pg_wait_sampling/sql/load.sql contrib/pg_wait_sampling/sql/queries.sql contrib/pg_walinspect/.gitignore contrib/pg_walinspect/Makefile contrib/pg_walinspect/expected/oldextversions.out contrib/pg_walinspect/expected/pg_walinspect.out contrib/pg_walinspect/meson.build contrib/pg_walinspect/pg_walinspect--1.0--1.1.sql contrib/pg_walinspect/pg_walinspect--1.0.sql contrib/pg_walinspect/pg_walinspect.c contrib/pg_walinspect/pg_walinspect.control contrib/pg_walinspect/sql/oldextversions.sql contrib/pg_walinspect/sql/pg_walinspect.sql contrib/pg_walinspect/walinspect.conf contrib/pgaudit/.editorconfig contrib/pgaudit/.gitignore contrib/pgaudit/LICENSE contrib/pgaudit/Makefile contrib/pgaudit/README.md contrib/pgaudit/diasoft_version.info contrib/pgaudit/expected/pgaudit.out contrib/pgaudit/pgaudit--17.0.sql contrib/pgaudit/pgaudit--18.0.sql contrib/pgaudit/pgaudit.c contrib/pgaudit/pgaudit.conf contrib/pgaudit/pgaudit.control contrib/pgaudit/sql/pgaudit.sql contrib/pgaudit/test/Dockerfile.debian contrib/pgaudit/test/Dockerfile.rhel contrib/pgaudit/test/README.md contrib/pgaudit/test/test.sh contrib/pgcrypto/.gitignore contrib/pgcrypto/Makefile contrib/pgcrypto/crypt-blowfish.c contrib/pgcrypto/crypt-des.c contrib/pgcrypto/crypt-gensalt.c contrib/pgcrypto/crypt-md5.c contrib/pgcrypto/crypt-sha.c contrib/pgcrypto/expected/3des.out contrib/pgcrypto/expected/3des_1.out contrib/pgcrypto/expected/blowfish.out contrib/pgcrypto/expected/blowfish_1.out contrib/pgcrypto/expected/cast5.out contrib/pgcrypto/expected/cast5_1.out contrib/pgcrypto/expected/crypt-blowfish.out contrib/pgcrypto/expected/crypt-des.out contrib/pgcrypto/expected/crypt-md5.out contrib/pgcrypto/expected/crypt-md5_1.out contrib/pgcrypto/expected/crypt-shacrypt.out contrib/pgcrypto/expected/crypt-xdes.out contrib/pgcrypto/expected/des.out contrib/pgcrypto/expected/des_1.out contrib/pgcrypto/expected/hmac-md5.out contrib/pgcrypto/expected/hmac-md5_1.out contrib/pgcrypto/expected/hmac-md5_2.out contrib/pgcrypto/expected/hmac-sha1.out contrib/pgcrypto/expected/init.out contrib/pgcrypto/expected/md5.out contrib/pgcrypto/expected/md5_1.out contrib/pgcrypto/expected/md5_2.out contrib/pgcrypto/expected/pgp-armor.out contrib/pgcrypto/expected/pgp-compression.out contrib/pgcrypto/expected/pgp-decrypt.out contrib/pgcrypto/expected/pgp-decrypt_1.out contrib/pgcrypto/expected/pgp-encrypt-md5.out contrib/pgcrypto/expected/pgp-encrypt-md5_1.out contrib/pgcrypto/expected/pgp-encrypt.out contrib/pgcrypto/expected/pgp-info.out contrib/pgcrypto/expected/pgp-pubkey-decrypt.out contrib/pgcrypto/expected/pgp-pubkey-decrypt_1.out contrib/pgcrypto/expected/pgp-pubkey-encrypt.out contrib/pgcrypto/expected/pgp-pubkey-session.out contrib/pgcrypto/expected/pgp-zlib-DISABLED.out contrib/pgcrypto/expected/rijndael.out contrib/pgcrypto/expected/sha1.out contrib/pgcrypto/expected/sha2.out contrib/pgcrypto/mbuf.c contrib/pgcrypto/mbuf.h contrib/pgcrypto/meson.build contrib/pgcrypto/openssl.c contrib/pgcrypto/pgcrypto--1.0--1.1.sql contrib/pgcrypto/pgcrypto--1.1--1.2.sql contrib/pgcrypto/pgcrypto--1.2--1.3.sql contrib/pgcrypto/pgcrypto--1.3--1.4.sql contrib/pgcrypto/pgcrypto--1.3.sql contrib/pgcrypto/pgcrypto.c contrib/pgcrypto/pgcrypto.control contrib/pgcrypto/pgcrypto.h contrib/pgcrypto/pgp-armor.c contrib/pgcrypto/pgp-cfb.c contrib/pgcrypto/pgp-compress.c contrib/pgcrypto/pgp-decrypt.c contrib/pgcrypto/pgp-encrypt.c contrib/pgcrypto/pgp-info.c contrib/pgcrypto/pgp-mpi-openssl.c contrib/pgcrypto/pgp-mpi.c contrib/pgcrypto/pgp-pgsql.c contrib/pgcrypto/pgp-pubdec.c contrib/pgcrypto/pgp-pubenc.c contrib/pgcrypto/pgp-pubkey.c contrib/pgcrypto/pgp-s2k.c contrib/pgcrypto/pgp.c contrib/pgcrypto/pgp.h contrib/pgcrypto/px-crypt.c contrib/pgcrypto/px-crypt.h contrib/pgcrypto/px-hmac.c contrib/pgcrypto/px.c contrib/pgcrypto/px.h contrib/pgcrypto/scripts/pgp_session_data.py contrib/pgcrypto/sql/3des.sql contrib/pgcrypto/sql/blowfish.sql contrib/pgcrypto/sql/cast5.sql contrib/pgcrypto/sql/crypt-blowfish.sql contrib/pgcrypto/sql/crypt-des.sql contrib/pgcrypto/sql/crypt-md5.sql contrib/pgcrypto/sql/crypt-shacrypt.sql contrib/pgcrypto/sql/crypt-xdes.sql contrib/pgcrypto/sql/des.sql contrib/pgcrypto/sql/hmac-md5.sql contrib/pgcrypto/sql/hmac-sha1.sql contrib/pgcrypto/sql/init.sql contrib/pgcrypto/sql/md5.sql contrib/pgcrypto/sql/pgp-armor.sql contrib/pgcrypto/sql/pgp-compression.sql contrib/pgcrypto/sql/pgp-decrypt.sql contrib/pgcrypto/sql/pgp-encrypt-md5.sql contrib/pgcrypto/sql/pgp-encrypt.sql contrib/pgcrypto/sql/pgp-info.sql contrib/pgcrypto/sql/pgp-pubkey-decrypt.sql contrib/pgcrypto/sql/pgp-pubkey-encrypt.sql contrib/pgcrypto/sql/pgp-pubkey-session.sql contrib/pgcrypto/sql/pgp-zlib-DISABLED.sql contrib/pgcrypto/sql/rijndael.sql contrib/pgcrypto/sql/sha1.sql contrib/pgcrypto/sql/sha2.sql contrib/pgrowlocks/.gitignore contrib/pgrowlocks/Makefile contrib/pgrowlocks/expected/pgrowlocks.out contrib/pgrowlocks/meson.build contrib/pgrowlocks/pgrowlocks--1.0--1.1.sql contrib/pgrowlocks/pgrowlocks--1.1--1.2.sql contrib/pgrowlocks/pgrowlocks--1.2.sql contrib/pgrowlocks/pgrowlocks.c contrib/pgrowlocks/pgrowlocks.control contrib/pgrowlocks/specs/pgrowlocks.spec contrib/pgstattuple/.gitignore contrib/pgstattuple/Makefile contrib/pgstattuple/expected/pgstattuple.out contrib/pgstattuple/meson.build contrib/pgstattuple/pgstatapprox.c contrib/pgstattuple/pgstatindex.c contrib/pgstattuple/pgstattuple--1.0--1.1.sql contrib/pgstattuple/pgstattuple--1.1--1.2.sql contrib/pgstattuple/pgstattuple--1.2--1.3.sql contrib/pgstattuple/pgstattuple--1.3--1.4.sql contrib/pgstattuple/pgstattuple--1.4--1.5.sql contrib/pgstattuple/pgstattuple--1.4.sql contrib/pgstattuple/pgstattuple.c contrib/pgstattuple/pgstattuple.control contrib/pgstattuple/sql/pgstattuple.sql contrib/pgvector/.gitignore contrib/pgvector/CHANGELOG.md contrib/pgvector/LICENSE contrib/pgvector/META.json contrib/pgvector/Makefile contrib/pgvector/README.md contrib/pgvector/diasoft_version.info contrib/pgvector/sql/vector--0.1.0--0.1.1.sql contrib/pgvector/sql/vector--0.1.1--0.1.3.sql contrib/pgvector/sql/vector--0.1.3--0.1.4.sql contrib/pgvector/sql/vector--0.1.4--0.1.5.sql contrib/pgvector/sql/vector--0.1.5--0.1.6.sql contrib/pgvector/sql/vector--0.1.6--0.1.7.sql contrib/pgvector/sql/vector--0.1.7--0.1.8.sql contrib/pgvector/sql/vector--0.1.8--0.2.0.sql contrib/pgvector/sql/vector--0.2.0--0.2.1.sql contrib/pgvector/sql/vector--0.2.1--0.2.2.sql contrib/pgvector/sql/vector--0.2.2--0.2.3.sql contrib/pgvector/sql/vector--0.2.3--0.2.4.sql contrib/pgvector/sql/vector--0.2.4--0.2.5.sql contrib/pgvector/sql/vector--0.2.5--0.2.6.sql contrib/pgvector/sql/vector--0.2.6--0.2.7.sql contrib/pgvector/sql/vector--0.2.7--0.3.0.sql contrib/pgvector/sql/vector--0.3.0--0.3.1.sql contrib/pgvector/sql/vector--0.3.1--0.3.2.sql contrib/pgvector/sql/vector--0.3.2--0.4.0.sql contrib/pgvector/sql/vector--0.4.0--0.4.1.sql contrib/pgvector/sql/vector--0.4.1--0.4.2.sql contrib/pgvector/sql/vector--0.4.2--0.4.3.sql contrib/pgvector/sql/vector--0.4.3--0.4.4.sql contrib/pgvector/sql/vector--0.4.4--0.5.0.sql contrib/pgvector/sql/vector--0.5.0--0.5.1.sql contrib/pgvector/sql/vector--0.5.1--0.6.0.sql contrib/pgvector/sql/vector--0.6.0--0.6.1.sql contrib/pgvector/sql/vector--0.6.1--0.6.2.sql contrib/pgvector/sql/vector--0.6.2--0.7.0.sql contrib/pgvector/sql/vector--0.7.0--0.7.1.sql contrib/pgvector/sql/vector--0.7.1--0.7.2.sql contrib/pgvector/sql/vector--0.7.2--0.7.3.sql contrib/pgvector/sql/vector--0.7.3--0.7.4.sql contrib/pgvector/sql/vector--0.7.4--0.8.0.sql contrib/pgvector/sql/vector.sql contrib/pgvector/src/bitutils.c contrib/pgvector/src/bitutils.h contrib/pgvector/src/bitvec.c contrib/pgvector/src/bitvec.h contrib/pgvector/src/halfutils.c contrib/pgvector/src/halfutils.h contrib/pgvector/src/halfvec.c contrib/pgvector/src/halfvec.h contrib/pgvector/src/hnsw.c contrib/pgvector/src/hnsw.h contrib/pgvector/src/hnswbuild.c contrib/pgvector/src/hnswinsert.c contrib/pgvector/src/hnswscan.c contrib/pgvector/src/hnswutils.c contrib/pgvector/src/hnswvacuum.c contrib/pgvector/src/ivfbuild.c contrib/pgvector/src/ivfflat.c contrib/pgvector/src/ivfflat.h contrib/pgvector/src/ivfinsert.c contrib/pgvector/src/ivfkmeans.c contrib/pgvector/src/ivfscan.c contrib/pgvector/src/ivfutils.c contrib/pgvector/src/ivfvacuum.c contrib/pgvector/src/sparsevec.c contrib/pgvector/src/sparsevec.h contrib/pgvector/src/vector.c contrib/pgvector/src/vector.h contrib/pgvector/test_pgvector/expected/bit.out contrib/pgvector/test_pgvector/expected/btree.out contrib/pgvector/test_pgvector/expected/cast.out contrib/pgvector/test_pgvector/expected/copy.out contrib/pgvector/test_pgvector/expected/halfvec.out contrib/pgvector/test_pgvector/expected/hnsw_bit.out contrib/pgvector/test_pgvector/expected/hnsw_halfvec.out contrib/pgvector/test_pgvector/expected/hnsw_sparsevec.out contrib/pgvector/test_pgvector/expected/hnsw_vector.out contrib/pgvector/test_pgvector/expected/ivfflat_bit.out contrib/pgvector/test_pgvector/expected/ivfflat_halfvec.out contrib/pgvector/test_pgvector/expected/ivfflat_vector.out contrib/pgvector/test_pgvector/expected/sparsevec.out contrib/pgvector/test_pgvector/expected/vector_type.out contrib/pgvector/test_pgvector/perl/PostgreSQL/Test/Cluster.pm contrib/pgvector/test_pgvector/perl/PostgreSQL/Test/Utils.pm contrib/pgvector/test_pgvector/sql/bit.sql contrib/pgvector/test_pgvector/sql/btree.sql contrib/pgvector/test_pgvector/sql/cast.sql contrib/pgvector/test_pgvector/sql/copy.sql contrib/pgvector/test_pgvector/sql/halfvec.sql contrib/pgvector/test_pgvector/sql/hnsw_bit.sql contrib/pgvector/test_pgvector/sql/hnsw_halfvec.sql contrib/pgvector/test_pgvector/sql/hnsw_sparsevec.sql contrib/pgvector/test_pgvector/sql/hnsw_vector.sql contrib/pgvector/test_pgvector/sql/ivfflat_bit.sql contrib/pgvector/test_pgvector/sql/ivfflat_halfvec.sql contrib/pgvector/test_pgvector/sql/ivfflat_vector.sql contrib/pgvector/test_pgvector/sql/sparsevec.sql contrib/pgvector/test_pgvector/sql/vector_type.sql contrib/pgvector/test_pgvector/t/001_ivfflat_wal.pl contrib/pgvector/test_pgvector/t/002_ivfflat_vacuum.pl contrib/pgvector/test_pgvector/t/003_ivfflat_vector_build_recall.pl contrib/pgvector/test_pgvector/t/004_ivfflat_vector_insert_recall.pl contrib/pgvector/test_pgvector/t/005_ivfflat_query_recall.pl contrib/pgvector/test_pgvector/t/006_ivfflat_lists.pl contrib/pgvector/test_pgvector/t/007_ivfflat_inserts.pl contrib/pgvector/test_pgvector/t/008_ivfflat_centers.pl contrib/pgvector/test_pgvector/t/009_ivfflat_filtering.pl contrib/pgvector/test_pgvector/t/010_hnsw_wal.pl contrib/pgvector/test_pgvector/t/011_hnsw_vacuum.pl contrib/pgvector/test_pgvector/t/012_hnsw_vector_build_recall.pl contrib/pgvector/test_pgvector/t/013_hnsw_vector_insert_recall.pl contrib/pgvector/test_pgvector/t/014_hnsw_vector_vacuum_recall.pl contrib/pgvector/test_pgvector/t/015_hnsw_vector_duplicates.pl contrib/pgvector/test_pgvector/t/016_hnsw_inserts.pl contrib/pgvector/test_pgvector/t/017_hnsw_filtering.pl contrib/pgvector/test_pgvector/t/018_aggregates.pl contrib/pgvector/test_pgvector/t/019_storage.pl contrib/pgvector/test_pgvector/t/020_hnsw_bit_build_recall.pl contrib/pgvector/test_pgvector/t/021_hnsw_bit_insert_recall.pl contrib/pgvector/test_pgvector/t/022_hnsw_bit_vacuum_recall.pl contrib/pgvector/test_pgvector/t/023_hnsw_bit_duplicates.pl contrib/pgvector/test_pgvector/t/024_hnsw_halfvec_build_recall.pl contrib/pgvector/test_pgvector/t/025_hnsw_halfvec_insert_recall.pl contrib/pgvector/test_pgvector/t/026_hnsw_halfvec_vacuum_recall.pl contrib/pgvector/test_pgvector/t/027_hnsw_halfvec_duplicates.pl contrib/pgvector/test_pgvector/t/028_hnsw_sparsevec_build_recall.pl contrib/pgvector/test_pgvector/t/029_hnsw_sparsevec_insert_recall.pl contrib/pgvector/test_pgvector/t/030_hnsw_sparsevec_vacuum_recall.pl contrib/pgvector/test_pgvector/t/031_hnsw_sparsevec_duplicates.pl contrib/pgvector/test_pgvector/t/032_ivfflat_halfvec_build_recall.pl contrib/pgvector/test_pgvector/t/033_comparison.pl contrib/pgvector/test_pgvector/t/034_distance_functions.pl contrib/pgvector/test_pgvector/t/035_ivfflat_bit_build_recall.pl contrib/pgvector/test_pgvector/t/036_ivfflat_bit_centers.pl contrib/pgvector/test_pgvector/t/037_inputs.pl contrib/pgvector/test_pgvector/t/038_hnsw_sparsevec_vacuum_insert.pl contrib/pgvector/test_pgvector/t/039_hnsw_cost.pl contrib/pgvector/test_pgvector/t/040_ivfflat_cost.pl contrib/pgvector/test_pgvector/t/041_ivfflat_iterative_scan.pl contrib/pgvector/test_pgvector/t/042_ivfflat_iterative_scan_recall.pl contrib/pgvector/test_pgvector/t/043_hnsw_iterative_scan.pl contrib/pgvector/test_pgvector/t/044_hnsw_iterative_scan_recall.pl contrib/pgvector/vector.control contrib/plantuner/COPYRIGHT contrib/plantuner/Makefile contrib/plantuner/README.plantuner contrib/plantuner/expected/plantuner.out contrib/plantuner/meson.build contrib/plantuner/plantuner.c contrib/plantuner/sql/plantuner.sql contrib/pldotnet/CONTRIBUTING.md contrib/pldotnet/Dockerfile contrib/pldotnet/INSTALL.md contrib/pldotnet/LICENSE contrib/pldotnet/Makefile contrib/pldotnet/PL-NET_LOGO.png contrib/pldotnet/README.md contrib/pldotnet/build_install.sh contrib/pldotnet/build_install_rudb.sh contrib/pldotnet/debian/changelog contrib/pldotnet/debian/compat contrib/pldotnet/debian/control.tmpl contrib/pldotnet/debian/copyright contrib/pldotnet/debian/packages/.gitkeep contrib/pldotnet/debian/pgversions contrib/pldotnet/debian/pgversions-arm contrib/pldotnet/debian/postinst contrib/pldotnet/debian/rules contrib/pldotnet/docker-compose-dev.yml contrib/pldotnet/docker-compose.yml contrib/pldotnet/docs/Doxyfile contrib/pldotnet/docs/FAQ/Makefile contrib/pldotnet/docs/FAQ/docs/index.md contrib/pldotnet/docs/FAQ/mkdocs.yml contrib/pldotnet/docs/Makefile contrib/pldotnet/docs/img/Makefile contrib/pldotnet/docs/img/Notes.md contrib/pldotnet/docs/img/pldotnet-performance-data-2023-01-24.csv contrib/pldotnet/docs/img/pldotnet-performance-data-2024-02-27.csv contrib/pldotnet/docs/img/pldotnet-performance-graph-maker.py contrib/pldotnet/docs/img/pldotnet-performance-heatmap-maker.py contrib/pldotnet/docs/img/pldotnet-sequence-diagram.puml contrib/pldotnet/docs/pldotnet-whitepaper-mar24.tex contrib/pldotnet/docs/references.bib contrib/pldotnet/docs/wiki/03.-Basic-usage.md contrib/pldotnet/docs/wiki/04.-Nullable-and-Array.md contrib/pldotnet/docs/wiki/05.-Dynamic-link-library.md contrib/pldotnet/docs/wiki/06.-Application-programming-interface.md contrib/pldotnet/docs/wiki/07.-Examples.md contrib/pldotnet/docs/wiki/08.-Data-type-mapping.md contrib/pldotnet/docs/wiki/09.-Tests.md contrib/pldotnet/docs/wiki/10.-License.md contrib/pldotnet/docs/wiki/Home.md contrib/pldotnet/dotnet_src/CodeGenerator.cs contrib/pldotnet/dotnet_src/Common/ArrayManipulation.cs contrib/pldotnet/dotnet_src/Common/Elog.cs contrib/pldotnet/dotnet_src/Common/Enums.cs contrib/pldotnet/dotnet_src/Common/PlDotNET.Common.csproj contrib/pldotnet/dotnet_src/Common/PlDotNETSettings.cs contrib/pldotnet/dotnet_src/Common/TriggerData.cs contrib/pldotnet/dotnet_src/Directory.Build.props contrib/pldotnet/dotnet_src/DotNetProjectBuilder.cs contrib/pldotnet/dotnet_src/Engine.cs contrib/pldotnet/dotnet_src/FSharp/FSharpCompiler.fs contrib/pldotnet/dotnet_src/FSharp/PlDotNET.FSharp.fsproj contrib/pldotnet/dotnet_src/FSharp/VirtualFileSystem.fs contrib/pldotnet/dotnet_src/PlDotNET.csproj contrib/pldotnet/dotnet_src/Templates/UserFunction.tcs contrib/pldotnet/dotnet_src/Templates/UserFunction.tfs contrib/pldotnet/dotnet_src/Templates/UserFunctionProject.tfsproj contrib/pldotnet/dotnet_src/Templates/UserHandler.tcs contrib/pldotnet/dotnet_src/Templates/UserTHandler.tcs contrib/pldotnet/dotnet_src/TypeHandlers/ArrayHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/BitStringHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/BoolHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/ByteaHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/DateTimeHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/FloatHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/GenericHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/GeometricHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/Handler.cs contrib/pldotnet/dotnet_src/TypeHandlers/IntegerHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/JsonHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/MoneyHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/NetworkHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/PlDotNET.Handlers.csproj contrib/pldotnet/dotnet_src/TypeHandlers/RangeHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/RecordHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/StringHandler.cs contrib/pldotnet/dotnet_src/TypeHandlers/UuidHandler.cs contrib/pldotnet/dotnet_src/stylecop.ruleset contrib/pldotnet/motd contrib/pldotnet/motd.dev contrib/pldotnet/pldotnet--0.9.sql contrib/pldotnet/pldotnet.control contrib/pldotnet/pldotnet.sln contrib/pldotnet/prepare_linux_build_env.sh contrib/pldotnet/src/pldotnet.c contrib/pldotnet/src/pldotnet_conversions.c contrib/pldotnet/src/pldotnet_conversions.h contrib/pldotnet/src/pldotnet_hostfxr.c contrib/pldotnet/src/pldotnet_hostfxr.h contrib/pldotnet/src/pldotnet_main.c contrib/pldotnet/src/pldotnet_main.h contrib/pldotnet/src/pldotnet_spi.c contrib/pldotnet/src/pldotnet_spi.h contrib/pldotnet/tests/Makefile contrib/pldotnet/tests/benchmark/bench-testarray.sql contrib/pldotnet/tests/benchmark/bench-testbool.sql contrib/pldotnet/tests/benchmark/bench-testchar.sql contrib/pldotnet/tests/benchmark/bench-testfloats.sql contrib/pldotnet/tests/benchmark/bench-testintegers.sql contrib/pldotnet/tests/benchmark/bench-testmixedtypes.sql contrib/pldotnet/tests/benchmark/bench-testnullbool.sql contrib/pldotnet/tests/benchmark/bench-testnullintegers.sql contrib/pldotnet/tests/benchmark/bench-testrecursive.sql contrib/pldotnet/tests/benchmark/benchmark.sh contrib/pldotnet/tests/benchmark/csharp/init-extension.sql contrib/pldotnet/tests/benchmark/csharp/testarray.sql contrib/pldotnet/tests/benchmark/csharp/testbool.sql contrib/pldotnet/tests/benchmark/csharp/testchar.sql contrib/pldotnet/tests/benchmark/csharp/testdo.sql contrib/pldotnet/tests/benchmark/csharp/testfloats.sql contrib/pldotnet/tests/benchmark/csharp/testintegers.sql contrib/pldotnet/tests/benchmark/csharp/testlog.sql contrib/pldotnet/tests/benchmark/csharp/testmixedtypes.sql contrib/pldotnet/tests/benchmark/csharp/testnullbool.sql contrib/pldotnet/tests/benchmark/csharp/testnullintegers.sql contrib/pldotnet/tests/benchmark/csharp/testrecursive.sql contrib/pldotnet/tests/benchmark/fsharp/init-extension.sql contrib/pldotnet/tests/benchmark/fsharp/testfsarray.sql contrib/pldotnet/tests/benchmark/fsharp/testfsbool.sql contrib/pldotnet/tests/benchmark/fsharp/testfschar.sql contrib/pldotnet/tests/benchmark/fsharp/testfsdo.sql contrib/pldotnet/tests/benchmark/fsharp/testfselog.sql contrib/pldotnet/tests/benchmark/fsharp/testfsfloats.sql contrib/pldotnet/tests/benchmark/fsharp/testfsintegers.sql contrib/pldotnet/tests/benchmark/fsharp/testfsmixedtypes.sql contrib/pldotnet/tests/benchmark/fsharp/testfsnullbool.sql contrib/pldotnet/tests/benchmark/fsharp/testfsnullintegers.sql contrib/pldotnet/tests/benchmark/fsharp/testfsrecursive.sql contrib/pldotnet/tests/benchmark/includes.sql contrib/pldotnet/tests/benchmark/java/init-extension.sql contrib/pldotnet/tests/benchmark/java/test-suite/pom.xml contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestArray.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestBool.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestChar.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestComposites.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestDo.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestFloats.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestIntegers.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestMixedTypes.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestNullBool.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestNullInteger.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestNumeric.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestRecursive.java contrib/pldotnet/tests/benchmark/java/test-suite/src/main/java/TestSpi.java contrib/pldotnet/tests/benchmark/java/testarray.sql contrib/pldotnet/tests/benchmark/java/testbool.sql contrib/pldotnet/tests/benchmark/java/testchar.sql contrib/pldotnet/tests/benchmark/java/testcomposites.sql contrib/pldotnet/tests/benchmark/java/testdo.sql contrib/pldotnet/tests/benchmark/java/testfloats.sql contrib/pldotnet/tests/benchmark/java/testintegers.sql contrib/pldotnet/tests/benchmark/java/testmixedtypes.sql contrib/pldotnet/tests/benchmark/java/testnullbool.sql contrib/pldotnet/tests/benchmark/java/testnullintegers.sql contrib/pldotnet/tests/benchmark/java/testnumeric.sql contrib/pldotnet/tests/benchmark/java/testrecursive.sql contrib/pldotnet/tests/benchmark/java/testspi.sql contrib/pldotnet/tests/benchmark/lua/init-extension.sql contrib/pldotnet/tests/benchmark/lua/testarray.sql contrib/pldotnet/tests/benchmark/lua/testbool.sql contrib/pldotnet/tests/benchmark/lua/testchar.sql contrib/pldotnet/tests/benchmark/lua/testcomposites.sql contrib/pldotnet/tests/benchmark/lua/testdo.sql contrib/pldotnet/tests/benchmark/lua/testfloats.sql contrib/pldotnet/tests/benchmark/lua/testintegers.sql contrib/pldotnet/tests/benchmark/lua/testmixedtypes.sql contrib/pldotnet/tests/benchmark/lua/testnullbool.sql contrib/pldotnet/tests/benchmark/lua/testnullintegers.sql contrib/pldotnet/tests/benchmark/lua/testnumeric.sql contrib/pldotnet/tests/benchmark/lua/testrecursive.sql contrib/pldotnet/tests/benchmark/lua/testspi.sql contrib/pldotnet/tests/benchmark/perl/init-extension.sql contrib/pldotnet/tests/benchmark/perl/testarray.sql contrib/pldotnet/tests/benchmark/perl/testbool.sql contrib/pldotnet/tests/benchmark/perl/testchar.sql contrib/pldotnet/tests/benchmark/perl/testcomposites.sql contrib/pldotnet/tests/benchmark/perl/testdo.sql contrib/pldotnet/tests/benchmark/perl/testfloats.sql contrib/pldotnet/tests/benchmark/perl/testintegers.sql contrib/pldotnet/tests/benchmark/perl/testmixedtypes.sql contrib/pldotnet/tests/benchmark/perl/testnullbool.sql contrib/pldotnet/tests/benchmark/perl/testnullintegers.sql contrib/pldotnet/tests/benchmark/perl/testnumeric.sql contrib/pldotnet/tests/benchmark/perl/testrecursive.sql contrib/pldotnet/tests/benchmark/perl/testspi.sql contrib/pldotnet/tests/benchmark/pgsql/testarray.sql contrib/pldotnet/tests/benchmark/pgsql/testbool.sql contrib/pldotnet/tests/benchmark/pgsql/testchar.sql contrib/pldotnet/tests/benchmark/pgsql/testcomposites.sql contrib/pldotnet/tests/benchmark/pgsql/testdo.sql contrib/pldotnet/tests/benchmark/pgsql/testfloats.sql contrib/pldotnet/tests/benchmark/pgsql/testintegers.sql contrib/pldotnet/tests/benchmark/pgsql/testmixedtypes.sql contrib/pldotnet/tests/benchmark/pgsql/testnullbool.sql contrib/pldotnet/tests/benchmark/pgsql/testnullintegers.sql contrib/pldotnet/tests/benchmark/pgsql/testnumeric.sql contrib/pldotnet/tests/benchmark/pgsql/testrecursive.sql contrib/pldotnet/tests/benchmark/pgsql/testspi.sql contrib/pldotnet/tests/benchmark/python/init-extension.sql contrib/pldotnet/tests/benchmark/python/testarray.sql contrib/pldotnet/tests/benchmark/python/testbool.sql contrib/pldotnet/tests/benchmark/python/testchar.sql contrib/pldotnet/tests/benchmark/python/testcomposites.sql contrib/pldotnet/tests/benchmark/python/testdo.sql contrib/pldotnet/tests/benchmark/python/testfloats.sql contrib/pldotnet/tests/benchmark/python/testintegers.sql contrib/pldotnet/tests/benchmark/python/testmixedtypes.sql contrib/pldotnet/tests/benchmark/python/testnullbool.sql contrib/pldotnet/tests/benchmark/python/testnullintegers.sql contrib/pldotnet/tests/benchmark/python/testnumber.sql contrib/pldotnet/tests/benchmark/python/testnumeric.sql contrib/pldotnet/tests/benchmark/python/testrecursive.sql contrib/pldotnet/tests/benchmark/python/testspi.sql contrib/pldotnet/tests/benchmark/r/init-extension.sql contrib/pldotnet/tests/benchmark/r/testarray.sql contrib/pldotnet/tests/benchmark/r/testbool.sql contrib/pldotnet/tests/benchmark/r/testchar.sql contrib/pldotnet/tests/benchmark/r/testcomposites.sql contrib/pldotnet/tests/benchmark/r/testdo.sql contrib/pldotnet/tests/benchmark/r/testfloats.sql contrib/pldotnet/tests/benchmark/r/testintegers.sql contrib/pldotnet/tests/benchmark/r/testmixedtypes.sql contrib/pldotnet/tests/benchmark/r/testnullbool.sql contrib/pldotnet/tests/benchmark/r/testnullintegers.sql contrib/pldotnet/tests/benchmark/r/testnumeric.sql contrib/pldotnet/tests/benchmark/r/testrecursive.sql contrib/pldotnet/tests/benchmark/r/testspi.sql contrib/pldotnet/tests/benchmark/tcl/init-extension.sql contrib/pldotnet/tests/benchmark/tcl/testarray.sql contrib/pldotnet/tests/benchmark/tcl/testbool.sql contrib/pldotnet/tests/benchmark/tcl/testchar.sql contrib/pldotnet/tests/benchmark/tcl/testcomposites.sql contrib/pldotnet/tests/benchmark/tcl/testdo.sql contrib/pldotnet/tests/benchmark/tcl/testfloats.sql contrib/pldotnet/tests/benchmark/tcl/testintegers.sql contrib/pldotnet/tests/benchmark/tcl/testmixedtypes.sql contrib/pldotnet/tests/benchmark/tcl/testnullbool.sql contrib/pldotnet/tests/benchmark/tcl/testnullintegers.sql contrib/pldotnet/tests/benchmark/tcl/testnumeric.sql contrib/pldotnet/tests/benchmark/tcl/testrecursive.sql contrib/pldotnet/tests/benchmark/tcl/testspi.sql contrib/pldotnet/tests/benchmark/v8javascript/init-extension.sql contrib/pldotnet/tests/benchmark/v8javascript/testarray.sql contrib/pldotnet/tests/benchmark/v8javascript/testbool.sql contrib/pldotnet/tests/benchmark/v8javascript/testchar.sql contrib/pldotnet/tests/benchmark/v8javascript/testcomposites.sql contrib/pldotnet/tests/benchmark/v8javascript/testdo.sql contrib/pldotnet/tests/benchmark/v8javascript/testfloats.sql contrib/pldotnet/tests/benchmark/v8javascript/testintegers.sql contrib/pldotnet/tests/benchmark/v8javascript/testmixedtypes.sql contrib/pldotnet/tests/benchmark/v8javascript/testnullbool.sql contrib/pldotnet/tests/benchmark/v8javascript/testnullintegers.sql contrib/pldotnet/tests/benchmark/v8javascript/testnumeric.sql contrib/pldotnet/tests/benchmark/v8javascript/testrecursive.sql contrib/pldotnet/tests/benchmark/v8javascript/testspi.sql contrib/pldotnet/tests/csharp/DotNetTestProject/CSharpTest.csproj contrib/pldotnet/tests/csharp/DotNetTestProject/Program.cs contrib/pldotnet/tests/csharp/testbit.sql contrib/pldotnet/tests/csharp/testbool.sql contrib/pldotnet/tests/csharp/testbytea.sql contrib/pldotnet/tests/csharp/testcreate.sql contrib/pldotnet/tests/csharp/testcreatecall.sql contrib/pldotnet/tests/csharp/testdatetime.sql contrib/pldotnet/tests/csharp/testdll.sql contrib/pldotnet/tests/csharp/testdo.sql contrib/pldotnet/tests/csharp/testfloats.sql contrib/pldotnet/tests/csharp/testgeometric.sql contrib/pldotnet/tests/csharp/testinout.sql contrib/pldotnet/tests/csharp/testintegers.sql contrib/pldotnet/tests/csharp/testjson.sql contrib/pldotnet/tests/csharp/testmoney.sql contrib/pldotnet/tests/csharp/testnetwork.sql contrib/pldotnet/tests/csharp/testprocedure.sql contrib/pldotnet/tests/csharp/testrange.sql contrib/pldotnet/tests/csharp/testrecord.sql contrib/pldotnet/tests/csharp/testspi.sql contrib/pldotnet/tests/csharp/testsrf.sql contrib/pldotnet/tests/csharp/teststring.sql contrib/pldotnet/tests/csharp/testtable.sql contrib/pldotnet/tests/csharp/testtrigger.sql contrib/pldotnet/tests/csharp/testuuid.sql contrib/pldotnet/tests/fsharp/DotNetTestProject/FSharpTest.fsproj contrib/pldotnet/tests/fsharp/DotNetTestProject/Program.fs contrib/pldotnet/tests/fsharp/testfsbit.sql contrib/pldotnet/tests/fsharp/testfsbool.sql contrib/pldotnet/tests/fsharp/testfsbytea.sql contrib/pldotnet/tests/fsharp/testfscreate.sql contrib/pldotnet/tests/fsharp/testfscreatecall.sql contrib/pldotnet/tests/fsharp/testfsdate.sql contrib/pldotnet/tests/fsharp/testfsdatetime.sql contrib/pldotnet/tests/fsharp/testfsdll.sql contrib/pldotnet/tests/fsharp/testfsdo.sql contrib/pldotnet/tests/fsharp/testfsfloats.sql contrib/pldotnet/tests/fsharp/testfsgeometric.sql contrib/pldotnet/tests/fsharp/testfsinout.sql contrib/pldotnet/tests/fsharp/testfsintegers.sql contrib/pldotnet/tests/fsharp/testfsjson.sql contrib/pldotnet/tests/fsharp/testfsnetwork.sql contrib/pldotnet/tests/fsharp/testfsprocedure.sql contrib/pldotnet/tests/fsharp/testfsrange.sql contrib/pldotnet/tests/fsharp/testfsrecord.sql contrib/pldotnet/tests/fsharp/testfsspi.sql contrib/pldotnet/tests/fsharp/testfssrf.sql contrib/pldotnet/tests/fsharp/testfsstring.sql contrib/pldotnet/tests/fsharp/testfstable.sql contrib/pldotnet/tests/fsharp/testfstrigger.sql contrib/pldotnet/tests/fsharp/testfsuuid.sql contrib/pldotnet/tests/npgsql/PlDotnetTestGenerator.csproj contrib/pldotnet/tests/npgsql/Program.cs contrib/pldotnet/tests/npgsql/npgsql.sql contrib/pldotnet/tests/npgsql/process_npgsql_results.py contrib/pldotnet/tests/npgsql/run_tests.sh contrib/pldotnet/tests/npgsql/run_working_tests.sh contrib/pldotnet/tests/setup.sql contrib/pldotnet/tests/stress_test/create_call_delete_function.sql contrib/pldotnet/tests/stress_test/stress_test.sh contrib/pldotnet/tests/xUnit/.gitignore contrib/pldotnet/tests/xUnit/PlDotNetTest.cs contrib/pldotnet/tests/xUnit/PlDotNetTest.csproj contrib/pldotnet/tests/xUnit/Usings.cs contrib/pldotnet/tests/xUnit/tests/csharp/Bit/ConcatenateVarBitTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Bit/CreateBitMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Bit/CreateVarBitMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Bit/ModifyBitTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Bit/ModifyVarBitTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Bit/ToggleFirstBitsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Bit/ToggleFirstVarBitsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Bit/UpdateBitArrayIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Bit/UpdateVarBitArrayIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/BooL/BooleanAndTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/BooL/BooleanOrTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/BooL/BooleanXorTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/BooL/CountBoolTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/BooL/CreateBooleanMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/BooL/ReturnBoolTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/BooL/ReturnBooleanArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/BooL/UpdateArrayBooleanIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Byea/ByteaConversionsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Byea/ConcatenateByteaTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Byea/ConvertByteaArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Byea/CreateByteaMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Byea/UpdateByteaArrayIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Call/CallFibonacciTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Call/CallUpdateMoneyArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/AddDaysTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/AddHoursTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/AddMinutesTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/CreateDateMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/CreateIntervalMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/CreateTimeMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/CreateTimeTzMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/CreateTimestampMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/CreateTimestampTzMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/IncreaseIntervalsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/IncreaseMinutesTimeArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/IncreaseMinutesTimeTzArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/IncreaseMonthDateArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/IncreaseTimeStampsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/IncreaseTimeStampsTzTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/ModifyInputDateTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/ModifyIntervalTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/SetNewDateTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/UpdateArrayDateIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/UpdateArrayIntervalIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/UpdateArrayTimeIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/UpdateArrayTimeTzIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/UpdateArrayTimestampIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/DateTime/UpdateArrayTimestampTzIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/BooleanAndDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/ByTeaConversionsDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/CombineUUIdsDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/ConcatenateVarCharsDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/IncreaseCidrAddressDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/IncreaseDateOnlyRangesDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/IncreaseInT8RangesDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/IncreaseMacAddress8DllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/IncreaseMoneyDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/MiddlePointDefaultCallDefaultTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/MiddlePointStrictCallDefaultTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/MiddlePointStrictCallStrictTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/ModifyBitDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/ModifyVarBitDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/SetNewDatedLlTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/Sum2BigInTdLlTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/Sum2IntegerDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/Sum2SmallInTdLlTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/SumDoubleArrayDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/UpdateArrayPolygonIndexDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Dll/UpdateJsonArrayIndexDllTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Do/Emoji.cs contrib/pldotnet/tests/xUnit/tests/csharp/Do/Language.cs contrib/pldotnet/tests/xUnit/tests/csharp/Do/MinDouble1.cs contrib/pldotnet/tests/xUnit/tests/csharp/Do/MinDouble2.cs contrib/pldotnet/tests/xUnit/tests/csharp/Do/Sum1.cs contrib/pldotnet/tests/xUnit/tests/csharp/Do/Sum2.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/CreateDoubleMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/CreateRealMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/ReturnDoubleArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/ReturnDoubleTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/ReturnRealArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/ReturnRealTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/SumDoubleArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/SumDoubleTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/SumRealArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/SumRealTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/UpdateArrayDoubleIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Floats/UpdateArrayRealIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/AddPointToPolygonTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/CheckpointsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/CreateBoxMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/CreateBoxTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/CreateCircleMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/CreateLineMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/CreateLineSegmentTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/CreateLineTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/CreateLseGMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/CreatePathMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/CreatePointMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/CreatePolygonMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/DistanceBetweenPointsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/GetMinimumDistanceTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/GetReverseLineSegmentTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/IncreaseBoxSTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/IncreaseBoxTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/IncreaseCircleTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/IncreaseCirclesTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/IncreaseLSegsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/IncreaseLinesTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/IncreasePathTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/IncreasePathsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/IncreasePointsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/IncreasePolygonsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/MiddlePointTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/ModifyCoefficientsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/ReturnCircleTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/ReturnPathTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/ReturnWidthTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/TestBoxTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/UpdateArrayBoxIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/UpdateArrayCircleIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/UpdateArrayLineIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/UpdateArrayLseGIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/UpdateArrayPathIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/UpdateArrayPointIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Geometric/UpdateArrayPolygonIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutArray10Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutArray11Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutBasic0Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutBasic1Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutMultiArg1Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutMultiArg2Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutMultiArg3Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutMultiArg4Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutNull1Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutNull2Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutNull3Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutNull4Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutNull5Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutNull6Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutObject10Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutObject20Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutSimple10Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutSimple20Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/InOut/InOutSimple30Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/CreateBigIntegerMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/CreateIntegerMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/CreateSmallInTMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/MaxBigInTTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/MaxIntegerTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/MaxSmallInTTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/MixedBigInT8Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/MixedBigInTTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/MixedInTTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/ReturnBigIntegerArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/ReturnIntegerArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/ReturnSmallInTArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/Sum2BigInTTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/Sum2IntegerTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/Sum2SmallInTTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/SumBigIntegerArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/SumIntegerArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/SumSmallInTArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/UpdateArrayBigIntegerIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/UpdateArrayIntegerIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Integers/UpdateArraySmallInTIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Json/GetJsonMultiDimensionArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Json/ModifyJsonTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Json/ReplaceJSonsKeyTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Json/ReturnJsonTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Json/UpdateJsonArrayIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Money/ComputeNewSalaryTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Money/CreateMoneyMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Money/IncreaseMoneyTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Money/ReturnMaxMoneyTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Money/ReturnMinMoneyTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Money/ReturnMoneyTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Money/UpdateMoneyArrayIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/AddOneMacAddress8Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/CompareMacAddress8Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/CompareMacAddressTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/CreateCidrMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/CreateInEtMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/CreateMacAddress8MultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/CreateMacAddressMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/IncreaseCidrAddressTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/IncreaseInEtAddressTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/IncreaseMacAddress8Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/IncreaseMacAddressTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/ModifyIpCidrTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/ModifyIpTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/ModifyNetMaskCidrTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/ModifyNetMaskTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/ReturnMacAddressArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/ReturnMacAddressTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/UpdateArrayCidrIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/UpdateArrayMacAddress8IndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/UpdateArrayMacAddressIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Network/UpdateArrayNetMaskIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/PldotnetSettings/AlwaysNullableTest.cs contrib/pldotnet/tests/xUnit/tests/csharp/PldotnetSettings/CompileFSharpWithFCSTest.cs contrib/pldotnet/tests/xUnit/tests/csharp/PldotnetSettings/PathToSaveSourceCodeTest.cs contrib/pldotnet/tests/xUnit/tests/csharp/PldotnetSettings/PathToTemporaryFilesTest.cs contrib/pldotnet/tests/xUnit/tests/csharp/PldotnetSettings/PrintSourceCodeTest.cs contrib/pldotnet/tests/xUnit/tests/csharp/PldotnetSettings/SaveSourceCodeTest.cs contrib/pldotnet/tests/xUnit/tests/csharp/PldotnetSettings/VerboseLevelTest.cs contrib/pldotnet/tests/xUnit/tests/csharp/Procedure/PrintSmallestValueProcedureTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Procedure/PrintSumProcedureTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/CreateDateOnlyRangeArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/CreateInT4RangeArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/CreateInT8RangeArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/CreateTimestampRangeArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/CreateTimestampTzRangeArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/IncreaseDateOnlyRangeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/IncreaseDateOnlyRangesTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/IncreaseInT4RangeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/IncreaseInT4RangesTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/IncreaseInT8RangeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/IncreaseInT8RangesTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/IncreaseTimestampRangeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/IncreaseTimestampRangesTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/IncreaseTimestampTzRangeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/IncreaseTimestampTzRangesTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/UpdateDateOnlyRangeIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/UpdateInT4RangeIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/UpdateInT8RangeIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/UpdateTimestampRangeIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Range/UpdateTimestampTzRangeIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Record/DynamicRecordGeneratorSRfTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Record/DynamicRecordGeneratorTest.cs contrib/pldotnet/tests/xUnit/tests/csharp/Record/DynamicRecordGeneratorTypesTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/IntegerArrayWithNullTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/IntegerOneDimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/RecordWithNullTestsPiTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SPisumIntegers2Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SPisumIntegersPositionParametersTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SPisumIntegersTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiCombineUUIdTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiConcatenateBitTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiConcatenateBpCharTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiConcatenateByTeaTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiConcatenateVarBitTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiConcatenateVarCharTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncBigInTTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncBoxTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncCidrTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncCircleTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncDateTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncDoubleTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncFloatTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncInEtTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncInTTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncIntervalTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncMacAddress8Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncMacAddressTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncMoneyTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncPathTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncSmallInTTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncTimeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncTimeWithTimeZonZeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncTimestampTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiIncTimestampTzTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiInclineTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiModifyDateRangeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiModifyInT4RangeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiModifyInT8RangeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiModifyLseGTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiModifyTimeRangeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiModifyTimeTzRangeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiUpperTextTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpinUlLint4Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpinUllBooLTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpinUllDateTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpinUllFloat8Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpinUllMac8Tests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpinUllStringTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiteStingCompOudParametersTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/SpiteStingCompOudPositionalParametersTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/StringArrayWithNullTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SPI/StringTwoDimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SRF/MakePiTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SRF/NumberTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SRF/NumbersLongNoArgumentTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SRF/NumbersLongTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SRF/StringToIntegerArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/SRF/TenItemsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/AddGoodbyeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/AddSmileToCharsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/AddSmileTovarCharsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/ConcatenateCharsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/ConcatenateTextTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/ConcatenateVarCharsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/CreateCharMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/CreateTextMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/CreateXmlTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/GetVarCharMultiDimensionArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/GetXmlMultiDimensionArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/IdentityStrTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/JoinTextArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/ModifyXmlTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/MultiplyTextTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/MultiplyVarCharTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/ReplaceXmlSwordTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/ReturnTextArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/UpdateArrayTextIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/UpdateCharArrayIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/UpdateVarCharArrayIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/String/UpdateXmlArrayIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Table/TableArgTest.cs contrib/pldotnet/tests/xUnit/tests/csharp/Table/TableArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Table/TableEmptyTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Table/TableTypeTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/Trigger/TriggerTestException.cs contrib/pldotnet/tests/xUnit/tests/csharp/Trigger/TriggerTestFunctionModify.cs contrib/pldotnet/tests/xUnit/tests/csharp/Trigger/TriggerTestPostDml.cs contrib/pldotnet/tests/xUnit/tests/csharp/Trigger/TriggerTestRowUpdate.cs contrib/pldotnet/tests/xUnit/tests/csharp/Trigger/TriggerTestSkip.cs contrib/pldotnet/tests/xUnit/tests/csharp/Trigger/TriggerTestTgVals.cs contrib/pldotnet/tests/xUnit/tests/csharp/Trigger/TriggerTestUpdateType.cs contrib/pldotnet/tests/xUnit/tests/csharp/UUId/CombineUUIdsTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/UUId/CreateUUIdMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/UUId/CreateUUIdTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/UUId/ReturnUUIdTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/UUId/UpdateUUIdArrayIndexTests.cs contrib/pldotnet/tests/xUnit/tests/csharp/UUId/UpdateUUIdArrayTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bit/ConcatenateVarBitFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bit/ModifyBitFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bit/ModifyVarBitFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bit/ToggleFirstBitsFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bit/ToggleFirstVarBitsFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bit/UpdateBitArrayIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bit/UpdateVarBitArrayIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bool/BooleanAndFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bool/BooleanOrFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bool/BooleanXorFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bool/CountBooLFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bool/CreateBooleanMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bool/ReturnBooLFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bool/ReturnBooleanArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Bool/UpdateArrayBooleanIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/ByTea/ByTeaConversionsFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/ByTea/CreateByTeaFsMultidimensionalArrayTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/ByTea/FsUpdateByTeaArrayIndexTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Call/MoneyFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Call/UpdateMoneyFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Date/AddMinutesTimeFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Date/CreateDateFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Date/ModifyTimestampArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/AddDaysFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/AddHoursFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/AddMinutesFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/CreateDateMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/CreateIntervalMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/CreateTimeMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/CreateTimeTzMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/CreateTimestampMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/CreateTimestampTzMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/ModifyInputDateFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/ModifyIntervalFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/SetNewDateFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/UpdateArrayDateIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/UpdateArrayIntervalIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/UpdateArrayTimeIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/UpdateArrayTimeTzIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/UpdateArrayTimestampIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/DateTime/UpdateArrayTimestampTzIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Dll/AddMinutesFsharpDllTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Dll/ConcatenateStringFsharpDllTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Dll/CreateDateFsharpDllTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Dll/ModifyFloat4ArrayFsharpDllTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Dll/ModifyFloat8ArrayFsharpDllTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Dll/ModifyStringArrayFsharpDllTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Dll/ModifyTimestampArrayFsharpDllTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Dll/Mult2InTFsharpDllTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Dll/Sum2SmallInTFsharpDllTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Do/.Sum2.cs.swp contrib/pldotnet/tests/xUnit/tests/fsharp/Do/Message.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Do/Sum1.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Do/Sum2.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Floats/CreateDoubleMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Floats/CreateRealMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Floats/ReturnDoubleArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Floats/ReturnDoubleFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Floats/ReturnRealArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Floats/ReturnRealFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Floats/SumDoubleFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Floats/SumRealFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Floats/UpdateArrayDoubleIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Floats/UpdateArrayRealIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/AddPointToPolygonFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/CheckpointsFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/CreateBoxFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/CreateBoxMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/CreateLineFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/CreateLineMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/CreateLineSegmentFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/CreateLseGMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/CreatePointMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/DistanceBetweenPointsFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/GetMinimumDistanceFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/GetReverseLineSegmentFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/IncreaseBoxFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/IncreaseBoxSFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/IncreaseCircleFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/IncreaseLSegsFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/IncreaseLinesFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/IncreasePathFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/MiddlePointFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/ModifyCoefficientsFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/ReturnCircleFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/ReturnPathFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/ReturnWidthFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/TestBoxFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/UpdateArrayBoxIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/UpdateArrayCircleIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/UpdateArrayLineIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/UpdateArrayLseGIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/UpdateArrayPathIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/UpdateArrayPointIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Geometric/UpdateArrayPolygonIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/InOut/FsInOutAllThreeArrayTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/InOut/FsInOutAllThreeSTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/InOut/FsInOutAllThreeTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/InOut/InOutArray10FsSTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/InOut/InOutArray11FsSTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/InOut/InOutMultiArg1FsSTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/InOut/InOutMultiArg1FsTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/InOut/InOutObject10FsTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/InOut/InOutObject20FsTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/CreateSmallInTMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/MaxBigInTFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/MaxIntegerFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/MaxSmallInTFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/MixedBigInT2FsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/MixedBigInTFsharp2Tests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/MixedBigInTFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/Modify1DArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/Modify2DArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/Mult2InTFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/MultIntegersFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/ReturnIntegerArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/ReturnSmallInTArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/Sum2SmallInTFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Integers/UpdateArrayIntegerFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Json/GetJsonMultiDimensionArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Json/ModifyJsonFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Json/ReturnJsonFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Json/UpdateJsonArrayIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/AddOneMacAddress8FsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/CompareMacAddress8FsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/CompareMacAddressFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/CreateCidrMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/CreateInEtMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/CreateMacAddress8MultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/CreateMacAddressMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/FsModifyNetMaskCidrTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/ModifyIpCidrFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/ModifyIpFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/ModifyNetMaskFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/ReturnMacAddressArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/ReturnMacAddressFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/UpdateArrayCidrIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/UpdateArrayMacAddress8IndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/UpdateArrayMacAddressIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Network/UpdateArrayNetMaskIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/PldotnetSettings/AlwaysNullableFSharpTest.cs contrib/pldotnet/tests/xUnit/tests/fsharp/PldotnetSettings/CompileFSharpWithFCSFSharpTest.cs contrib/pldotnet/tests/xUnit/tests/fsharp/PldotnetSettings/PathToSaveSourceCodeFSharpTest.cs contrib/pldotnet/tests/xUnit/tests/fsharp/PldotnetSettings/PathToTemporaryFilesFSharpTest.cs contrib/pldotnet/tests/xUnit/tests/fsharp/PldotnetSettings/PrintSourceCodeFSharpTest.cs contrib/pldotnet/tests/xUnit/tests/fsharp/PldotnetSettings/SaveSourceCodeFSharpTest.cs contrib/pldotnet/tests/xUnit/tests/fsharp/PldotnetSettings/VerboseLevelFSharpTest.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Procedure/PrintSumProcedureFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Procedure/SayHelloFSharp.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/CreateDateOnlyRangeArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/CreateInT4RangeArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/CreateInT8RangeArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/CreateTimestampRangeArrayEmptyFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/CreateTimestampRangeArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/CreateTimestampTzRangeArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/IncreaseDateOnlyRangeFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/IncreaseInT4RangeFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/IncreaseInT8RangeFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/IncreaseTimestampRangeFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/IncreaseTimestampTzRangeFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/UpdateDateOnlyRangeIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/UpdateInT4RangeIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/UpdateInT8RangeIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/UpdateTimestampRangeIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Range/UpdateTimestampTzRangeIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/AddGoodbyeFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/ConcatenateCharsFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/ConcatenateTextFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/ConcatenateVarCharsFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/CreateXmlFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/IdentityStrFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/ModifyXmlFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/MultiplyTextFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/MultiplyVarCharFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/ReturnTextArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/UpdateArrayTextIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/UpdateCharArrayIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/UpdateVarCharArrayIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/String/UpdateXmlArrayIndexFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Trigger/TriggerTestExceptionFsharp.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Trigger/TriggerTestFunctionModifyFsharp.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Trigger/TriggerTestPostDmlFsharp.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Trigger/TriggerTestRowUpdateFsharp.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Trigger/TriggerTestSkipFsharp.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Trigger/TriggerTestTgValsFsharp.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Trigger/TriggerTestUpdateTypeFsharp.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Uuid/CombineUUIdsFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Uuid/CreateUUIdMultidimensionalArrayFsharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Uuid/CreateUUIdfSharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Uuid/ReturnUUIdfSharpTests.cs contrib/pldotnet/tests/xUnit/tests/fsharp/Uuid/UpdateUUIdArrayIndexFsharpTests.cs contrib/pldotnet/utils/convert_sql_to_xunit/sql_to_xunit.py contrib/pldotnet/utils/convert_xunit_format_rdi/Program.cs contrib/pldotnet/utils/convert_xunit_format_rdi/xunit_test_refactor.csproj contrib/postgis/.codespell.ignore contrib/postgis/.codespellrc contrib/postgis/.editorconfig contrib/postgis/.gitattributes contrib/postgis/.gitignore contrib/postgis/.gitlab/gitlab.com/ci.yml contrib/postgis/.gitlab/inaf.it/ci.yml contrib/postgis/.mailmap contrib/postgis/CODE_OF_CONDUCT.md contrib/postgis/CONTRIBUTING.md contrib/postgis/COPYING contrib/postgis/CREDITS contrib/postgis/ChangeLog contrib/postgis/GNUmakefile.in contrib/postgis/LICENSE.TXT contrib/postgis/Makefile contrib/postgis/NEWS contrib/postgis/README.md contrib/postgis/README.postgis contrib/postgis/SECURITY.md contrib/postgis/STYLE contrib/postgis/TODO contrib/postgis/Version.config contrib/postgis/astyle.sh contrib/postgis/autogen.sh contrib/postgis/configure.ac contrib/postgis/deps/Makefile.in contrib/postgis/deps/flatgeobuf/Makefile.in contrib/postgis/deps/flatgeobuf/feature_generated.h contrib/postgis/deps/flatgeobuf/flatgeobuf_c.cpp contrib/postgis/deps/flatgeobuf/flatgeobuf_c.h contrib/postgis/deps/flatgeobuf/geometryreader.cpp contrib/postgis/deps/flatgeobuf/geometryreader.h contrib/postgis/deps/flatgeobuf/geometrywriter.cpp contrib/postgis/deps/flatgeobuf/geometrywriter.h contrib/postgis/deps/flatgeobuf/header_generated.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/LICENSE contrib/postgis/deps/flatgeobuf/include/flatbuffers/allocator.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/array.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/base.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/bfbs_generator.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/buffer.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/buffer_ref.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/code_generator.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/code_generators.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/default_allocator.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/detached_buffer.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/flatbuffer_builder.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/flatbuffers.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/flatc.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/flex_flat_util.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/flexbuffers.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/grpc.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/hash.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/idl.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/minireflect.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/pch/flatc_pch.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/pch/pch.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/reflection.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/reflection_generated.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/registry.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/stl_emulation.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/string.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/struct.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/table.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/util.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/vector.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/vector_downward.h contrib/postgis/deps/flatgeobuf/include/flatbuffers/verifier.h contrib/postgis/deps/flatgeobuf/packedrtree.cpp contrib/postgis/deps/flatgeobuf/packedrtree.h contrib/postgis/deps/ryu/.clang-format contrib/postgis/deps/ryu/LICENSE contrib/postgis/deps/ryu/LICENSE-Apache2 contrib/postgis/deps/ryu/LICENSE-Boost contrib/postgis/deps/ryu/Makefile.in contrib/postgis/deps/ryu/README.md contrib/postgis/deps/ryu/common.h contrib/postgis/deps/ryu/d2fixed_full_table.h contrib/postgis/deps/ryu/d2s.c contrib/postgis/deps/ryu/d2s_full_table.h contrib/postgis/deps/ryu/d2s_intrinsics.h contrib/postgis/deps/ryu/digit_table.h contrib/postgis/deps/ryu/ryu.h contrib/postgis/deps/uthash/.clang-format contrib/postgis/deps/uthash/LICENSE contrib/postgis/deps/uthash/README.md contrib/postgis/deps/uthash/include/uthash.h contrib/postgis/deps/wagyu/.clang-format contrib/postgis/deps/wagyu/LICENSE.README contrib/postgis/deps/wagyu/LICENSE.geometry contrib/postgis/deps/wagyu/LICENSE.wagyu contrib/postgis/deps/wagyu/Makefile.in contrib/postgis/deps/wagyu/README.md contrib/postgis/deps/wagyu/include/mapbox/feature.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/box.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/empty.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/envelope.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/for_each_point.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/geometry.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/line_string.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/multi_line_string.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/multi_point.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/multi_polygon.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/point.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/point_arithmetic.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/polygon.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/active_bound_list.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/almost_equal.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/bound.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/bubble_sort.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/build_edges.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/build_local_minima_list.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/build_result.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/config.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/edge.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/interrupt.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/intersect.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/intersect_util.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/local_minimum.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/point.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/process_horizontal.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/process_maxima.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/quick_clip.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/ring.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/ring_util.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/scanbeam.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/snap_rounding.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/topology_correction.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/util.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/vatti.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry/wagyu/wagyu.hpp contrib/postgis/deps/wagyu/include/mapbox/geometry_io.hpp contrib/postgis/deps/wagyu/lwgeom_wagyu.cpp contrib/postgis/deps/wagyu/lwgeom_wagyu.h contrib/postgis/doc/.weblate contrib/postgis/doc/Makefile.comments.in contrib/postgis/doc/Makefile.in contrib/postgis/doc/README contrib/postgis/doc/ZMSgeoms.txt contrib/postgis/doc/administration.xml contrib/postgis/doc/bnf-wkb.txt contrib/postgis/doc/bnf-wkt.txt contrib/postgis/doc/database_tuning.xml contrib/postgis/doc/developer.md contrib/postgis/doc/doxygen.cfg.in contrib/postgis/doc/extras.xml contrib/postgis/doc/extras_address_standardizer.xml contrib/postgis/doc/extras_historytable.xml contrib/postgis/doc/extras_tigergeocoder.xml contrib/postgis/doc/extras_topology.xml contrib/postgis/doc/geography.txt contrib/postgis/doc/html/images/Makefile.in contrib/postgis/doc/html/images/generator.c contrib/postgis/doc/html/images/st_azimuthmath.sql contrib/postgis/doc/html/images/static/PostGIS_logo.png contrib/postgis/doc/html/images/static/apple.png contrib/postgis/doc/html/images/static/apple.txt contrib/postgis/doc/html/images/static/apple_st_grayscale.png contrib/postgis/doc/html/images/static/caution.png contrib/postgis/doc/html/images/static/ccbysa.png contrib/postgis/doc/html/images/static/cg_3dalphawrapping03.png contrib/postgis/doc/html/images/static/cg_3dbuffer01-8.png contrib/postgis/doc/html/images/static/cg_3dbuffer01.png contrib/postgis/doc/html/images/static/cg_3dbuffer02.png contrib/postgis/doc/html/images/static/cg_3dbuffer03.png contrib/postgis/doc/html/images/static/cg_3dbuffer04.png contrib/postgis/doc/html/images/static/check.png contrib/postgis/doc/html/images/static/important.png contrib/postgis/doc/html/images/static/matrix_autocast.png contrib/postgis/doc/html/images/static/matrix_checkmark.png contrib/postgis/doc/html/images/static/matrix_sfcgal_enhanced.png contrib/postgis/doc/html/images/static/matrix_sfcgal_required.png contrib/postgis/doc/html/images/static/matrix_transform.png contrib/postgis/doc/html/images/static/note.png contrib/postgis/doc/html/images/static/osgeo_logo.png contrib/postgis/doc/html/images/static/raster_xscale_yscale_xskew_yskew.png contrib/postgis/doc/html/images/static/rt_st_transform01.png contrib/postgis/doc/html/images/static/rt_st_transform02.png contrib/postgis/doc/html/images/static/rt_st_transform03.png contrib/postgis/doc/html/images/static/rt_st_transform04.png contrib/postgis/doc/html/images/static/rt_st_transform05.png contrib/postgis/doc/html/images/static/st_3dconvexhull.png contrib/postgis/doc/html/images/static/st_3ddifference01.png contrib/postgis/doc/html/images/static/st_3ddifference02.png contrib/postgis/doc/html/images/static/st_3dintersection01.png contrib/postgis/doc/html/images/static/st_3dunion01.png contrib/postgis/doc/html/images/static/st_asraster01.png contrib/postgis/doc/html/images/static/st_asraster02.png contrib/postgis/doc/html/images/static/st_asx3d01.png contrib/postgis/doc/html/images/static/st_band01.png contrib/postgis/doc/html/images/static/st_band02.png contrib/postgis/doc/html/images/static/st_band03.png contrib/postgis/doc/html/images/static/st_clip01.png contrib/postgis/doc/html/images/static/st_clip02.png contrib/postgis/doc/html/images/static/st_clip03.png contrib/postgis/doc/html/images/static/st_clip04.png contrib/postgis/doc/html/images/static/st_clip05.png contrib/postgis/doc/html/images/static/st_clusterdbscan01.png contrib/postgis/doc/html/images/static/st_clusterkmeans03.png contrib/postgis/doc/html/images/static/st_colormap_bluered.png contrib/postgis/doc/html/images/static/st_colormap_fire.png contrib/postgis/doc/html/images/static/st_colormap_grey.png contrib/postgis/doc/html/images/static/st_colormap_orig.png contrib/postgis/doc/html/images/static/st_colormap_pseudo.png contrib/postgis/doc/html/images/static/st_colormap_red.png contrib/postgis/doc/html/images/static/st_delaunaytriangles01.png contrib/postgis/doc/html/images/static/st_delaunaytriangles02.png contrib/postgis/doc/html/images/static/st_delaunaytriangles03.png contrib/postgis/doc/html/images/static/st_extrude02.png contrib/postgis/doc/html/images/static/st_extrude04.png contrib/postgis/doc/html/images/static/st_hexagongrid01.png contrib/postgis/doc/html/images/static/st_hexagongrid02.png contrib/postgis/doc/html/images/static/st_hexagongrid03.png contrib/postgis/doc/html/images/static/st_invdistweight4ma_equation.png contrib/postgis/doc/html/images/static/st_mapalgebraexpr01.png contrib/postgis/doc/html/images/static/st_mapalgebraexpr02.png contrib/postgis/doc/html/images/static/st_mapalgebraexpr2_01.png contrib/postgis/doc/html/images/static/st_mapalgebraexpr2_02.png contrib/postgis/doc/html/images/static/st_mapalgebraexpr2_04.png contrib/postgis/doc/html/images/static/st_mapalgebraexpr2_05.png contrib/postgis/doc/html/images/static/st_mapalgebraexpr2_06.png contrib/postgis/doc/html/images/static/st_mapalgebraexpr2_07.png contrib/postgis/doc/html/images/static/st_mapalgebraexpr2_08.png contrib/postgis/doc/html/images/static/st_mapalgebrafct2_01.png contrib/postgis/doc/html/images/static/st_mapalgebrafct2_02.png contrib/postgis/doc/html/images/static/st_mapalgebrafctngb01.png contrib/postgis/doc/html/images/static/st_mapalgebrafctngb02.png contrib/postgis/doc/html/images/static/st_mapalgebramask01.png contrib/postgis/doc/html/images/static/st_mapalgebramask02.png contrib/postgis/doc/html/images/static/st_mapalgebramask03.png contrib/postgis/doc/html/images/static/st_mapalgebramask04.png contrib/postgis/doc/html/images/static/st_removeirrelevantpointsforview.png contrib/postgis/doc/html/images/static/st_removeirrelevantpointsforview_crossing.png contrib/postgis/doc/html/images/static/st_removesmallparts.png contrib/postgis/doc/html/images/static/st_resample01.png contrib/postgis/doc/html/images/static/st_resample02.png contrib/postgis/doc/html/images/static/st_rescale01.png contrib/postgis/doc/html/images/static/st_rescale02.png contrib/postgis/doc/html/images/static/st_straightskeleton02.png contrib/postgis/doc/html/images/static/st_tesselate01.png contrib/postgis/doc/html/images/static/st_tesselate02.png contrib/postgis/doc/html/images/static/tip.png contrib/postgis/doc/html/images/static/warning.png contrib/postgis/doc/html/images/styles.c contrib/postgis/doc/html/images/styles.h contrib/postgis/doc/html/images/wkt/cg_3dalphawrapping01.wkt contrib/postgis/doc/html/images/wkt/cg_3dalphawrapping02.wkt contrib/postgis/doc/html/images/wkt/cg_approxconvexpartition01.wkt contrib/postgis/doc/html/images/wkt/cg_greeneapproxconvexpartition01.wkt contrib/postgis/doc/html/images/wkt/cg_optimalconvexpartition01.wkt contrib/postgis/doc/html/images/wkt/cg_simplify00.wkt contrib/postgis/doc/html/images/wkt/cg_simplify01.wkt contrib/postgis/doc/html/images/wkt/cg_simplify02.wkt contrib/postgis/doc/html/images/wkt/cg_straightskeletonpartition01.wkt contrib/postgis/doc/html/images/wkt/cg_visibility01.wkt contrib/postgis/doc/html/images/wkt/cg_visibility02.wkt contrib/postgis/doc/html/images/wkt/cg_visibility03.wkt contrib/postgis/doc/html/images/wkt/cg_ymonotonepartition01.wkt contrib/postgis/doc/html/images/wkt/cg_ymonotonepartition02.wkt contrib/postgis/doc/html/images/wkt/de9im01.wkt contrib/postgis/doc/html/images/wkt/de9im02.wkt contrib/postgis/doc/html/images/wkt/de9im03.wkt contrib/postgis/doc/html/images/wkt/de9im04.wkt contrib/postgis/doc/html/images/wkt/de9im05.wkt contrib/postgis/doc/html/images/wkt/de9im06.wkt contrib/postgis/doc/html/images/wkt/de9im07.wkt contrib/postgis/doc/html/images/wkt/de9im08.wkt contrib/postgis/doc/html/images/wkt/de9im09.wkt contrib/postgis/doc/html/images/wkt/de9im10.wkt contrib/postgis/doc/html/images/wkt/de9im11.wkt contrib/postgis/doc/html/images/wkt/de9im12.wkt contrib/postgis/doc/html/images/wkt/de9im13.wkt contrib/postgis/doc/html/images/wkt/st_alphashape01.wkt contrib/postgis/doc/html/images/wkt/st_alphashape02.wkt contrib/postgis/doc/html/images/wkt/st_alphashape03.wkt contrib/postgis/doc/html/images/wkt/st_approxconvexpartition01.wkt contrib/postgis/doc/html/images/wkt/st_approximatemedialaxis01.wkt contrib/postgis/doc/html/images/wkt/st_azimuth01.wkt contrib/postgis/doc/html/images/wkt/st_azimuth02.wkt contrib/postgis/doc/html/images/wkt/st_boundary01.wkt contrib/postgis/doc/html/images/wkt/st_boundary02.wkt contrib/postgis/doc/html/images/wkt/st_buffer01.wkt contrib/postgis/doc/html/images/wkt/st_buffer02.wkt contrib/postgis/doc/html/images/wkt/st_buffer03.wkt contrib/postgis/doc/html/images/wkt/st_buffer04.wkt contrib/postgis/doc/html/images/wkt/st_buffer05.wkt contrib/postgis/doc/html/images/wkt/st_buffer06.wkt contrib/postgis/doc/html/images/wkt/st_buffer07.wkt contrib/postgis/doc/html/images/wkt/st_buffer08.wkt contrib/postgis/doc/html/images/wkt/st_buffer09.wkt contrib/postgis/doc/html/images/wkt/st_buffer10.wkt contrib/postgis/doc/html/images/wkt/st_buffer11.wkt contrib/postgis/doc/html/images/wkt/st_buffer12.wkt contrib/postgis/doc/html/images/wkt/st_buffer13.wkt contrib/postgis/doc/html/images/wkt/st_buildarea01.wkt contrib/postgis/doc/html/images/wkt/st_buildarea02.wkt contrib/postgis/doc/html/images/wkt/st_buildarea03.wkt contrib/postgis/doc/html/images/wkt/st_centroid01.wkt contrib/postgis/doc/html/images/wkt/st_centroid02.wkt contrib/postgis/doc/html/images/wkt/st_centroid03.wkt contrib/postgis/doc/html/images/wkt/st_centroid04.wkt contrib/postgis/doc/html/images/wkt/st_chaikinsmoothing01.wkt contrib/postgis/doc/html/images/wkt/st_chaikinsmoothing02.wkt contrib/postgis/doc/html/images/wkt/st_chaikinsmoothing03.wkt contrib/postgis/doc/html/images/wkt/st_chaikinsmoothing04.wkt contrib/postgis/doc/html/images/wkt/st_chaikinsmoothing05.wkt contrib/postgis/doc/html/images/wkt/st_chaikinsmoothing06.wkt contrib/postgis/doc/html/images/wkt/st_closestpoint01.wkt contrib/postgis/doc/html/images/wkt/st_closestpoint02.wkt contrib/postgis/doc/html/images/wkt/st_clusterkmeans02.wkt contrib/postgis/doc/html/images/wkt/st_concavehull01.wkt contrib/postgis/doc/html/images/wkt/st_concavehull02.wkt contrib/postgis/doc/html/images/wkt/st_concavehull03.wkt contrib/postgis/doc/html/images/wkt/st_concavehull04.wkt contrib/postgis/doc/html/images/wkt/st_constraineddelaunaytriangles01.wkt contrib/postgis/doc/html/images/wkt/st_constraineddelaunaytriangles02.wkt contrib/postgis/doc/html/images/wkt/st_contains01.wkt contrib/postgis/doc/html/images/wkt/st_contains02.wkt contrib/postgis/doc/html/images/wkt/st_contains03.wkt contrib/postgis/doc/html/images/wkt/st_contains04.wkt contrib/postgis/doc/html/images/wkt/st_contains05.wkt contrib/postgis/doc/html/images/wkt/st_contains06.wkt contrib/postgis/doc/html/images/wkt/st_contains07.wkt contrib/postgis/doc/html/images/wkt/st_contains08.wkt contrib/postgis/doc/html/images/wkt/st_convexhull01.wkt contrib/postgis/doc/html/images/wkt/st_coverageinvalidedges01.wkt contrib/postgis/doc/html/images/wkt/st_coveragesimplify01.wkt contrib/postgis/doc/html/images/wkt/st_coveragesimplify02.wkt contrib/postgis/doc/html/images/wkt/st_coverageunion01.wkt contrib/postgis/doc/html/images/wkt/st_coverageunion02.wkt contrib/postgis/doc/html/images/wkt/st_crosses01.wkt contrib/postgis/doc/html/images/wkt/st_crosses02.wkt contrib/postgis/doc/html/images/wkt/st_crosses03.wkt contrib/postgis/doc/html/images/wkt/st_crosses04.wkt contrib/postgis/doc/html/images/wkt/st_delaunaytriangles04.wkt contrib/postgis/doc/html/images/wkt/st_difference01.wkt contrib/postgis/doc/html/images/wkt/st_dumppoints01.wkt contrib/postgis/doc/html/images/wkt/st_envelope01.wkt contrib/postgis/doc/html/images/wkt/st_extrude01.wkt contrib/postgis/doc/html/images/wkt/st_extrude03.wkt contrib/postgis/doc/html/images/wkt/st_generatepoints01.wkt contrib/postgis/doc/html/images/wkt/st_geometricmedian01.wkt contrib/postgis/doc/html/images/wkt/st_greeneapproxconvexpartition01.wkt contrib/postgis/doc/html/images/wkt/st_hausdorffdistance01.wkt contrib/postgis/doc/html/images/wkt/st_issimple01.wkt contrib/postgis/doc/html/images/wkt/st_issimple02.wkt contrib/postgis/doc/html/images/wkt/st_issimple03.wkt contrib/postgis/doc/html/images/wkt/st_issimple04.wkt contrib/postgis/doc/html/images/wkt/st_issimple05.wkt contrib/postgis/doc/html/images/wkt/st_issimple06.wkt contrib/postgis/doc/html/images/wkt/st_issimple07.wkt contrib/postgis/doc/html/images/wkt/st_isvalid01.wkt contrib/postgis/doc/html/images/wkt/st_isvalid02.wkt contrib/postgis/doc/html/images/wkt/st_isvalid03.wkt contrib/postgis/doc/html/images/wkt/st_isvalid04.wkt contrib/postgis/doc/html/images/wkt/st_isvalid05.wkt contrib/postgis/doc/html/images/wkt/st_isvalid06.wkt contrib/postgis/doc/html/images/wkt/st_isvalid07.wkt contrib/postgis/doc/html/images/wkt/st_isvalid08.wkt contrib/postgis/doc/html/images/wkt/st_isvalid09.wkt contrib/postgis/doc/html/images/wkt/st_largestemptycircle01.wkt contrib/postgis/doc/html/images/wkt/st_largestemptycircle02.wkt contrib/postgis/doc/html/images/wkt/st_letters01.wkt contrib/postgis/doc/html/images/wkt/st_line_interpolate_point01.wkt contrib/postgis/doc/html/images/wkt/st_line_interpolate_points01.wkt contrib/postgis/doc/html/images/wkt/st_line_substring01.wkt contrib/postgis/doc/html/images/wkt/st_linecrossingdirection01.wkt contrib/postgis/doc/html/images/wkt/st_linecrossingdirection02.wkt contrib/postgis/doc/html/images/wkt/st_linecrossingdirection03.wkt contrib/postgis/doc/html/images/wkt/st_linecrossingdirection04.wkt contrib/postgis/doc/html/images/wkt/st_linemerge01.wkt contrib/postgis/doc/html/images/wkt/st_linemerge02.wkt contrib/postgis/doc/html/images/wkt/st_linemerge03.wkt contrib/postgis/doc/html/images/wkt/st_locatebetween01.wkt contrib/postgis/doc/html/images/wkt/st_longestline01.wkt contrib/postgis/doc/html/images/wkt/st_longestline02.wkt contrib/postgis/doc/html/images/wkt/st_longestline03.wkt contrib/postgis/doc/html/images/wkt/st_makevalid01.wkt contrib/postgis/doc/html/images/wkt/st_makevalid02.wkt contrib/postgis/doc/html/images/wkt/st_makevalid03.wkt contrib/postgis/doc/html/images/wkt/st_makevalid04.wkt contrib/postgis/doc/html/images/wkt/st_makevalid05.wkt contrib/postgis/doc/html/images/wkt/st_makevalid06.wkt contrib/postgis/doc/html/images/wkt/st_maximuminscribedcircle01.wkt contrib/postgis/doc/html/images/wkt/st_maximuminscribedcircle02.wkt contrib/postgis/doc/html/images/wkt/st_minimumboundingcircle01.wkt contrib/postgis/doc/html/images/wkt/st_minkowskisum01.wkt contrib/postgis/doc/html/images/wkt/st_minkowskisum02.wkt contrib/postgis/doc/html/images/wkt/st_minkowskisum03.wkt contrib/postgis/doc/html/images/wkt/st_minkowskisum04.wkt contrib/postgis/doc/html/images/wkt/st_offsetcurve01.wkt contrib/postgis/doc/html/images/wkt/st_offsetcurve02.wkt contrib/postgis/doc/html/images/wkt/st_offsetcurve03.wkt contrib/postgis/doc/html/images/wkt/st_offsetcurve04.wkt contrib/postgis/doc/html/images/wkt/st_offsetcurve05.wkt contrib/postgis/doc/html/images/wkt/st_offsetcurve06.wkt contrib/postgis/doc/html/images/wkt/st_optimalalphashape01.wkt contrib/postgis/doc/html/images/wkt/st_optimalalphashape02.wkt contrib/postgis/doc/html/images/wkt/st_optimalconvexpartition01.wkt contrib/postgis/doc/html/images/wkt/st_orientedenvelope01.wkt contrib/postgis/doc/html/images/wkt/st_overlaps01.wkt contrib/postgis/doc/html/images/wkt/st_overlaps02.wkt contrib/postgis/doc/html/images/wkt/st_overlaps03.wkt contrib/postgis/doc/html/images/wkt/st_overlaps04.wkt contrib/postgis/doc/html/images/wkt/st_overlaps05.wkt contrib/postgis/doc/html/images/wkt/st_overlaps06.wkt contrib/postgis/doc/html/images/wkt/st_pointonsurface.wkt contrib/postgis/doc/html/images/wkt/st_pointonsurface01.wkt contrib/postgis/doc/html/images/wkt/st_pointonsurface02.wkt contrib/postgis/doc/html/images/wkt/st_pointonsurface03.wkt contrib/postgis/doc/html/images/wkt/st_pointonsurface04.wkt contrib/postgis/doc/html/images/wkt/st_polygonize01.wkt contrib/postgis/doc/html/images/wkt/st_polygonize02.wkt contrib/postgis/doc/html/images/wkt/st_segmentize01.wkt contrib/postgis/doc/html/images/wkt/st_sharedpaths01.wkt contrib/postgis/doc/html/images/wkt/st_sharedpaths02.wkt contrib/postgis/doc/html/images/wkt/st_shortestline01.wkt contrib/postgis/doc/html/images/wkt/st_shortestline02.wkt contrib/postgis/doc/html/images/wkt/st_simplify01.wkt contrib/postgis/doc/html/images/wkt/st_simplify02.wkt contrib/postgis/doc/html/images/wkt/st_simplifypolygonhull01.wkt contrib/postgis/doc/html/images/wkt/st_simplifypolygonhull02.wkt contrib/postgis/doc/html/images/wkt/st_simplifypolygonhull03.wkt contrib/postgis/doc/html/images/wkt/st_simplifypreservetopology01.wkt contrib/postgis/doc/html/images/wkt/st_simplifypreservetopology02.wkt contrib/postgis/doc/html/images/wkt/st_simplifyvw01.wkt contrib/postgis/doc/html/images/wkt/st_simplifyvw02.wkt contrib/postgis/doc/html/images/wkt/st_snap01.wkt contrib/postgis/doc/html/images/wkt/st_snap02.wkt contrib/postgis/doc/html/images/wkt/st_snap03.wkt contrib/postgis/doc/html/images/wkt/st_snap04.wkt contrib/postgis/doc/html/images/wkt/st_snap05.wkt contrib/postgis/doc/html/images/wkt/st_split01.wkt contrib/postgis/doc/html/images/wkt/st_split02.wkt contrib/postgis/doc/html/images/wkt/st_split03.wkt contrib/postgis/doc/html/images/wkt/st_split04.wkt contrib/postgis/doc/html/images/wkt/st_straightskeleton01.wkt contrib/postgis/doc/html/images/wkt/st_subdivide01.wkt contrib/postgis/doc/html/images/wkt/st_subdivide02.wkt contrib/postgis/doc/html/images/wkt/st_symdifference01.wkt contrib/postgis/doc/html/images/wkt/st_symdifference02.wkt contrib/postgis/doc/html/images/wkt/st_tesselate03.wkt contrib/postgis/doc/html/images/wkt/st_tesselate04.wkt contrib/postgis/doc/html/images/wkt/st_touches01.wkt contrib/postgis/doc/html/images/wkt/st_touches02.wkt contrib/postgis/doc/html/images/wkt/st_touches03.wkt contrib/postgis/doc/html/images/wkt/st_touches04.wkt contrib/postgis/doc/html/images/wkt/st_touches05.wkt contrib/postgis/doc/html/images/wkt/st_touches06.wkt contrib/postgis/doc/html/images/wkt/st_triangulatepolygon01.wkt contrib/postgis/doc/html/images/wkt/st_triangulatepolygon02.wkt contrib/postgis/doc/html/images/wkt/st_voronoi01.wkt contrib/postgis/doc/html/images/wkt/st_voronoi02.wkt contrib/postgis/doc/html/images/wkt/st_voronoi03.wkt contrib/postgis/doc/html/images/wkt/st_within01.wkt contrib/postgis/doc/html/images/wkt/st_ymonotonepartition01.wkt contrib/postgis/doc/html/images/wkt/styles.conf contrib/postgis/doc/html/style.css contrib/postgis/doc/installation.xml contrib/postgis/doc/introduction.xml contrib/postgis/doc/man/pgsql2shp.1 contrib/postgis/doc/man/pgtopo_export.1 contrib/postgis/doc/man/pgtopo_import.1 contrib/postgis/doc/man/postgis.1 contrib/postgis/doc/man/postgis_restore.1 contrib/postgis/doc/man/shp2pgsql.1 contrib/postgis/doc/performance_tips.xml contrib/postgis/doc/po/Makefile.local contrib/postgis/doc/po/README contrib/postgis/doc/po/da/Makefile.in contrib/postgis/doc/po/da/glossary.tbx contrib/postgis/doc/po/da/postgis-manual.po contrib/postgis/doc/po/de/Makefile.in contrib/postgis/doc/po/de/glossary.tbx contrib/postgis/doc/po/de/postgis-manual.po contrib/postgis/doc/po/es/Makefile.in contrib/postgis/doc/po/es/glossary.tbx contrib/postgis/doc/po/es/postgis-manual.po contrib/postgis/doc/po/fix_broken_xml.sh contrib/postgis/doc/po/fr/Makefile.in contrib/postgis/doc/po/fr/glossary.tbx contrib/postgis/doc/po/fr/postgis-manual.po contrib/postgis/doc/po/it_IT/Makefile.in contrib/postgis/doc/po/it_IT/postgis-manual.po contrib/postgis/doc/po/ja/Makefile.in contrib/postgis/doc/po/ja/glossary.tbx contrib/postgis/doc/po/ja/postgis-manual.po contrib/postgis/doc/po/ja/texstyle.sty contrib/postgis/doc/po/ka/Makefile.in contrib/postgis/doc/po/ka/postgis-manual.po contrib/postgis/doc/po/ko_KR/Makefile.in contrib/postgis/doc/po/ko_KR/postgis-manual.po contrib/postgis/doc/po/ko_KR/texstyle.sty contrib/postgis/doc/po/pl/Makefile.in contrib/postgis/doc/po/pl/glossary.tbx contrib/postgis/doc/po/pl/postgis-manual.po contrib/postgis/doc/po/pt_BR/Makefile.in contrib/postgis/doc/po/pt_BR/glossary.tbx contrib/postgis/doc/po/pt_BR/postgis-manual.po contrib/postgis/doc/po/ro/Makefile.in contrib/postgis/doc/po/ro/postgis-manual.po contrib/postgis/doc/po/ru/Makefile.in contrib/postgis/doc/po/ru/glossary.tbx contrib/postgis/doc/po/ru/postgis-manual.po contrib/postgis/doc/po/strip_untranslatable.sh contrib/postgis/doc/po/sv/Makefile.in contrib/postgis/doc/po/sv/glossary.tbx contrib/postgis/doc/po/sv/postgis-manual.po contrib/postgis/doc/po/templates/README contrib/postgis/doc/po/zh_Hans/Makefile.in contrib/postgis/doc/po/zh_Hans/postgis-manual.po contrib/postgis/doc/po/zh_Hans/texstyle.sty contrib/postgis/doc/postgis.xml contrib/postgis/doc/postgis_special.xml contrib/postgis/doc/reference.xml contrib/postgis/doc/reference_accessor.xml contrib/postgis/doc/reference_bbox.xml contrib/postgis/doc/reference_cluster.xml contrib/postgis/doc/reference_constructor.xml contrib/postgis/doc/reference_coverage.xml contrib/postgis/doc/reference_editor.xml contrib/postgis/doc/reference_exception.xml contrib/postgis/doc/reference_guc.xml contrib/postgis/doc/reference_input.xml contrib/postgis/doc/reference_lrs.xml contrib/postgis/doc/reference_management.xml contrib/postgis/doc/reference_measure.xml contrib/postgis/doc/reference_operator.xml contrib/postgis/doc/reference_output.xml contrib/postgis/doc/reference_overlay.xml contrib/postgis/doc/reference_processing.xml contrib/postgis/doc/reference_raster.xml contrib/postgis/doc/reference_relationship.xml contrib/postgis/doc/reference_sfcgal.xml contrib/postgis/doc/reference_srs.xml contrib/postgis/doc/reference_trajectory.xml contrib/postgis/doc/reference_transformation.xml contrib/postgis/doc/reference_troubleshooting.xml contrib/postgis/doc/reference_type.xml contrib/postgis/doc/reference_validation.xml contrib/postgis/doc/reference_version.xml contrib/postgis/doc/release_notes.xml contrib/postgis/doc/reporting.xml contrib/postgis/doc/rfc/postgis_rfc_02.txt contrib/postgis/doc/rfc/postgis_rfc_03.txt contrib/postgis/doc/rfc/postgis_rfc_03_sheet.txt contrib/postgis/doc/rfc/postgis_rfc_04.txt contrib/postgis/doc/template.xml contrib/postgis/doc/texstyle-common.sty contrib/postgis/doc/texstyle.sty contrib/postgis/doc/using_postgis_dataman.xml contrib/postgis/doc/using_postgis_query.xml contrib/postgis/doc/using_raster_dataman.xml contrib/postgis/doc/xmlformat.conf contrib/postgis/doc/xsl-config.xml contrib/postgis/doc/xsl/LICENSE contrib/postgis/doc/xsl/common_cheatsheet.xsl contrib/postgis/doc/xsl/common_comments.xsl contrib/postgis/doc/xsl/common_utils.xsl contrib/postgis/doc/xsl/list_3d_functions.xml.xsl contrib/postgis/doc/xsl/list_aggregates.xml.xsl contrib/postgis/doc/xsl/list_box_functions.xml.xsl contrib/postgis/doc/xsl/list_curved_geometry_functions.xml.xsl contrib/postgis/doc/xsl/list_dump_functions.xml.xsl contrib/postgis/doc/xsl/list_geography_functions.xml.xsl contrib/postgis/doc/xsl/list_new_functions.xml.xsl contrib/postgis/doc/xsl/list_polyhedral_functions.xml.xsl contrib/postgis/doc/xsl/list_raster_functions.xml.xsl contrib/postgis/doc/xsl/list_sqlmm_functions.xml.xsl contrib/postgis/doc/xsl/list_window_functions.xml.xsl contrib/postgis/doc/xsl/node_by_xpath.xsl contrib/postgis/doc/xsl/post_gis_day_cards.html.xsl contrib/postgis/doc/xsl/postgis_cheatsheet.html.xsl contrib/postgis/doc/xsl/postgis_comments.sql.xsl contrib/postgis/doc/xsl/postgis_gardentest.sql.xsl contrib/postgis/doc/xsl/postgis_reference.xml.xsl contrib/postgis/doc/xsl/raster_cheatsheet.html.xsl contrib/postgis/doc/xsl/raster_comments.sql.xsl contrib/postgis/doc/xsl/raster_gardentest.sql.xsl contrib/postgis/doc/xsl/sfcgal_cheatsheet.html.xsl contrib/postgis/doc/xsl/sfcgal_comments.sql.xsl contrib/postgis/doc/xsl/sfcgal_gardentest.sql.xsl contrib/postgis/doc/xsl/table_body_function_support_matrix.xml.xsl contrib/postgis/doc/xsl/tiger_geocoder_cheatsheet.html.xsl contrib/postgis/doc/xsl/tiger_geocoder_comments.sql.xsl contrib/postgis/doc/xsl/topology_cheatsheet.html.xsl contrib/postgis/doc/xsl/topology_comments.sql.xsl contrib/postgis/doc/xsl/topology_gardentest.sql.xsl contrib/postgis/extensions/Makefile.in contrib/postgis/extensions/README contrib/postgis/extensions/address_standardizer/COPYING contrib/postgis/extensions/address_standardizer/Makefile.in contrib/postgis/extensions/address_standardizer/README.address_standardizer contrib/postgis/extensions/address_standardizer/address_parser.c contrib/postgis/extensions/address_standardizer/address_standardizer.c contrib/postgis/extensions/address_standardizer/address_standardizer.control.in contrib/postgis/extensions/address_standardizer/address_standardizer_data_us.control.in contrib/postgis/extensions/address_standardizer/address_standardizer_functions.sql.in contrib/postgis/extensions/address_standardizer/address_standardizer_types.sql.in contrib/postgis/extensions/address_standardizer/analyze.c contrib/postgis/extensions/address_standardizer/err_param.c contrib/postgis/extensions/address_standardizer/expected/test-debug_standardize_address.out contrib/postgis/extensions/address_standardizer/expected/test-init-extensions.out contrib/postgis/extensions/address_standardizer/expected/test-parseaddress.out contrib/postgis/extensions/address_standardizer/expected/test-standardize_address_1.out contrib/postgis/extensions/address_standardizer/expected/test-standardize_address_2.out contrib/postgis/extensions/address_standardizer/export.c contrib/postgis/extensions/address_standardizer/gamma.c contrib/postgis/extensions/address_standardizer/gamma.h contrib/postgis/extensions/address_standardizer/hash.c contrib/postgis/extensions/address_standardizer/hash.h contrib/postgis/extensions/address_standardizer/khash.h contrib/postgis/extensions/address_standardizer/lexicon.c contrib/postgis/extensions/address_standardizer/micro-macro.sql contrib/postgis/extensions/address_standardizer/mk-city-regex.pl contrib/postgis/extensions/address_standardizer/mk-sql.pl contrib/postgis/extensions/address_standardizer/mk-st-regexp.pl contrib/postgis/extensions/address_standardizer/pagc_api.h contrib/postgis/extensions/address_standardizer/pagc_common.h contrib/postgis/extensions/address_standardizer/pagc_std_api.h contrib/postgis/extensions/address_standardizer/pagc_tools.c contrib/postgis/extensions/address_standardizer/pagc_tools.h contrib/postgis/extensions/address_standardizer/parseaddress-api.c contrib/postgis/extensions/address_standardizer/parseaddress-api.h contrib/postgis/extensions/address_standardizer/parseaddress-regex.h contrib/postgis/extensions/address_standardizer/parseaddress-stcities.h contrib/postgis/extensions/address_standardizer/sql_bits/address_standardizer_data_us_mark_editable_objects.sql.in contrib/postgis/extensions/address_standardizer/standard.c contrib/postgis/extensions/address_standardizer/std_pg_hash.c contrib/postgis/extensions/address_standardizer/std_pg_hash.h contrib/postgis/extensions/address_standardizer/test-debug_standardize_address.sql.in contrib/postgis/extensions/address_standardizer/test-init-extensions.sql.in contrib/postgis/extensions/address_standardizer/test-parseaddress.sql.in contrib/postgis/extensions/address_standardizer/test-standardize_address_1.sql.in contrib/postgis/extensions/address_standardizer/test-standardize_address_2.sql.in contrib/postgis/extensions/address_standardizer/test2.sql contrib/postgis/extensions/address_standardizer/test_main.c contrib/postgis/extensions/address_standardizer/tokenize.c contrib/postgis/extensions/address_standardizer/us_gaz.sql contrib/postgis/extensions/address_standardizer/us_lex.sql contrib/postgis/extensions/address_standardizer/us_rules.sql contrib/postgis/extensions/address_standardizer/usps-st-city-adds.txt contrib/postgis/extensions/address_standardizer/usps-st-city-orig.txt contrib/postgis/extensions/extensions_unpackage.sh contrib/postgis/extensions/extensions_unpackage.sql contrib/postgis/extensions/postgis/META.json contrib/postgis/extensions/postgis/Makefile.in contrib/postgis/extensions/postgis/doc/postgis.md contrib/postgis/extensions/postgis/postgis.control.in contrib/postgis/extensions/postgis/unpackage_raster_if_needed.sql contrib/postgis/extensions/postgis_extension_helper.sql.in contrib/postgis/extensions/postgis_extension_helper_uninstall.sql contrib/postgis/extensions/postgis_raster/Makefile.in contrib/postgis/extensions/postgis_raster/postgis_raster.control.in contrib/postgis/extensions/postgis_sfcgal/Makefile.in contrib/postgis/extensions/postgis_sfcgal/postgis_sfcgal.control.in contrib/postgis/extensions/postgis_tiger_geocoder/META.json contrib/postgis/extensions/postgis_tiger_geocoder/Makefile.in contrib/postgis/extensions/postgis_tiger_geocoder/doc/postgis_tiger_geocoder.md contrib/postgis/extensions/postgis_tiger_geocoder/postgis_tiger_geocoder.control.in contrib/postgis/extensions/postgis_tiger_geocoder/sql_bits/add_search_path.sql.in contrib/postgis/extensions/postgis_tiger_geocoder/sql_bits/mark_editable_objects.sql.in contrib/postgis/extensions/postgis_tiger_geocoder/sql_bits/norm_addy_create.sql.in contrib/postgis/extensions/postgis_tiger_geocoder/sql_bits/norm_addy_upgrade.sql.in contrib/postgis/extensions/postgis_tiger_geocoder/sql_bits/test_tuples_only_unaligned.sql.in contrib/postgis/extensions/postgis_tiger_geocoder/sql_bits/tiger_geocoder--unpackaged.sql.in contrib/postgis/extensions/postgis_tiger_geocoder/sql_bits/upgrade_before.sql.in contrib/postgis/extensions/postgis_tiger_geocoder/tests.mk contrib/postgis/extensions/postgis_topology/META.json contrib/postgis/extensions/postgis_topology/Makefile.in contrib/postgis/extensions/postgis_topology/doc/postgis.md contrib/postgis/extensions/postgis_topology/extlock.sql contrib/postgis/extensions/postgis_topology/postgis_topology.control.in contrib/postgis/extensions/postgis_topology/sql_bits/mark_editable_objects.sql.in contrib/postgis/extensions/upgrade-paths-rules.mk contrib/postgis/extensions/upgradeable_versions.mk contrib/postgis/extras/history_table/README contrib/postgis/extras/history_table/history_table.sql contrib/postgis/extras/ogc_test_suite/1_schema.sql contrib/postgis/extras/ogc_test_suite/2_queries.sql contrib/postgis/extras/ogc_test_suite/3_cleanup.sql contrib/postgis/extras/ogc_test_suite/Makefile contrib/postgis/extras/ogc_test_suite/README contrib/postgis/extras/rpm/README contrib/postgis/extras/rpm/patches/filter-requires-perl-Pg.sh contrib/postgis/extras/rpm/patches/postgis-configure.patch contrib/postgis/extras/rpm/patches/postgis-javamakefile.patch contrib/postgis/extras/rpm/spec/postgis.spec contrib/postgis/extras/template_gis/Makefile contrib/postgis/extras/template_gis/README contrib/postgis/extras/template_gis/createdb.postgis.1 contrib/postgis/extras/template_gis/createdb.postgis.in contrib/postgis/extras/template_gis/mktemplate_gis.1 contrib/postgis/extras/template_gis/mktemplate_gis.in contrib/postgis/extras/template_gis/mktemplate_gis.sh.in contrib/postgis/extras/template_gis/postgis_env.sh.in contrib/postgis/extras/template_gis/postgres_lib.sh.in contrib/postgis/extras/template_gis/profile contrib/postgis/extras/template_gis/rmtemplate_gis.1 contrib/postgis/extras/template_gis/rmtemplate_gis.in contrib/postgis/extras/template_gis/rmtemplate_gis.sh.in contrib/postgis/extras/tiger_geocoder/COPYING contrib/postgis/extras/tiger_geocoder/README contrib/postgis/extras/tiger_geocoder/create_geocode.sql contrib/postgis/extras/tiger_geocoder/geocode/census_tracts_functions.sql contrib/postgis/extras/tiger_geocoder/geocode/geocode.sql contrib/postgis/extras/tiger_geocoder/geocode/geocode_address.sql contrib/postgis/extras/tiger_geocoder/geocode/geocode_intersection.sql contrib/postgis/extras/tiger_geocoder/geocode/geocode_location.sql contrib/postgis/extras/tiger_geocoder/geocode/includes_address.sql contrib/postgis/extras/tiger_geocoder/geocode/interpolate_from_address.sql contrib/postgis/extras/tiger_geocoder/geocode/other_helper_functions.sql contrib/postgis/extras/tiger_geocoder/geocode/rate_attributes.sql contrib/postgis/extras/tiger_geocoder/geocode/reverse_geocode.sql contrib/postgis/extras/tiger_geocoder/geocode_settings.sql contrib/postgis/extras/tiger_geocoder/legacy_import/tiger2008/import_tiger_shps.sh contrib/postgis/extras/tiger_geocoder/normalize/count_words.sql contrib/postgis/extras/tiger_geocoder/normalize/end_soundex.sql contrib/postgis/extras/tiger_geocoder/normalize/get_last_words.sql contrib/postgis/extras/tiger_geocoder/normalize/location_extract.sql contrib/postgis/extras/tiger_geocoder/normalize/location_extract_countysub_exact.sql contrib/postgis/extras/tiger_geocoder/normalize/location_extract_countysub_fuzzy.sql contrib/postgis/extras/tiger_geocoder/normalize/location_extract_place_exact.sql contrib/postgis/extras/tiger_geocoder/normalize/location_extract_place_fuzzy.sql contrib/postgis/extras/tiger_geocoder/normalize/normalize_address.sql contrib/postgis/extras/tiger_geocoder/normalize/pprint_addy.sql contrib/postgis/extras/tiger_geocoder/normalize/state_extract.sql contrib/postgis/extras/tiger_geocoder/pagc_normalize/pagc_normalize_address.sql contrib/postgis/extras/tiger_geocoder/pagc_normalize/pagc_tables.sql contrib/postgis/extras/tiger_geocoder/regress/geocode_regress contrib/postgis/extras/tiger_geocoder/regress/geocode_regress.sql contrib/postgis/extras/tiger_geocoder/regress/normalize_address_desired_regress contrib/postgis/extras/tiger_geocoder/regress/normalize_address_regress contrib/postgis/extras/tiger_geocoder/regress/normalize_address_regress.sql contrib/postgis/extras/tiger_geocoder/regress/pagc_normalize_address_desired_regress contrib/postgis/extras/tiger_geocoder/regress/pagc_normalize_address_regress contrib/postgis/extras/tiger_geocoder/regress/pagc_normalize_address_regress.sql contrib/postgis/extras/tiger_geocoder/regress/regress.sql contrib/postgis/extras/tiger_geocoder/regress/reverse_geocode_regress contrib/postgis/extras/tiger_geocoder/regress/reverse_geocode_regress.sql contrib/postgis/extras/tiger_geocoder/tables/lookup_tables_2011.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2011.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2012.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2013.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2014.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2015.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2016.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2017.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2018.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2019.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2020.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2021.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2022.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2023.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2024.sql contrib/postgis/extras/tiger_geocoder/tiger_loader_2025.sql contrib/postgis/extras/tiger_geocoder/topology/README contrib/postgis/extras/tiger_geocoder/topology/tiger_topology_loader.sql contrib/postgis/extras/tiger_geocoder/upgrade_geocode.sql contrib/postgis/extras/tiger_geocoder/utility/cull_null.sql contrib/postgis/extras/tiger_geocoder/utility/levenshtein_ignore_case.sql contrib/postgis/extras/tiger_geocoder/utility/nullable_levenshtein.sql contrib/postgis/extras/tiger_geocoder/utility/set_search_path.sql contrib/postgis/extras/tiger_geocoder/utility/standardize_tiger_data.sql contrib/postgis/extras/tiger_geocoder/utility/utmzone.sql contrib/postgis/extras/wkb_reader/Makefile contrib/postgis/extras/wkb_reader/README contrib/postgis/extras/wkb_reader/printwkb.c contrib/postgis/extras/wkb_reader/readwkb.c contrib/postgis/extras/wkb_reader/wkbtest.h contrib/postgis/fuzzers/Makefile contrib/postgis/fuzzers/README.TXT contrib/postgis/fuzzers/build_google_oss_fuzzers.sh contrib/postgis/fuzzers/build_seed_corpus.sh contrib/postgis/fuzzers/fuzzingengine.c contrib/postgis/fuzzers/geojson_import_fuzzer.cpp contrib/postgis/fuzzers/geojson_import_fuzzer.dict contrib/postgis/fuzzers/geojson_import_fuzzer.options contrib/postgis/fuzzers/geojson_import_fuzzer_seed_corpus.zip contrib/postgis/fuzzers/geos_stub.h contrib/postgis/fuzzers/proj_stub.h contrib/postgis/fuzzers/wkb_import_fuzzer.cpp contrib/postgis/fuzzers/wkb_import_fuzzer.options contrib/postgis/fuzzers/wkt_import_fuzzer.cpp contrib/postgis/fuzzers/wkt_import_fuzzer.dict contrib/postgis/fuzzers/wkt_import_fuzzer.options contrib/postgis/liblwgeom/Makefile.in contrib/postgis/liblwgeom/bytebuffer.c contrib/postgis/liblwgeom/bytebuffer.h contrib/postgis/liblwgeom/cunit/Makefile.in contrib/postgis/liblwgeom/cunit/README contrib/postgis/liblwgeom/cunit/cu_algorithm.c contrib/postgis/liblwgeom/cunit/cu_boundary.c contrib/postgis/liblwgeom/cunit/cu_buildarea.c contrib/postgis/liblwgeom/cunit/cu_bytebuffer.c contrib/postgis/liblwgeom/cunit/cu_chaikin.c contrib/postgis/liblwgeom/cunit/cu_clean.c contrib/postgis/liblwgeom/cunit/cu_clip_by_rect.c contrib/postgis/liblwgeom/cunit/cu_effectivearea.c contrib/postgis/liblwgeom/cunit/cu_filterm.c contrib/postgis/liblwgeom/cunit/cu_force_dims.c contrib/postgis/liblwgeom/cunit/cu_force_sfs.c contrib/postgis/liblwgeom/cunit/cu_geodetic.c contrib/postgis/liblwgeom/cunit/cu_geodetic_data.h contrib/postgis/liblwgeom/cunit/cu_geos.c contrib/postgis/liblwgeom/cunit/cu_geos_cluster.c contrib/postgis/liblwgeom/cunit/cu_gserialized1.c contrib/postgis/liblwgeom/cunit/cu_gserialized2.c contrib/postgis/liblwgeom/cunit/cu_homogenize.c contrib/postgis/liblwgeom/cunit/cu_in_encoded_polyline.c contrib/postgis/liblwgeom/cunit/cu_in_geojson.c contrib/postgis/liblwgeom/cunit/cu_in_twkb.c contrib/postgis/liblwgeom/cunit/cu_in_wkb.c contrib/postgis/liblwgeom/cunit/cu_in_wkt.c contrib/postgis/liblwgeom/cunit/cu_iterator.c contrib/postgis/liblwgeom/cunit/cu_lwstroke.c contrib/postgis/liblwgeom/cunit/cu_measures.c contrib/postgis/liblwgeom/cunit/cu_minimum_bounding_circle.c contrib/postgis/liblwgeom/cunit/cu_misc.c contrib/postgis/liblwgeom/cunit/cu_node.c contrib/postgis/liblwgeom/cunit/cu_out_encoded_polyline.c contrib/postgis/liblwgeom/cunit/cu_out_geojson.c contrib/postgis/liblwgeom/cunit/cu_out_gml.c contrib/postgis/liblwgeom/cunit/cu_out_kml.c contrib/postgis/liblwgeom/cunit/cu_out_svg.c contrib/postgis/liblwgeom/cunit/cu_out_twkb.c contrib/postgis/liblwgeom/cunit/cu_out_wkb.c contrib/postgis/liblwgeom/cunit/cu_out_wkt.c contrib/postgis/liblwgeom/cunit/cu_out_x3d.c contrib/postgis/liblwgeom/cunit/cu_print.c contrib/postgis/liblwgeom/cunit/cu_ptarray.c contrib/postgis/liblwgeom/cunit/cu_remove_irrelevant_points_for_view.c contrib/postgis/liblwgeom/cunit/cu_sfcgal.c contrib/postgis/liblwgeom/cunit/cu_split.c contrib/postgis/liblwgeom/cunit/cu_stringbuffer.c contrib/postgis/liblwgeom/cunit/cu_surface.c contrib/postgis/liblwgeom/cunit/cu_surface.h contrib/postgis/liblwgeom/cunit/cu_tester.c contrib/postgis/liblwgeom/cunit/cu_tester.h contrib/postgis/liblwgeom/cunit/cu_tree.c contrib/postgis/liblwgeom/cunit/cu_triangulate.c contrib/postgis/liblwgeom/cunit/cu_unionfind.c contrib/postgis/liblwgeom/cunit/cu_varint.c contrib/postgis/liblwgeom/cunit/cu_wrapx.c contrib/postgis/liblwgeom/effectivearea.c contrib/postgis/liblwgeom/effectivearea.h contrib/postgis/liblwgeom/gbox.c contrib/postgis/liblwgeom/gserialized.c contrib/postgis/liblwgeom/gserialized.h contrib/postgis/liblwgeom/gserialized.txt contrib/postgis/liblwgeom/gserialized1.c contrib/postgis/liblwgeom/gserialized1.h contrib/postgis/liblwgeom/gserialized2.c contrib/postgis/liblwgeom/gserialized2.h contrib/postgis/liblwgeom/intervaltree.c contrib/postgis/liblwgeom/intervaltree.h contrib/postgis/liblwgeom/liblwgeom.h.in contrib/postgis/liblwgeom/liblwgeom_internal.h contrib/postgis/liblwgeom/lookup3.c contrib/postgis/liblwgeom/lwalgorithm.c contrib/postgis/liblwgeom/lwboundingcircle.c contrib/postgis/liblwgeom/lwchaikins.c contrib/postgis/liblwgeom/lwcircstring.c contrib/postgis/liblwgeom/lwcollection.c contrib/postgis/liblwgeom/lwcompound.c contrib/postgis/liblwgeom/lwcurvepoly.c contrib/postgis/liblwgeom/lwgeodetic.c contrib/postgis/liblwgeom/lwgeodetic.h contrib/postgis/liblwgeom/lwgeodetic_measures.c contrib/postgis/liblwgeom/lwgeodetic_tree.c contrib/postgis/liblwgeom/lwgeodetic_tree.h contrib/postgis/liblwgeom/lwgeom.c contrib/postgis/liblwgeom/lwgeom_api.c contrib/postgis/liblwgeom/lwgeom_debug.c contrib/postgis/liblwgeom/lwgeom_geos.c contrib/postgis/liblwgeom/lwgeom_geos.h contrib/postgis/liblwgeom/lwgeom_geos_clean.c contrib/postgis/liblwgeom/lwgeom_geos_cluster.c contrib/postgis/liblwgeom/lwgeom_geos_node.c contrib/postgis/liblwgeom/lwgeom_geos_split.c contrib/postgis/liblwgeom/lwgeom_log.h contrib/postgis/liblwgeom/lwgeom_median.c contrib/postgis/liblwgeom/lwgeom_remove_irrelevant_points_for_view.c contrib/postgis/liblwgeom/lwgeom_remove_irrelevant_points_for_view.h contrib/postgis/liblwgeom/lwgeom_sfcgal.c contrib/postgis/liblwgeom/lwgeom_sfcgal.h contrib/postgis/liblwgeom/lwgeom_transform.c contrib/postgis/liblwgeom/lwgeom_wrapx.c contrib/postgis/liblwgeom/lwhomogenize.c contrib/postgis/liblwgeom/lwin_encoded_polyline.c contrib/postgis/liblwgeom/lwin_geojson.c contrib/postgis/liblwgeom/lwin_twkb.c contrib/postgis/liblwgeom/lwin_wkb.c contrib/postgis/liblwgeom/lwin_wkt.c contrib/postgis/liblwgeom/lwin_wkt.h contrib/postgis/liblwgeom/lwin_wkt_lex.c contrib/postgis/liblwgeom/lwin_wkt_lex.l contrib/postgis/liblwgeom/lwin_wkt_parse.c contrib/postgis/liblwgeom/lwin_wkt_parse.h contrib/postgis/liblwgeom/lwin_wkt_parse.y contrib/postgis/liblwgeom/lwinline.h contrib/postgis/liblwgeom/lwiterator.c contrib/postgis/liblwgeom/lwkmeans.c contrib/postgis/liblwgeom/lwline.c contrib/postgis/liblwgeom/lwlinearreferencing.c contrib/postgis/liblwgeom/lwmcurve.c contrib/postgis/liblwgeom/lwmline.c contrib/postgis/liblwgeom/lwmpoint.c contrib/postgis/liblwgeom/lwmpoly.c contrib/postgis/liblwgeom/lwmsurface.c contrib/postgis/liblwgeom/lwmval.c contrib/postgis/liblwgeom/lwout_encoded_polyline.c contrib/postgis/liblwgeom/lwout_geojson.c contrib/postgis/liblwgeom/lwout_gml.c contrib/postgis/liblwgeom/lwout_kml.c contrib/postgis/liblwgeom/lwout_svg.c contrib/postgis/liblwgeom/lwout_twkb.c contrib/postgis/liblwgeom/lwout_twkb.h contrib/postgis/liblwgeom/lwout_wkb.c contrib/postgis/liblwgeom/lwout_wkt.c contrib/postgis/liblwgeom/lwout_x3d.c contrib/postgis/liblwgeom/lwout_x3d.h contrib/postgis/liblwgeom/lwpoint.c contrib/postgis/liblwgeom/lwpoly.c contrib/postgis/liblwgeom/lwprint.c contrib/postgis/liblwgeom/lwpsurface.c contrib/postgis/liblwgeom/lwrandom.c contrib/postgis/liblwgeom/lwrandom.h contrib/postgis/liblwgeom/lwspheroid.c contrib/postgis/liblwgeom/lwstroke.c contrib/postgis/liblwgeom/lwtin.c contrib/postgis/liblwgeom/lwtree.c contrib/postgis/liblwgeom/lwtree.h contrib/postgis/liblwgeom/lwtriangle.c contrib/postgis/liblwgeom/lwunionfind.c contrib/postgis/liblwgeom/lwunionfind.h contrib/postgis/liblwgeom/lwutil.c contrib/postgis/liblwgeom/measures.c contrib/postgis/liblwgeom/measures.h contrib/postgis/liblwgeom/measures3d.c contrib/postgis/liblwgeom/measures3d.h contrib/postgis/liblwgeom/optionlist.c contrib/postgis/liblwgeom/optionlist.h contrib/postgis/liblwgeom/ptarray.c contrib/postgis/liblwgeom/stringbuffer.c contrib/postgis/liblwgeom/stringbuffer.h contrib/postgis/liblwgeom/stringlist.c contrib/postgis/liblwgeom/stringlist.h contrib/postgis/liblwgeom/topo/README.topo contrib/postgis/liblwgeom/topo/liblwgeom_topo.h contrib/postgis/liblwgeom/topo/liblwgeom_topo_internal.h contrib/postgis/liblwgeom/topo/lwgeom_topo.c contrib/postgis/liblwgeom/topo/lwgeom_topo_polygonizer.c contrib/postgis/liblwgeom/topo/lwt_edgeend.c contrib/postgis/liblwgeom/topo/lwt_edgeend.h contrib/postgis/liblwgeom/topo/lwt_edgeend_star.c contrib/postgis/liblwgeom/topo/lwt_edgeend_star.h contrib/postgis/liblwgeom/topo/lwt_node_edges.c contrib/postgis/liblwgeom/topo/lwt_node_edges.h contrib/postgis/liblwgeom/varint.c contrib/postgis/liblwgeom/varint.h contrib/postgis/libpgcommon/Makefile.in contrib/postgis/libpgcommon/common.h contrib/postgis/libpgcommon/cunit/Makefile.in contrib/postgis/libpgcommon/gserialized_gist.c contrib/postgis/libpgcommon/gserialized_gist.h contrib/postgis/libpgcommon/lwgeom_cache.c contrib/postgis/libpgcommon/lwgeom_cache.h contrib/postgis/libpgcommon/lwgeom_pg.c contrib/postgis/libpgcommon/lwgeom_pg.h contrib/postgis/libpgcommon/lwgeom_transform.c contrib/postgis/libpgcommon/lwgeom_transform.h contrib/postgis/libpgcommon/shared_gserialized.c contrib/postgis/libpgcommon/sql/AddToSearchPath.sql.inc contrib/postgis/loader/Makefile.in contrib/postgis/loader/README.i18n contrib/postgis/loader/README.pgsql2shp contrib/postgis/loader/README.shp2pgsql contrib/postgis/loader/README.txt contrib/postgis/loader/cunit/Makefile.in contrib/postgis/loader/cunit/cu_pgsql2shp.c contrib/postgis/loader/cunit/cu_pgsql2shp.h contrib/postgis/loader/cunit/cu_shp2pgsql.c contrib/postgis/loader/cunit/cu_shp2pgsql.h contrib/postgis/loader/cunit/cu_tester.c contrib/postgis/loader/cunit/cu_tester.h contrib/postgis/loader/cunit/map.txt contrib/postgis/loader/dbfopen.c contrib/postgis/loader/getopt.c contrib/postgis/loader/getopt.h contrib/postgis/loader/icons/hicolor/16x16/apps/shp2pgsql-gui.png contrib/postgis/loader/icons/hicolor/22x22/apps/shp2pgsql-gui.png contrib/postgis/loader/icons/hicolor/24x24/apps/shp2pgsql-gui.png contrib/postgis/loader/icons/hicolor/32x32/apps/shp2pgsql-gui.png contrib/postgis/loader/icons/hicolor/36x36/apps/shp2pgsql-gui.png contrib/postgis/loader/icons/hicolor/40x40/apps/shp2pgsql-gui.png contrib/postgis/loader/icons/hicolor/42x42/apps/shp2pgsql-gui.png contrib/postgis/loader/icons/hicolor/48x48/apps/shp2pgsql-gui.png contrib/postgis/loader/icons/hicolor/64x64/apps/shp2pgsql-gui.png contrib/postgis/loader/icons/hicolor/8x8/apps/shp2pgsql-gui.png contrib/postgis/loader/image/error.png contrib/postgis/loader/image/good.png contrib/postgis/loader/image/icon_source.svg contrib/postgis/loader/image/warn.png contrib/postgis/loader/pgsql2shp-cli.c contrib/postgis/loader/pgsql2shp-core.c contrib/postgis/loader/pgsql2shp-core.h contrib/postgis/loader/postgis.pl contrib/postgis/loader/safileio.c contrib/postgis/loader/shapefil.h contrib/postgis/loader/shp2pgsql-cli.c contrib/postgis/loader/shp2pgsql-core.c contrib/postgis/loader/shp2pgsql-core.h contrib/postgis/loader/shp2pgsql-gui.1 contrib/postgis/loader/shp2pgsql-gui.c contrib/postgis/loader/shp2pgsql-gui.desktop contrib/postgis/loader/shp2pgsql-gui.ico contrib/postgis/loader/shp2pgsql-gui.rc contrib/postgis/loader/shpcommon.c contrib/postgis/loader/shpcommon.h contrib/postgis/loader/shpopen.c contrib/postgis/macros/ac_proj4_version.m4 contrib/postgis/macros/ac_protobufc_version.m4 contrib/postgis/macros/ax_cxx_compile_stdcxx.m4 contrib/postgis/macros/codeset.m4 contrib/postgis/macros/compiler-vendor.m4 contrib/postgis/macros/gettext.m4 contrib/postgis/macros/gtk-2.0.m4 contrib/postgis/macros/host-cpu-c-abi.m4 contrib/postgis/macros/iconv.m4 contrib/postgis/macros/intl.m4 contrib/postgis/macros/intlmacosx.m4 contrib/postgis/macros/lib-ld.m4 contrib/postgis/macros/lib-link.m4 contrib/postgis/macros/lib-prefix.m4 contrib/postgis/macros/nls.m4 contrib/postgis/macros/pkg.m4 contrib/postgis/macros/po.m4 contrib/postgis/macros/progtest.m4 contrib/postgis/postgis/DEBUG contrib/postgis/postgis/Makefile.in contrib/postgis/postgis/README contrib/postgis/postgis/brin_2d.c contrib/postgis/postgis/brin_common.c contrib/postgis/postgis/brin_nd.c contrib/postgis/postgis/common_after_upgrade.sql contrib/postgis/postgis/common_before_upgrade.sql contrib/postgis/postgis/cunit/Makefile.in contrib/postgis/postgis/cunit/cu_tester.c contrib/postgis/postgis/flatgeobuf.c contrib/postgis/postgis/flatgeobuf.h contrib/postgis/postgis/geobuf.LICENSE contrib/postgis/postgis/geobuf.c contrib/postgis/postgis/geobuf.h contrib/postgis/postgis/geobuf.proto contrib/postgis/postgis/geography.h contrib/postgis/postgis/geography.sql.in contrib/postgis/postgis/geography_brin.sql.in contrib/postgis/postgis/geography_btree.c contrib/postgis/postgis/geography_centroid.c contrib/postgis/postgis/geography_inout.c contrib/postgis/postgis/geography_measurement.c contrib/postgis/postgis/geography_measurement_trees.c contrib/postgis/postgis/geography_measurement_trees.h contrib/postgis/postgis/geometry_inout.c contrib/postgis/postgis/gserialized_estimate.c contrib/postgis/postgis/gserialized_estimate_support.h contrib/postgis/postgis/gserialized_gist_2d.c contrib/postgis/postgis/gserialized_gist_nd.c contrib/postgis/postgis/gserialized_spgist_2d.c contrib/postgis/postgis/gserialized_spgist_3d.c contrib/postgis/postgis/gserialized_spgist_3d.h contrib/postgis/postgis/gserialized_spgist_nd.c contrib/postgis/postgis/gserialized_supportfn.c contrib/postgis/postgis/gserialized_typmod.c contrib/postgis/postgis/legacy.sql.in contrib/postgis/postgis/legacy_gist.sql.in contrib/postgis/postgis/legacy_minimal.sql.in contrib/postgis/postgis/lwgeom_accum.c contrib/postgis/postgis/lwgeom_accum.h contrib/postgis/postgis/lwgeom_box.c contrib/postgis/postgis/lwgeom_box3d.c contrib/postgis/postgis/lwgeom_box3d.h contrib/postgis/postgis/lwgeom_btree.c contrib/postgis/postgis/lwgeom_dump.c contrib/postgis/postgis/lwgeom_dumppoints.c contrib/postgis/postgis/lwgeom_export.c contrib/postgis/postgis/lwgeom_functions_analytic.c contrib/postgis/postgis/lwgeom_functions_basic.c contrib/postgis/postgis/lwgeom_functions_lrs.c contrib/postgis/postgis/lwgeom_functions_temporal.c contrib/postgis/postgis/lwgeom_generate_grid.c contrib/postgis/postgis/lwgeom_geos.c contrib/postgis/postgis/lwgeom_geos.h contrib/postgis/postgis/lwgeom_geos_clean.c contrib/postgis/postgis/lwgeom_geos_predicates.c contrib/postgis/postgis/lwgeom_geos_prepared.c contrib/postgis/postgis/lwgeom_geos_prepared.h contrib/postgis/postgis/lwgeom_geos_relatematch.c contrib/postgis/postgis/lwgeom_in_encoded_polyline.c contrib/postgis/postgis/lwgeom_in_flatgeobuf.c contrib/postgis/postgis/lwgeom_in_geohash.c contrib/postgis/postgis/lwgeom_in_geojson.c contrib/postgis/postgis/lwgeom_in_gml.c contrib/postgis/postgis/lwgeom_in_kml.c contrib/postgis/postgis/lwgeom_in_marc21.c contrib/postgis/postgis/lwgeom_inout.c contrib/postgis/postgis/lwgeom_itree.c contrib/postgis/postgis/lwgeom_itree.h contrib/postgis/postgis/lwgeom_ogc.c contrib/postgis/postgis/lwgeom_out_flatgeobuf.c contrib/postgis/postgis/lwgeom_out_geobuf.c contrib/postgis/postgis/lwgeom_out_geojson.c contrib/postgis/postgis/lwgeom_out_marc21.c contrib/postgis/postgis/lwgeom_out_mvt.c contrib/postgis/postgis/lwgeom_rectree.c contrib/postgis/postgis/lwgeom_remove_irrelevant_points_for_view.c contrib/postgis/postgis/lwgeom_remove_small_parts.c contrib/postgis/postgis/lwgeom_spheroid.c contrib/postgis/postgis/lwgeom_sqlmm.c contrib/postgis/postgis/lwgeom_transform.c contrib/postgis/postgis/lwgeom_triggers.c contrib/postgis/postgis/lwgeom_union.c contrib/postgis/postgis/lwgeom_union.h contrib/postgis/postgis/lwgeom_window.c contrib/postgis/postgis/mvt.c contrib/postgis/postgis/mvt.h contrib/postgis/postgis/postgis.sql.in contrib/postgis/postgis/postgis_after_upgrade.sql contrib/postgis/postgis/postgis_before_upgrade.sql contrib/postgis/postgis/postgis_brin.h contrib/postgis/postgis/postgis_brin.sql.in contrib/postgis/postgis/postgis_legacy.c contrib/postgis/postgis/postgis_letters.sql contrib/postgis/postgis/postgis_libprotobuf.c contrib/postgis/postgis/postgis_module.c contrib/postgis/postgis/postgis_spgist.sql.in contrib/postgis/postgis/sqldefines.h.in contrib/postgis/postgis/uninstall_geography.sql.in contrib/postgis/postgis/uninstall_legacy.sql.in contrib/postgis/postgis/uninstall_sfcgal.sql.in contrib/postgis/postgis/uninstall_sqlmm.sql.in contrib/postgis/postgis/vector_tile.LICENSE contrib/postgis/postgis/vector_tile.proto contrib/postgis/postgis_config.h.in contrib/postgis/raster/CREDITS contrib/postgis/raster/DEBUG contrib/postgis/raster/Makefile.in contrib/postgis/raster/NEWS contrib/postgis/raster/doc/RFC1-SerializedFormat contrib/postgis/raster/doc/RFC2-WellKnownBinaryFormat contrib/postgis/raster/doc/doxygen.cfg.in contrib/postgis/raster/loader/Makefile.in contrib/postgis/raster/loader/raster2pgsql.c contrib/postgis/raster/loader/raster2pgsql.h contrib/postgis/raster/raster_config.h.in contrib/postgis/raster/rt_core/Makefile.in contrib/postgis/raster/rt_core/librtcore.h contrib/postgis/raster/rt_core/librtcore_internal.h contrib/postgis/raster/rt_core/rt_band.c contrib/postgis/raster/rt_core/rt_context.c contrib/postgis/raster/rt_core/rt_gdal.c contrib/postgis/raster/rt_core/rt_geometry.c contrib/postgis/raster/rt_core/rt_mapalgebra.c contrib/postgis/raster/rt_core/rt_pixel.c contrib/postgis/raster/rt_core/rt_raster.c contrib/postgis/raster/rt_core/rt_serialize.c contrib/postgis/raster/rt_core/rt_serialize.h contrib/postgis/raster/rt_core/rt_spatial_relationship.c contrib/postgis/raster/rt_core/rt_statistics.c contrib/postgis/raster/rt_core/rt_util.c contrib/postgis/raster/rt_core/rt_warp.c contrib/postgis/raster/rt_core/rt_wkb.c contrib/postgis/raster/rt_pg/Makefile.in contrib/postgis/raster/rt_pg/rtpg_band_properties.c contrib/postgis/raster/rt_pg/rtpg_create.c contrib/postgis/raster/rt_pg/rtpg_gdal.c contrib/postgis/raster/rt_pg/rtpg_geometry.c contrib/postgis/raster/rt_pg/rtpg_inout.c contrib/postgis/raster/rt_pg/rtpg_internal.c contrib/postgis/raster/rt_pg/rtpg_internal.h contrib/postgis/raster/rt_pg/rtpg_legacy.c contrib/postgis/raster/rt_pg/rtpg_mapalgebra.c contrib/postgis/raster/rt_pg/rtpg_pixel.c contrib/postgis/raster/rt_pg/rtpg_raster_properties.c contrib/postgis/raster/rt_pg/rtpg_spatial_relationship.c contrib/postgis/raster/rt_pg/rtpg_statistics.c contrib/postgis/raster/rt_pg/rtpg_utility.c contrib/postgis/raster/rt_pg/rtpg_wkb.c contrib/postgis/raster/rt_pg/rtpostgis.c contrib/postgis/raster/rt_pg/rtpostgis.h contrib/postgis/raster/rt_pg/rtpostgis.sql.in contrib/postgis/raster/rt_pg/rtpostgis_drop.sql.in contrib/postgis/raster/rt_pg/rtpostgis_legacy.sql.in contrib/postgis/raster/rt_pg/rtpostgis_upgrade_cleanup.sql.in contrib/postgis/raster/scripts/Makefile.in contrib/postgis/raster/scripts/plpgsql/_MapAlgebraParts.sql contrib/postgis/raster/scripts/plpgsql/readme.txt contrib/postgis/raster/scripts/plpgsql/st_addband.sql contrib/postgis/raster/scripts/plpgsql/st_areaweightedsummarystats.sql contrib/postgis/raster/scripts/plpgsql/st_asraster.sql contrib/postgis/raster/scripts/plpgsql/st_clip.sql contrib/postgis/raster/scripts/plpgsql/st_createindexraster.sql contrib/postgis/raster/scripts/plpgsql/st_deleteband.sql contrib/postgis/raster/scripts/plpgsql/st_geomextent2rastercoord.sql contrib/postgis/raster/scripts/plpgsql/st_histogram.sql contrib/postgis/raster/scripts/plpgsql/st_mapalgebra.sql contrib/postgis/raster/scripts/plpgsql/st_mapalgebra_optimized.sql contrib/postgis/raster/scripts/plpgsql/st_mapalgebrafctngb.sql contrib/postgis/raster/scripts/plpgsql/st_multibandmapalgebra.sql contrib/postgis/raster/scripts/plpgsql/st_pixelaspoints.sql contrib/postgis/raster/scripts/plpgsql/st_pixelaspolygons.sql contrib/postgis/raster/scripts/plpgsql/st_querytables.sql contrib/postgis/raster/scripts/plpgsql/st_reclass.sql contrib/postgis/raster/scripts/plpgsql/st_setarray.sql contrib/postgis/raster/scripts/plpgsql/st_setvalues.sql contrib/postgis/raster/scripts/plpgsql/st_splittable.sql contrib/postgis/raster/scripts/plpgsql/st_summarystatsagg.sql contrib/postgis/raster/scripts/plpgsql/st_tile.sql contrib/postgis/raster/scripts/plpgsql/st_union.sql contrib/postgis/raster/scripts/python/Makefile.in contrib/postgis/raster/scripts/python/Makefile.rt.sample contrib/postgis/raster/scripts/python/genraster.py contrib/postgis/raster/scripts/python/ovdump.py contrib/postgis/raster/scripts/python/pixval.py contrib/postgis/raster/scripts/python/raster2pgsql.py contrib/postgis/raster/scripts/python/rtgdalraster.py contrib/postgis/raster/scripts/python/rtpixdump.py contrib/postgis/raster/scripts/python/rtreader.py contrib/postgis/raster/scripts/python/rtrowdump.py contrib/postgis/raster/scripts/python/window.py contrib/postgis/raster/test/Makefile.in contrib/postgis/raster/test/cunit/Makefile.in contrib/postgis/raster/test/cunit/cu_band_basics.c contrib/postgis/raster/test/cunit/cu_band_misc.c contrib/postgis/raster/test/cunit/cu_band_stats.c contrib/postgis/raster/test/cunit/cu_gdal.c contrib/postgis/raster/test/cunit/cu_mapalgebra.c contrib/postgis/raster/test/cunit/cu_misc.c contrib/postgis/raster/test/cunit/cu_pixtype.c contrib/postgis/raster/test/cunit/cu_raster_basics.c contrib/postgis/raster/test/cunit/cu_raster_geometry.c contrib/postgis/raster/test/cunit/cu_raster_misc.c contrib/postgis/raster/test/cunit/cu_raster_wkb.c contrib/postgis/raster/test/cunit/cu_spatial_relationship.c contrib/postgis/raster/test/cunit/cu_tester.c contrib/postgis/raster/test/cunit/cu_tester.h contrib/postgis/raster/test/regress/Makefile.in contrib/postgis/raster/test/regress/README contrib/postgis/raster/test/regress/box3d.sql contrib/postgis/raster/test/regress/box3d_expected contrib/postgis/raster/test/regress/bug_test_car5.sql contrib/postgis/raster/test/regress/bug_test_car5_expected contrib/postgis/raster/test/regress/check_gdal.sql contrib/postgis/raster/test/regress/check_gdal_expected contrib/postgis/raster/test/regress/check_raster_columns.sql contrib/postgis/raster/test/regress/check_raster_columns_expected contrib/postgis/raster/test/regress/check_raster_overviews.sql contrib/postgis/raster/test/regress/check_raster_overviews_expected contrib/postgis/raster/test/regress/clean.sql contrib/postgis/raster/test/regress/clean_expected contrib/postgis/raster/test/regress/hooks/hook-after-upgrade-raster.sql contrib/postgis/raster/test/regress/hooks/hook-before-upgrade-raster.sql contrib/postgis/raster/test/regress/loader/Basic.opts contrib/postgis/raster/test/regress/loader/Basic.select.expected contrib/postgis/raster/test/regress/loader/Basic.select.sql contrib/postgis/raster/test/regress/loader/Basic.tif.ref contrib/postgis/raster/test/regress/loader/BasicCopy.opts contrib/postgis/raster/test/regress/loader/BasicCopy.select.expected contrib/postgis/raster/test/regress/loader/BasicCopy.select.sql contrib/postgis/raster/test/regress/loader/BasicCopy.tif.ref contrib/postgis/raster/test/regress/loader/BasicFilename.opts contrib/postgis/raster/test/regress/loader/BasicFilename.select.expected contrib/postgis/raster/test/regress/loader/BasicFilename.select.sql contrib/postgis/raster/test/regress/loader/BasicFilename.tif.ref contrib/postgis/raster/test/regress/loader/BasicOutDB.opts contrib/postgis/raster/test/regress/loader/BasicOutDB.select.expected contrib/postgis/raster/test/regress/loader/BasicOutDB.select.sql contrib/postgis/raster/test/regress/loader/BasicOutDB.tif.ref contrib/postgis/raster/test/regress/loader/Projected-post.sql contrib/postgis/raster/test/regress/loader/Projected-pre.sql contrib/postgis/raster/test/regress/loader/Projected.opts contrib/postgis/raster/test/regress/loader/Projected.select.expected contrib/postgis/raster/test/regress/loader/Projected.select.sql contrib/postgis/raster/test/regress/loader/Projected.tif contrib/postgis/raster/test/regress/loader/Tiled10x10.opts contrib/postgis/raster/test/regress/loader/Tiled10x10.select.expected contrib/postgis/raster/test/regress/loader/Tiled10x10.select.sql contrib/postgis/raster/test/regress/loader/Tiled10x10.tif.ref contrib/postgis/raster/test/regress/loader/Tiled10x10Copy.opts contrib/postgis/raster/test/regress/loader/Tiled10x10Copy.select.expected contrib/postgis/raster/test/regress/loader/Tiled10x10Copy.select.sql contrib/postgis/raster/test/regress/loader/Tiled10x10Copy.tif.ref contrib/postgis/raster/test/regress/loader/Tiled8x8.opts contrib/postgis/raster/test/regress/loader/Tiled8x8.select.expected contrib/postgis/raster/test/regress/loader/Tiled8x8.select.sql contrib/postgis/raster/test/regress/loader/Tiled8x8.tif.ref contrib/postgis/raster/test/regress/loader/TiledAuto.opts contrib/postgis/raster/test/regress/loader/TiledAuto.select.expected contrib/postgis/raster/test/regress/loader/TiledAuto.select.sql contrib/postgis/raster/test/regress/loader/TiledAuto.tif.ref contrib/postgis/raster/test/regress/loader/TiledAutoCopyn.opts contrib/postgis/raster/test/regress/loader/TiledAutoCopyn.select.expected contrib/postgis/raster/test/regress/loader/TiledAutoCopyn.select.sql contrib/postgis/raster/test/regress/loader/TiledAutoCopyn.tif.ref contrib/postgis/raster/test/regress/loader/TiledAutoSkipNoData.opts contrib/postgis/raster/test/regress/loader/TiledAutoSkipNoData.select.expected contrib/postgis/raster/test/regress/loader/TiledAutoSkipNoData.select.sql contrib/postgis/raster/test/regress/loader/TiledAutoSkipNoData.tif.ref contrib/postgis/raster/test/regress/loader/load_outdb-pre.sql contrib/postgis/raster/test/regress/loader/load_outdb.sql contrib/postgis/raster/test/regress/loader/load_outdb.tif.ref contrib/postgis/raster/test/regress/loader/load_outdb_expected contrib/postgis/raster/test/regress/loader/testraster.tif contrib/postgis/raster/test/regress/loader/testraster2.tif contrib/postgis/raster/test/regress/permitted_gdal_drivers.sql contrib/postgis/raster/test/regress/permitted_gdal_drivers_expected contrib/postgis/raster/test/regress/rt_4ma.sql contrib/postgis/raster/test/regress/rt_4ma_expected contrib/postgis/raster/test/regress/rt_addband.sql contrib/postgis/raster/test/regress/rt_addband_expected contrib/postgis/raster/test/regress/rt_asgdalraster.sql contrib/postgis/raster/test/regress/rt_asgdalraster_expected contrib/postgis/raster/test/regress/rt_asjpeg.sql contrib/postgis/raster/test/regress/rt_asjpeg_expected contrib/postgis/raster/test/regress/rt_aspng.sql contrib/postgis/raster/test/regress/rt_aspng_expected contrib/postgis/raster/test/regress/rt_asraster.sql contrib/postgis/raster/test/regress/rt_asraster_expected contrib/postgis/raster/test/regress/rt_asrasteragg.sql contrib/postgis/raster/test/regress/rt_asrasteragg_expected contrib/postgis/raster/test/regress/rt_astiff.sql contrib/postgis/raster/test/regress/rt_astiff_expected contrib/postgis/raster/test/regress/rt_band.sql contrib/postgis/raster/test/regress/rt_band_expected contrib/postgis/raster/test/regress/rt_band_properties.sql contrib/postgis/raster/test/regress/rt_band_properties_expected contrib/postgis/raster/test/regress/rt_bandmetadata.sql contrib/postgis/raster/test/regress/rt_bandmetadata_expected contrib/postgis/raster/test/regress/rt_bytea.sql contrib/postgis/raster/test/regress/rt_bytea_expected contrib/postgis/raster/test/regress/rt_clip.sql contrib/postgis/raster/test/regress/rt_clip_expected contrib/postgis/raster/test/regress/rt_colormap.sql contrib/postgis/raster/test/regress/rt_colormap_expected contrib/postgis/raster/test/regress/rt_convexhull.sql contrib/postgis/raster/test/regress/rt_convexhull_expected contrib/postgis/raster/test/regress/rt_count.sql contrib/postgis/raster/test/regress/rt_count_expected contrib/postgis/raster/test/regress/rt_createoverview.sql contrib/postgis/raster/test/regress/rt_createoverview_expected contrib/postgis/raster/test/regress/rt_dimensions.sql contrib/postgis/raster/test/regress/rt_dimensions_expected contrib/postgis/raster/test/regress/rt_dumpvalues.sql contrib/postgis/raster/test/regress/rt_dumpvalues_expected contrib/postgis/raster/test/regress/rt_elevation_functions.sql contrib/postgis/raster/test/regress/rt_elevation_functions_expected contrib/postgis/raster/test/regress/rt_envelope.sql contrib/postgis/raster/test/regress/rt_envelope_expected contrib/postgis/raster/test/regress/rt_fromgdalraster.sql contrib/postgis/raster/test/regress/rt_fromgdalraster_expected contrib/postgis/raster/test/regress/rt_gdalcontour.sql contrib/postgis/raster/test/regress/rt_gdalcontour_expected contrib/postgis/raster/test/regress/rt_gdalwarp.sql contrib/postgis/raster/test/regress/rt_gdalwarp_expected contrib/postgis/raster/test/regress/rt_georeference.sql contrib/postgis/raster/test/regress/rt_georeference_expected contrib/postgis/raster/test/regress/rt_geos_relationships.sql contrib/postgis/raster/test/regress/rt_geos_relationships_expected contrib/postgis/raster/test/regress/rt_gist_relationships.sql contrib/postgis/raster/test/regress/rt_gist_relationships_expected contrib/postgis/raster/test/regress/rt_grayscale.sql contrib/postgis/raster/test/regress/rt_grayscale_expected contrib/postgis/raster/test/regress/rt_hasnoband.sql contrib/postgis/raster/test/regress/rt_hasnoband_expected contrib/postgis/raster/test/regress/rt_histogram.sql contrib/postgis/raster/test/regress/rt_histogram_expected contrib/postgis/raster/test/regress/rt_intersection.sql contrib/postgis/raster/test/regress/rt_intersection_expected contrib/postgis/raster/test/regress/rt_intersection_fractions.sql contrib/postgis/raster/test/regress/rt_intersection_fractions_expected contrib/postgis/raster/test/regress/rt_intersects.sql contrib/postgis/raster/test/regress/rt_intersects_expected contrib/postgis/raster/test/regress/rt_invdistweight4ma.sql contrib/postgis/raster/test/regress/rt_invdistweight4ma_expected contrib/postgis/raster/test/regress/rt_io.sql contrib/postgis/raster/test/regress/rt_io_expected contrib/postgis/raster/test/regress/rt_iscoveragetile.sql contrib/postgis/raster/test/regress/rt_iscoveragetile_expected contrib/postgis/raster/test/regress/rt_isempty.sql contrib/postgis/raster/test/regress/rt_isempty_expected contrib/postgis/raster/test/regress/rt_makeemptycoverage.sql contrib/postgis/raster/test/regress/rt_makeemptycoverage_expected contrib/postgis/raster/test/regress/rt_mapalgebra.sql contrib/postgis/raster/test/regress/rt_mapalgebra_expected contrib/postgis/raster/test/regress/rt_mapalgebra_expr.sql contrib/postgis/raster/test/regress/rt_mapalgebra_expr_expected contrib/postgis/raster/test/regress/rt_mapalgebra_mask.sql contrib/postgis/raster/test/regress/rt_mapalgebra_mask_expected contrib/postgis/raster/test/regress/rt_mapalgebraexpr.sql contrib/postgis/raster/test/regress/rt_mapalgebraexpr_2raster.sql contrib/postgis/raster/test/regress/rt_mapalgebraexpr_2raster_expected contrib/postgis/raster/test/regress/rt_mapalgebraexpr_expected contrib/postgis/raster/test/regress/rt_mapalgebrafct.sql contrib/postgis/raster/test/regress/rt_mapalgebrafct_2raster.sql contrib/postgis/raster/test/regress/rt_mapalgebrafct_2raster_expected contrib/postgis/raster/test/regress/rt_mapalgebrafct_expected contrib/postgis/raster/test/regress/rt_mapalgebrafctngb.sql contrib/postgis/raster/test/regress/rt_mapalgebrafctngb_expected contrib/postgis/raster/test/regress/rt_mapalgebrafctngb_userfunc.sql contrib/postgis/raster/test/regress/rt_mapalgebrafctngb_userfunc_expected contrib/postgis/raster/test/regress/rt_metadata.sql contrib/postgis/raster/test/regress/rt_metadata_expected contrib/postgis/raster/test/regress/rt_nearestvalue.sql contrib/postgis/raster/test/regress/rt_nearestvalue_expected contrib/postgis/raster/test/regress/rt_neighborhood.sql contrib/postgis/raster/test/regress/rt_neighborhood_expected contrib/postgis/raster/test/regress/rt_pixelascentroids.sql contrib/postgis/raster/test/regress/rt_pixelascentroids_expected contrib/postgis/raster/test/regress/rt_pixelaspoints.sql contrib/postgis/raster/test/regress/rt_pixelaspoints_expected contrib/postgis/raster/test/regress/rt_pixelaspolygons.sql contrib/postgis/raster/test/regress/rt_pixelaspolygons_expected contrib/postgis/raster/test/regress/rt_pixelofvalue.sql contrib/postgis/raster/test/regress/rt_pixelofvalue_expected contrib/postgis/raster/test/regress/rt_pixelsize.sql contrib/postgis/raster/test/regress/rt_pixelsize_expected contrib/postgis/raster/test/regress/rt_pixelvalue.sql contrib/postgis/raster/test/regress/rt_pixelvalue_expected contrib/postgis/raster/test/regress/rt_polygon.sql contrib/postgis/raster/test/regress/rt_polygon_expected contrib/postgis/raster/test/regress/rt_quantile.sql contrib/postgis/raster/test/regress/rt_quantile_expected contrib/postgis/raster/test/regress/rt_rastertoworldcoord.sql contrib/postgis/raster/test/regress/rt_rastertoworldcoord_expected contrib/postgis/raster/test/regress/rt_reclass.sql contrib/postgis/raster/test/regress/rt_reclass_expected contrib/postgis/raster/test/regress/rt_reclassexact.sql contrib/postgis/raster/test/regress/rt_reclassexact_expected contrib/postgis/raster/test/regress/rt_rotation.sql contrib/postgis/raster/test/regress/rt_rotation_expected contrib/postgis/raster/test/regress/rt_samealignment.sql contrib/postgis/raster/test/regress/rt_samealignment_expected contrib/postgis/raster/test/regress/rt_scale.sql contrib/postgis/raster/test/regress/rt_scale_expected contrib/postgis/raster/test/regress/rt_set_band_properties.sql contrib/postgis/raster/test/regress/rt_set_band_properties_expected contrib/postgis/raster/test/regress/rt_set_properties.sql contrib/postgis/raster/test/regress/rt_set_properties_expected contrib/postgis/raster/test/regress/rt_setbandpath.sql contrib/postgis/raster/test/regress/rt_setbandpath_expected contrib/postgis/raster/test/regress/rt_setvalues_array.sql contrib/postgis/raster/test/regress/rt_setvalues_array_expected contrib/postgis/raster/test/regress/rt_setvalues_geomval.sql contrib/postgis/raster/test/regress/rt_setvalues_geomval_expected contrib/postgis/raster/test/regress/rt_summarystats.sql contrib/postgis/raster/test/regress/rt_summarystats_expected contrib/postgis/raster/test/regress/rt_tile.sql contrib/postgis/raster/test/regress/rt_tile_expected contrib/postgis/raster/test/regress/rt_union.sql contrib/postgis/raster/test/regress/rt_union_expected contrib/postgis/raster/test/regress/rt_upperleft.sql contrib/postgis/raster/test/regress/rt_upperleft_expected contrib/postgis/raster/test/regress/rt_utility.sql contrib/postgis/raster/test/regress/rt_utility_expected contrib/postgis/raster/test/regress/rt_valuecount.sql contrib/postgis/raster/test/regress/rt_valuecount_expected contrib/postgis/raster/test/regress/rt_valuepercent.sql contrib/postgis/raster/test/regress/rt_valuepercent_expected contrib/postgis/raster/test/regress/rt_wkb.sql contrib/postgis/raster/test/regress/rt_wkb_expected contrib/postgis/raster/test/regress/rt_worldtorastercoord.sql contrib/postgis/raster/test/regress/rt_worldtorastercoord_expected contrib/postgis/raster/test/regress/tests.mk.in contrib/postgis/raster/test/regress/tickets.sql contrib/postgis/raster/test/regress/tickets_expected contrib/postgis/regress/Makefile.in contrib/postgis/regress/README contrib/postgis/regress/core/Makefile.in contrib/postgis/regress/core/affine.sql contrib/postgis/regress/core/affine_expected contrib/postgis/regress/core/bestsrid.sql contrib/postgis/regress/core/bestsrid_expected contrib/postgis/regress/core/big_polygon.wkb contrib/postgis/regress/core/binary.sql contrib/postgis/regress/core/binary_expected contrib/postgis/regress/core/boundary.sql contrib/postgis/regress/core/boundary_expected contrib/postgis/regress/core/chaikin.sql contrib/postgis/regress/core/chaikin_expected contrib/postgis/regress/core/clean.sql contrib/postgis/regress/core/clean_expected contrib/postgis/regress/core/clipbybox2d.sql contrib/postgis/regress/core/clipbybox2d_expected contrib/postgis/regress/core/cluster.sql contrib/postgis/regress/core/cluster_expected contrib/postgis/regress/core/computed_columns.sql contrib/postgis/regress/core/computed_columns_expected contrib/postgis/regress/core/concave_hull.sql contrib/postgis/regress/core/concave_hull_expected contrib/postgis/regress/core/concave_hull_hard.sql contrib/postgis/regress/core/concave_hull_hard_expected contrib/postgis/regress/core/coverage.sql contrib/postgis/regress/core/coverage_expected contrib/postgis/regress/core/ctors.sql contrib/postgis/regress/core/ctors_expected contrib/postgis/regress/core/curvetoline.sql contrib/postgis/regress/core/curvetoline_expected contrib/postgis/regress/core/delaunaytriangles.sql contrib/postgis/regress/core/delaunaytriangles_expected contrib/postgis/regress/core/dump.sql contrib/postgis/regress/core/dump_expected contrib/postgis/regress/core/dumppoints.sql contrib/postgis/regress/core/dumppoints_expected contrib/postgis/regress/core/dumpsegments.sql contrib/postgis/regress/core/dumpsegments_expected contrib/postgis/regress/core/empty.sql contrib/postgis/regress/core/empty_expected contrib/postgis/regress/core/estimatedextent.sql contrib/postgis/regress/core/estimatedextent_expected contrib/postgis/regress/core/filterm.sql contrib/postgis/regress/core/filterm_expected contrib/postgis/regress/core/fixedoverlay.sql contrib/postgis/regress/core/fixedoverlay_expected contrib/postgis/regress/core/flatgeobuf.sql contrib/postgis/regress/core/flatgeobuf_expected contrib/postgis/regress/core/forcecurve.sql contrib/postgis/regress/core/forcecurve_expected contrib/postgis/regress/core/frechet.sql contrib/postgis/regress/core/frechet_expected contrib/postgis/regress/core/generate_points.sql contrib/postgis/regress/core/generate_points_expected contrib/postgis/regress/core/geobuf.sql contrib/postgis/regress/core/geobuf_expected contrib/postgis/regress/core/geography.sql contrib/postgis/regress/core/geography_centroid.sql contrib/postgis/regress/core/geography_centroid_expected contrib/postgis/regress/core/geography_covers.sql contrib/postgis/regress/core/geography_covers_expected contrib/postgis/regress/core/geography_expected contrib/postgis/regress/core/geometric_median.sql contrib/postgis/regress/core/geometric_median_expected contrib/postgis/regress/core/geos310.sql contrib/postgis/regress/core/geos310_expected contrib/postgis/regress/core/geos311.sql contrib/postgis/regress/core/geos311_expected contrib/postgis/regress/core/geos38.sql contrib/postgis/regress/core/geos38_expected contrib/postgis/regress/core/geos39.sql contrib/postgis/regress/core/geos39_expected contrib/postgis/regress/core/geos_noop.sql contrib/postgis/regress/core/geos_noop_expected contrib/postgis/regress/core/hausdorff.sql contrib/postgis/regress/core/hausdorff_expected contrib/postgis/regress/core/in_encodedpolyline.sql contrib/postgis/regress/core/in_encodedpolyline_expected contrib/postgis/regress/core/in_flatgeobuf.sql contrib/postgis/regress/core/in_flatgeobuf_expected contrib/postgis/regress/core/in_geohash.sql contrib/postgis/regress/core/in_geohash_expected contrib/postgis/regress/core/in_geojson.sql contrib/postgis/regress/core/in_geojson_expected contrib/postgis/regress/core/in_gml.sql contrib/postgis/regress/core/in_gml_expected contrib/postgis/regress/core/in_kml.sql contrib/postgis/regress/core/in_kml_expected contrib/postgis/regress/core/in_marc21.sql contrib/postgis/regress/core/in_marc21_expected contrib/postgis/regress/core/interrupt.sql contrib/postgis/regress/core/interrupt_buffer.sql contrib/postgis/regress/core/interrupt_buffer_expected contrib/postgis/regress/core/interrupt_expected contrib/postgis/regress/core/interrupt_relate.sql contrib/postgis/regress/core/interrupt_relate_expected contrib/postgis/regress/core/iscollection.sql contrib/postgis/regress/core/iscollection_expected contrib/postgis/regress/core/isvaliddetail.sql contrib/postgis/regress/core/isvaliddetail_expected contrib/postgis/regress/core/knn_recheck.sql contrib/postgis/regress/core/knn_recheck_expected contrib/postgis/regress/core/legacy.sql contrib/postgis/regress/core/legacy_expected contrib/postgis/regress/core/letters.sql contrib/postgis/regress/core/letters_expected contrib/postgis/regress/core/lwgeom_regress.sql contrib/postgis/regress/core/lwgeom_regress_expected contrib/postgis/regress/core/measures.sql contrib/postgis/regress/core/measures_expected contrib/postgis/regress/core/minimum_bounding_circle.sql contrib/postgis/regress/core/minimum_bounding_circle_expected contrib/postgis/regress/core/minimum_clearance.sql contrib/postgis/regress/core/minimum_clearance_expected contrib/postgis/regress/core/mvt.sql contrib/postgis/regress/core/mvt_expected contrib/postgis/regress/core/mvt_jsonb.sql contrib/postgis/regress/core/mvt_jsonb_expected contrib/postgis/regress/core/node.sql contrib/postgis/regress/core/node_expected contrib/postgis/regress/core/normalize.sql contrib/postgis/regress/core/normalize_expected contrib/postgis/regress/core/offsetcurve.sql contrib/postgis/regress/core/offsetcurve_expected contrib/postgis/regress/core/operators.sql contrib/postgis/regress/core/operators_expected contrib/postgis/regress/core/orientation.sql contrib/postgis/regress/core/orientation_expected contrib/postgis/regress/core/oriented_envelope.sql contrib/postgis/regress/core/oriented_envelope_expected contrib/postgis/regress/core/out_flatgeobuf.sql contrib/postgis/regress/core/out_flatgeobuf_expected contrib/postgis/regress/core/out_geography.sql contrib/postgis/regress/core/out_geography_expected contrib/postgis/regress/core/out_geojson.sql contrib/postgis/regress/core/out_geojson_expected contrib/postgis/regress/core/out_geometry.sql contrib/postgis/regress/core/out_geometry_expected contrib/postgis/regress/core/out_gml.sql contrib/postgis/regress/core/out_gml_expected contrib/postgis/regress/core/out_marc21.sql contrib/postgis/regress/core/out_marc21_expected contrib/postgis/regress/core/point_coordinates.sql contrib/postgis/regress/core/point_coordinates_expected contrib/postgis/regress/core/polygonize.sql contrib/postgis/regress/core/polygonize_expected contrib/postgis/regress/core/polyhedralsurface.sql contrib/postgis/regress/core/polyhedralsurface_expected contrib/postgis/regress/core/postgis_type_name.sql contrib/postgis/regress/core/postgis_type_name_expected contrib/postgis/regress/core/quantize_coordinates.sql contrib/postgis/regress/core/quantize_coordinates_expected contrib/postgis/regress/core/regress.sql contrib/postgis/regress/core/regress_bdpoly.sql contrib/postgis/regress/core/regress_bdpoly_expected contrib/postgis/regress/core/regress_big_polygon.sql contrib/postgis/regress/core/regress_biginsert.sql contrib/postgis/regress/core/regress_brin_index.sql contrib/postgis/regress/core/regress_brin_index_3d.sql contrib/postgis/regress/core/regress_brin_index_3d_expected contrib/postgis/regress/core/regress_brin_index_expected contrib/postgis/regress/core/regress_brin_index_geography.sql contrib/postgis/regress/core/regress_brin_index_geography_expected contrib/postgis/regress/core/regress_buffer_params.sql contrib/postgis/regress/core/regress_buffer_params_expected contrib/postgis/regress/core/regress_expected contrib/postgis/regress/core/regress_gist_index_nd.data contrib/postgis/regress/core/regress_gist_index_nd.sql contrib/postgis/regress/core/regress_gist_index_nd_expected contrib/postgis/regress/core/regress_index.sql contrib/postgis/regress/core/regress_index_expected contrib/postgis/regress/core/regress_index_nulls.sql contrib/postgis/regress/core/regress_index_nulls_expected contrib/postgis/regress/core/regress_lots_of_3dpoints.sql contrib/postgis/regress/core/regress_lots_of_geographies.sql contrib/postgis/regress/core/regress_lots_of_nulls.sql contrib/postgis/regress/core/regress_lots_of_points.sql contrib/postgis/regress/core/regress_lrs.sql contrib/postgis/regress/core/regress_lrs_expected contrib/postgis/regress/core/regress_management.sql contrib/postgis/regress/core/regress_management_expected contrib/postgis/regress/core/regress_ogc.sql contrib/postgis/regress/core/regress_ogc_cover.sql contrib/postgis/regress/core/regress_ogc_cover_expected contrib/postgis/regress/core/regress_ogc_expected contrib/postgis/regress/core/regress_ogc_prep.sql contrib/postgis/regress/core/regress_ogc_prep_expected contrib/postgis/regress/core/regress_proj_4890.sql contrib/postgis/regress/core/regress_proj_4890_expected contrib/postgis/regress/core/regress_proj_adhoc.sql contrib/postgis/regress/core/regress_proj_adhoc_expected contrib/postgis/regress/core/regress_proj_basic.sql contrib/postgis/regress/core/regress_proj_basic_expected contrib/postgis/regress/core/regress_proj_cache_overflow.sql contrib/postgis/regress/core/regress_proj_cache_overflow_expected contrib/postgis/regress/core/regress_proj_pipeline.sql contrib/postgis/regress/core/regress_proj_pipeline_expected contrib/postgis/regress/core/regress_selectivity.sql contrib/postgis/regress/core/regress_selectivity_expected contrib/postgis/regress/core/regress_spgist_index_2d.data contrib/postgis/regress/core/regress_spgist_index_2d.sql contrib/postgis/regress/core/regress_spgist_index_2d_expected contrib/postgis/regress/core/regress_spgist_index_3d.data contrib/postgis/regress/core/regress_spgist_index_3d.sql contrib/postgis/regress/core/regress_spgist_index_3d_expected contrib/postgis/regress/core/regress_spgist_index_nd.sql contrib/postgis/regress/core/regress_spgist_index_nd_expected contrib/postgis/regress/core/relate.sql contrib/postgis/regress/core/relate_bnr.sql contrib/postgis/regress/core/relate_bnr_expected contrib/postgis/regress/core/relate_expected contrib/postgis/regress/core/relatematch.sql contrib/postgis/regress/core/relatematch_expected contrib/postgis/regress/core/remove_irrelevant_points_for_view.sql contrib/postgis/regress/core/remove_irrelevant_points_for_view_expected contrib/postgis/regress/core/remove_repeated_points.sql contrib/postgis/regress/core/remove_repeated_points_expected contrib/postgis/regress/core/remove_small_parts.sql contrib/postgis/regress/core/remove_small_parts_expected contrib/postgis/regress/core/removepoint.sql contrib/postgis/regress/core/removepoint_expected contrib/postgis/regress/core/reverse.sql contrib/postgis/regress/core/reverse_expected contrib/postgis/regress/core/scroll.sql contrib/postgis/regress/core/scroll_expected contrib/postgis/regress/core/setpoint.sql contrib/postgis/regress/core/setpoint_expected contrib/postgis/regress/core/sharedpaths.sql contrib/postgis/regress/core/sharedpaths_expected contrib/postgis/regress/core/simplify.sql contrib/postgis/regress/core/simplify_expected contrib/postgis/regress/core/simplifyvw.sql contrib/postgis/regress/core/simplifyvw_expected contrib/postgis/regress/core/size.sql contrib/postgis/regress/core/size_expected contrib/postgis/regress/core/snap.sql contrib/postgis/regress/core/snap_expected contrib/postgis/regress/core/snaptogrid.sql contrib/postgis/regress/core/snaptogrid_expected contrib/postgis/regress/core/split.sql contrib/postgis/regress/core/split_expected contrib/postgis/regress/core/sql-mm-circularstring.sql contrib/postgis/regress/core/sql-mm-circularstring_expected contrib/postgis/regress/core/sql-mm-compoundcurve.sql contrib/postgis/regress/core/sql-mm-compoundcurve_expected contrib/postgis/regress/core/sql-mm-curvepoly.sql contrib/postgis/regress/core/sql-mm-curvepoly_expected contrib/postgis/regress/core/sql-mm-general.sql contrib/postgis/regress/core/sql-mm-general_expected contrib/postgis/regress/core/sql-mm-multicurve.sql contrib/postgis/regress/core/sql-mm-multicurve_expected contrib/postgis/regress/core/sql-mm-multisurface.sql contrib/postgis/regress/core/sql-mm-multisurface_expected contrib/postgis/regress/core/sql-mm-serialize.sql contrib/postgis/regress/core/sql-mm-serialize_expected contrib/postgis/regress/core/subdivide.sql contrib/postgis/regress/core/subdivide_expected contrib/postgis/regress/core/summary.sql contrib/postgis/regress/core/summary_expected contrib/postgis/regress/core/swapordinates.sql contrib/postgis/regress/core/swapordinates_expected contrib/postgis/regress/core/temporal.sql contrib/postgis/regress/core/temporal_expected contrib/postgis/regress/core/temporal_knn.sql contrib/postgis/regress/core/temporal_knn_expected contrib/postgis/regress/core/tests.mk.in contrib/postgis/regress/core/ticket_3697.wkt contrib/postgis/regress/core/tickets.sql contrib/postgis/regress/core/tickets_expected contrib/postgis/regress/core/twkb.sql contrib/postgis/regress/core/twkb_expected contrib/postgis/regress/core/typmod.sql contrib/postgis/regress/core/typmod_expected contrib/postgis/regress/core/unaryunion.sql contrib/postgis/regress/core/unaryunion_expected contrib/postgis/regress/core/union.sql contrib/postgis/regress/core/union_expected contrib/postgis/regress/core/voronoi.sql contrib/postgis/regress/core/voronoi_expected contrib/postgis/regress/core/wkb.sql contrib/postgis/regress/core/wkb_expected contrib/postgis/regress/core/wkt.sql contrib/postgis/regress/core/wkt_expected contrib/postgis/regress/core/wmsservers.sql contrib/postgis/regress/core/wmsservers_expected contrib/postgis/regress/core/wrapx.sql contrib/postgis/regress/core/wrapx_expected contrib/postgis/regress/dumper/Makefile.in contrib/postgis/regress/dumper/literalsrid-post.sql contrib/postgis/regress/dumper/literalsrid-pre.sql contrib/postgis/regress/dumper/literalsrid.dmp contrib/postgis/regress/dumper/literalsrid_expected.dbf contrib/postgis/regress/dumper/literalsrid_expected.prj contrib/postgis/regress/dumper/literalsrid_expected.shp contrib/postgis/regress/dumper/literalsrid_expected.shx contrib/postgis/regress/dumper/mfiledmp.dmp contrib/postgis/regress/dumper/mfiledmp_expected.dbf contrib/postgis/regress/dumper/mfiledmp_expected.shp contrib/postgis/regress/dumper/mfiledmp_expected.shx contrib/postgis/regress/dumper/mfiledmp_mapping.txt contrib/postgis/regress/dumper/null3d.dmp contrib/postgis/regress/dumper/null3d_expected.dbf contrib/postgis/regress/dumper/null3d_expected.shp contrib/postgis/regress/dumper/null3d_expected.shx contrib/postgis/regress/dumper/nullsintable-post.sql contrib/postgis/regress/dumper/nullsintable-pre.sql contrib/postgis/regress/dumper/nullsintable.dmp contrib/postgis/regress/dumper/nullsintable_expected.dbf contrib/postgis/regress/dumper/nullsintable_expected.prj contrib/postgis/regress/dumper/nullsintable_expected.shp contrib/postgis/regress/dumper/nullsintable_expected.shx contrib/postgis/regress/dumper/realtable-post.sql contrib/postgis/regress/dumper/realtable-pre.sql contrib/postgis/regress/dumper/realtable.dmp contrib/postgis/regress/dumper/realtable_expected.dbf contrib/postgis/regress/dumper/realtable_expected.prj contrib/postgis/regress/dumper/realtable_expected.shp contrib/postgis/regress/dumper/realtable_expected.shx contrib/postgis/regress/dumper/tests.mk contrib/postgis/regress/dumper/withclause.dmp contrib/postgis/regress/dumper/withclause_expected.cpg contrib/postgis/regress/dumper/withclause_expected.dbf contrib/postgis/regress/dumper/withclause_expected.shp contrib/postgis/regress/dumper/withclause_expected.shx contrib/postgis/regress/hooks/configure-pgextwlist.sql contrib/postgis/regress/hooks/drop-deprecated-functions.sql contrib/postgis/regress/hooks/hook-after-create.sql contrib/postgis/regress/hooks/hook-after-upgrade.sql contrib/postgis/regress/hooks/hook-before-uninstall.sql contrib/postgis/regress/hooks/hook-before-upgrade.sql contrib/postgis/regress/hooks/standard-conforming-strings-off.sql contrib/postgis/regress/hooks/use-all-functions.sql contrib/postgis/regress/loader/Arc-G.select.expected contrib/postgis/regress/loader/Arc-G.shp.expected contrib/postgis/regress/loader/Arc-w.select.expected contrib/postgis/regress/loader/Arc.dbf contrib/postgis/regress/loader/Arc.select.expected contrib/postgis/regress/loader/Arc.select.sql contrib/postgis/regress/loader/Arc.shp contrib/postgis/regress/loader/Arc.shp.expected contrib/postgis/regress/loader/Arc.shx contrib/postgis/regress/loader/ArcM-G.select.expected contrib/postgis/regress/loader/ArcM-G.shp.expected contrib/postgis/regress/loader/ArcM-w.select.expected contrib/postgis/regress/loader/ArcM.dbf contrib/postgis/regress/loader/ArcM.select.expected contrib/postgis/regress/loader/ArcM.select.sql contrib/postgis/regress/loader/ArcM.shp contrib/postgis/regress/loader/ArcM.shp.expected contrib/postgis/regress/loader/ArcM.shx contrib/postgis/regress/loader/ArcZ-G.select.expected contrib/postgis/regress/loader/ArcZ-G.shp.expected contrib/postgis/regress/loader/ArcZ-w.select.expected contrib/postgis/regress/loader/ArcZ.dbf contrib/postgis/regress/loader/ArcZ.select.expected contrib/postgis/regress/loader/ArcZ.select.sql contrib/postgis/regress/loader/ArcZ.shp contrib/postgis/regress/loader/ArcZ.shp.expected contrib/postgis/regress/loader/ArcZ.shx contrib/postgis/regress/loader/CharNoWidth.dbf contrib/postgis/regress/loader/CharNoWidth.select.expected contrib/postgis/regress/loader/CharNoWidth.select.sql contrib/postgis/regress/loader/Latin1-implicit.dbf contrib/postgis/regress/loader/Latin1-implicit.select.expected contrib/postgis/regress/loader/Latin1-implicit.select.sql contrib/postgis/regress/loader/Latin1.dbf contrib/postgis/regress/loader/Latin1.opts contrib/postgis/regress/loader/Latin1.select.expected contrib/postgis/regress/loader/Latin1.select.sql contrib/postgis/regress/loader/Makefile.in contrib/postgis/regress/loader/MultiPoint-G.select.expected contrib/postgis/regress/loader/MultiPoint-G.shp.expected contrib/postgis/regress/loader/MultiPoint-w.select.expected contrib/postgis/regress/loader/MultiPoint.dbf contrib/postgis/regress/loader/MultiPoint.select.expected contrib/postgis/regress/loader/MultiPoint.select.sql contrib/postgis/regress/loader/MultiPoint.shp contrib/postgis/regress/loader/MultiPoint.shp.expected contrib/postgis/regress/loader/MultiPoint.shx contrib/postgis/regress/loader/MultiPointM-G.select.expected contrib/postgis/regress/loader/MultiPointM-G.shp.expected contrib/postgis/regress/loader/MultiPointM-w.select.expected contrib/postgis/regress/loader/MultiPointM.dbf contrib/postgis/regress/loader/MultiPointM.select.expected contrib/postgis/regress/loader/MultiPointM.select.sql contrib/postgis/regress/loader/MultiPointM.shp contrib/postgis/regress/loader/MultiPointM.shp.expected contrib/postgis/regress/loader/MultiPointM.shx contrib/postgis/regress/loader/MultiPointZ-G.select.expected contrib/postgis/regress/loader/MultiPointZ-G.shp.expected contrib/postgis/regress/loader/MultiPointZ-w.select.expected contrib/postgis/regress/loader/MultiPointZ.dbf contrib/postgis/regress/loader/MultiPointZ.select.expected contrib/postgis/regress/loader/MultiPointZ.select.sql contrib/postgis/regress/loader/MultiPointZ.shp contrib/postgis/regress/loader/MultiPointZ.shp.expected contrib/postgis/regress/loader/MultiPointZ.shx contrib/postgis/regress/loader/MultiToSinglePoint-w.select.expected contrib/postgis/regress/loader/MultiToSinglePoint.dbf contrib/postgis/regress/loader/MultiToSinglePoint.opts contrib/postgis/regress/loader/MultiToSinglePoint.select.expected contrib/postgis/regress/loader/MultiToSinglePoint.select.sql contrib/postgis/regress/loader/MultiToSinglePoint.shp contrib/postgis/regress/loader/MultiToSinglePoint.shp.expected contrib/postgis/regress/loader/MultiToSinglePoint.shx contrib/postgis/regress/loader/NoTransPoint-w.select.expected contrib/postgis/regress/loader/NoTransPoint.dbf contrib/postgis/regress/loader/NoTransPoint.opts contrib/postgis/regress/loader/NoTransPoint.select.expected contrib/postgis/regress/loader/NoTransPoint.select.sql contrib/postgis/regress/loader/NoTransPoint.shp contrib/postgis/regress/loader/NoTransPoint.shp.expected contrib/postgis/regress/loader/NoTransPoint.shx contrib/postgis/regress/loader/NotReallyMultiPoint-w.select.expected contrib/postgis/regress/loader/NotReallyMultiPoint.dbf contrib/postgis/regress/loader/NotReallyMultiPoint.select.expected contrib/postgis/regress/loader/NotReallyMultiPoint.select.sql contrib/postgis/regress/loader/NotReallyMultiPoint.shp contrib/postgis/regress/loader/NotReallyMultiPoint.shp.expected contrib/postgis/regress/loader/NotReallyMultiPoint.shx contrib/postgis/regress/loader/Point-G.select.expected contrib/postgis/regress/loader/Point-G.shp.expected contrib/postgis/regress/loader/Point-w.select.expected contrib/postgis/regress/loader/Point.dbf contrib/postgis/regress/loader/Point.select.expected contrib/postgis/regress/loader/Point.select.sql contrib/postgis/regress/loader/Point.shp contrib/postgis/regress/loader/Point.shp.expected contrib/postgis/regress/loader/Point.shx contrib/postgis/regress/loader/PointM-G.select.expected contrib/postgis/regress/loader/PointM-G.shp.expected contrib/postgis/regress/loader/PointM-w.select.expected contrib/postgis/regress/loader/PointM.dbf contrib/postgis/regress/loader/PointM.select.expected contrib/postgis/regress/loader/PointM.select.sql contrib/postgis/regress/loader/PointM.shp contrib/postgis/regress/loader/PointM.shp.expected contrib/postgis/regress/loader/PointM.shx contrib/postgis/regress/loader/PointWithSchema-post.sql contrib/postgis/regress/loader/PointWithSchema-pre.sql contrib/postgis/regress/loader/PointWithSchema.dbf contrib/postgis/regress/loader/PointWithSchema.opts contrib/postgis/regress/loader/PointWithSchema.select.expected contrib/postgis/regress/loader/PointWithSchema.select.sql contrib/postgis/regress/loader/PointWithSchema.shp contrib/postgis/regress/loader/PointWithSchema.shx contrib/postgis/regress/loader/PointZ-G.select.expected contrib/postgis/regress/loader/PointZ-G.shp.expected contrib/postgis/regress/loader/PointZ-w.select.expected contrib/postgis/regress/loader/PointZ.dbf contrib/postgis/regress/loader/PointZ.select.expected contrib/postgis/regress/loader/PointZ.select.sql contrib/postgis/regress/loader/PointZ.shp contrib/postgis/regress/loader/PointZ.shp.expected contrib/postgis/regress/loader/PointZ.shx contrib/postgis/regress/loader/Polygon-G.select.expected contrib/postgis/regress/loader/Polygon-G.shp.expected contrib/postgis/regress/loader/Polygon-w.select.expected contrib/postgis/regress/loader/Polygon.dbf contrib/postgis/regress/loader/Polygon.select.expected contrib/postgis/regress/loader/Polygon.select.sql contrib/postgis/regress/loader/Polygon.shp contrib/postgis/regress/loader/Polygon.shp.expected contrib/postgis/regress/loader/Polygon.shx contrib/postgis/regress/loader/PolygonM-G.select.expected contrib/postgis/regress/loader/PolygonM-G.shp.expected contrib/postgis/regress/loader/PolygonM-w.select.expected contrib/postgis/regress/loader/PolygonM.dbf contrib/postgis/regress/loader/PolygonM.select.expected contrib/postgis/regress/loader/PolygonM.select.sql contrib/postgis/regress/loader/PolygonM.shp contrib/postgis/regress/loader/PolygonM.shp.expected contrib/postgis/regress/loader/PolygonM.shx contrib/postgis/regress/loader/PolygonZ-G.select.expected contrib/postgis/regress/loader/PolygonZ-G.shp.expected contrib/postgis/regress/loader/PolygonZ-w.select.expected contrib/postgis/regress/loader/PolygonZ.dbf contrib/postgis/regress/loader/PolygonZ.select.expected contrib/postgis/regress/loader/PolygonZ.select.sql contrib/postgis/regress/loader/PolygonZ.shp contrib/postgis/regress/loader/PolygonZ.shp.expected contrib/postgis/regress/loader/PolygonZ.shx contrib/postgis/regress/loader/README contrib/postgis/regress/loader/ReprojectPts-w.select.expected contrib/postgis/regress/loader/ReprojectPts.dbf contrib/postgis/regress/loader/ReprojectPts.opts contrib/postgis/regress/loader/ReprojectPts.select.expected contrib/postgis/regress/loader/ReprojectPts.select.sql contrib/postgis/regress/loader/ReprojectPts.shp contrib/postgis/regress/loader/ReprojectPts.shx contrib/postgis/regress/loader/ReprojectPtsD.dbf contrib/postgis/regress/loader/ReprojectPtsD.opts contrib/postgis/regress/loader/ReprojectPtsD.select.expected contrib/postgis/regress/loader/ReprojectPtsD.select.sql contrib/postgis/regress/loader/ReprojectPtsD.shp contrib/postgis/regress/loader/ReprojectPtsD.shx contrib/postgis/regress/loader/ReprojectPtsGeog-w.select.expected contrib/postgis/regress/loader/ReprojectPtsGeog.dbf contrib/postgis/regress/loader/ReprojectPtsGeog.opts contrib/postgis/regress/loader/ReprojectPtsGeog.select.expected contrib/postgis/regress/loader/ReprojectPtsGeog.select.sql contrib/postgis/regress/loader/ReprojectPtsGeog.shp contrib/postgis/regress/loader/ReprojectPtsGeog.shx contrib/postgis/regress/loader/ReprojectPtsGeogD-w.select.expected contrib/postgis/regress/loader/ReprojectPtsGeogD.dbf contrib/postgis/regress/loader/ReprojectPtsGeogD.opts contrib/postgis/regress/loader/ReprojectPtsGeogD.select.expected contrib/postgis/regress/loader/ReprojectPtsGeogD.select.sql contrib/postgis/regress/loader/ReprojectPtsGeogD.shp contrib/postgis/regress/loader/ReprojectPtsGeogD.shx contrib/postgis/regress/loader/TSIPolygon-w.select.expected contrib/postgis/regress/loader/TSIPolygon.dbf contrib/postgis/regress/loader/TSIPolygon.opts contrib/postgis/regress/loader/TSIPolygon.select.expected contrib/postgis/regress/loader/TSIPolygon.select.sql contrib/postgis/regress/loader/TSIPolygon.shp contrib/postgis/regress/loader/TSIPolygon.shp.expected contrib/postgis/regress/loader/TSIPolygon.shx contrib/postgis/regress/loader/TSTIPolygon-w.select.expected contrib/postgis/regress/loader/TSTIPolygon.dbf contrib/postgis/regress/loader/TSTIPolygon.opts contrib/postgis/regress/loader/TSTIPolygon.select.expected contrib/postgis/regress/loader/TSTIPolygon.select.sql contrib/postgis/regress/loader/TSTIPolygon.shp contrib/postgis/regress/loader/TSTIPolygon.shp.expected contrib/postgis/regress/loader/TSTIPolygon.shx contrib/postgis/regress/loader/TSTPolygon-w.select.expected contrib/postgis/regress/loader/TSTPolygon.dbf contrib/postgis/regress/loader/TSTPolygon.opts contrib/postgis/regress/loader/TSTPolygon.select.expected contrib/postgis/regress/loader/TSTPolygon.select.sql contrib/postgis/regress/loader/TSTPolygon.shp contrib/postgis/regress/loader/TSTPolygon.shp.expected contrib/postgis/regress/loader/TSTPolygon.shx contrib/postgis/regress/loader/TestANALYZE.dbf contrib/postgis/regress/loader/TestANALYZE.opts contrib/postgis/regress/loader/TestANALYZE.select.expected contrib/postgis/regress/loader/TestANALYZE.select.sql contrib/postgis/regress/loader/TestANALYZE.shp contrib/postgis/regress/loader/TestANALYZE.shx contrib/postgis/regress/loader/TestSkipANALYZE.dbf contrib/postgis/regress/loader/TestSkipANALYZE.opts contrib/postgis/regress/loader/TestSkipANALYZE.select.expected contrib/postgis/regress/loader/TestSkipANALYZE.select.sql contrib/postgis/regress/loader/TestSkipANALYZE.shp contrib/postgis/regress/loader/TestSkipANALYZE.shx contrib/postgis/regress/loader/mfile.dbf contrib/postgis/regress/loader/mfile.opts contrib/postgis/regress/loader/mfile.select.expected contrib/postgis/regress/loader/mfile.select.sql contrib/postgis/regress/loader/mfile_mapping.txt contrib/postgis/regress/loader/tests.mk contrib/postgis/regress/run_test.pl contrib/postgis/regress/runtest.mk contrib/postgis/regress/test_index_concurrency contrib/postgis/regress/utils/timecheck.sql contrib/postgis/sfcgal/Makefile.in contrib/postgis/sfcgal/lwgeom_sfcgal.c contrib/postgis/sfcgal/lwgeom_sfcgal.h contrib/postgis/sfcgal/postgis_sfcgal_legacy.c contrib/postgis/sfcgal/regress/Makefile.in contrib/postgis/sfcgal/regress/README contrib/postgis/sfcgal/regress/alphashape.sql contrib/postgis/sfcgal/regress/alphashape_expected contrib/postgis/sfcgal/regress/alphawrapping.sql contrib/postgis/sfcgal/regress/alphawrapping_expected contrib/postgis/sfcgal/regress/approximatemedialaxis.sql contrib/postgis/sfcgal/regress/approximatemedialaxis_expected contrib/postgis/sfcgal/regress/extrudestraigthskeleton.sql contrib/postgis/sfcgal/regress/extrudestraigthskeleton_expected contrib/postgis/sfcgal/regress/partition.sql contrib/postgis/sfcgal/regress/partition_expected contrib/postgis/sfcgal/regress/regress_sfcgal.sql contrib/postgis/sfcgal/regress/regress_sfcgal_expected contrib/postgis/sfcgal/regress/sfcgal_v2.sql contrib/postgis/sfcgal/regress/sfcgal_v2_expected contrib/postgis/sfcgal/regress/simplify.sql contrib/postgis/sfcgal/regress/simplify_expected contrib/postgis/sfcgal/regress/tests.mk.in contrib/postgis/sfcgal/regress/visibility.sql contrib/postgis/sfcgal/regress/visibility_expected contrib/postgis/sfcgal/sfcgal.sql.in contrib/postgis/sfcgal/sfcgal_after_upgrade.sql.in contrib/postgis/sfcgal/sfcgal_before_upgrade.sql.in contrib/postgis/spatial_ref_sys.sql contrib/postgis/topology/ER/Makefile contrib/postgis/topology/ER/topology.fig contrib/postgis/topology/Makefile.in contrib/postgis/topology/README contrib/postgis/topology/TODO contrib/postgis/topology/loader/pgtopo_export contrib/postgis/topology/loader/pgtopo_import contrib/postgis/topology/postgis_topology.c contrib/postgis/topology/sql/cleanup/RemoveUnusedPrimitives.sql.in contrib/postgis/topology/sql/export/TopoJSON.sql.in contrib/postgis/topology/sql/export/gml.sql.in contrib/postgis/topology/sql/manage/AddTopoGeometryColumn.sql.in contrib/postgis/topology/sql/manage/CopyTopology.sql.in contrib/postgis/topology/sql/manage/CreateTopology.sql.in contrib/postgis/topology/sql/manage/FindLayer.sql.in contrib/postgis/topology/sql/manage/FindTopology.sql.in contrib/postgis/topology/sql/manage/FixCorruptTopoGeometryColumn.sql.in contrib/postgis/topology/sql/manage/MakeTopologyPrecise.sql.in contrib/postgis/topology/sql/manage/ManageHelper.sql.in contrib/postgis/topology/sql/manage/RenameTopoGeometryColumn.sql.in contrib/postgis/topology/sql/manage/RenameTopology.sql.in contrib/postgis/topology/sql/manage/TopologySummary.sql.in contrib/postgis/topology/sql/manage/TotalTopologySize.sql.in contrib/postgis/topology/sql/manage/UpgradeTopology.sql.in contrib/postgis/topology/sql/manage/ValidateTopology.sql.in contrib/postgis/topology/sql/manage/ValidateTopologyPrecision.sql.in contrib/postgis/topology/sql/manage/ValidateTopologyRelation.sql.in contrib/postgis/topology/sql/manage/populate_topology_layer.sql.in contrib/postgis/topology/sql/polygonize.sql.in contrib/postgis/topology/sql/populate.sql.in contrib/postgis/topology/sql/predicates.sql.in contrib/postgis/topology/sql/query/GetFaceContainingPoint.sql.in contrib/postgis/topology/sql/query/GetNodeEdges.sql.in contrib/postgis/topology/sql/query/GetRingEdges.sql.in contrib/postgis/topology/sql/query/getedgebypoint.sql.in contrib/postgis/topology/sql/query/getfacebypoint.sql.in contrib/postgis/topology/sql/query/getnodebypoint.sql.in contrib/postgis/topology/sql/sqlmm.sql.in contrib/postgis/topology/sql/topoelement/topoelement_agg.sql.in contrib/postgis/topology/sql/topogeometry/cleartopogeom.sql.in contrib/postgis/topology/sql/topogeometry/simplify.sql.in contrib/postgis/topology/sql/topogeometry/srid.sql.in contrib/postgis/topology/sql/topogeometry/topogeom_edit.sql.in contrib/postgis/topology/sql/topogeometry/totopogeom.sql.in contrib/postgis/topology/sql/topogeometry/type.sql.in contrib/postgis/topology/test/Makefile.in contrib/postgis/topology/test/cache_geometries.sql contrib/postgis/topology/test/check_multiprocess_topology_population.sh contrib/postgis/topology/test/edit_topology.sql contrib/postgis/topology/test/hierarchy.sql contrib/postgis/topology/test/invalid_topology.sql contrib/postgis/topology/test/large_hierarchy.sql contrib/postgis/topology/test/load_features.sql contrib/postgis/topology/test/load_large_features.sql contrib/postgis/topology/test/load_large_topology.sql.in contrib/postgis/topology/test/load_topology.sql.in contrib/postgis/topology/test/more_features.sql contrib/postgis/topology/test/perf/ST_CreateTopoGeo.sql contrib/postgis/topology/test/perf/TopoGeo_addLinestring.sql contrib/postgis/topology/test/perf/TopoGeo_addLinestring_concentricCircles.sql contrib/postgis/topology/test/perf/TopoGeometry.sql contrib/postgis/topology/test/perf/enable_stats.sql contrib/postgis/topology/test/perf/show_stats.sql contrib/postgis/topology/test/predicates.sql.in contrib/postgis/topology/test/query_features.sql contrib/postgis/topology/test/regress/addedge.sql contrib/postgis/topology/test/regress/addedge_expected contrib/postgis/topology/test/regress/addface.sql contrib/postgis/topology/test/regress/addface2.5d.sql contrib/postgis/topology/test/regress/addface2.5d_expected contrib/postgis/topology/test/regress/addface_expected contrib/postgis/topology/test/regress/addnode.sql contrib/postgis/topology/test/regress/addnode_expected contrib/postgis/topology/test/regress/addtopogeometrycolumn.sql contrib/postgis/topology/test/regress/addtopogeometrycolumn_expected contrib/postgis/topology/test/regress/cleartopogeom.sql contrib/postgis/topology/test/regress/cleartopogeom_expected contrib/postgis/topology/test/regress/copytopology.sql contrib/postgis/topology/test/regress/copytopology_expected contrib/postgis/topology/test/regress/createtopogeom.sql contrib/postgis/topology/test/regress/createtopogeom_expected contrib/postgis/topology/test/regress/createtopology.sql contrib/postgis/topology/test/regress/createtopology_expected contrib/postgis/topology/test/regress/droptopogeometrycolumn.sql contrib/postgis/topology/test/regress/droptopogeometrycolumn_expected contrib/postgis/topology/test/regress/droptopology.sql contrib/postgis/topology/test/regress/droptopology_expected contrib/postgis/topology/test/regress/findlayer.sql contrib/postgis/topology/test/regress/findlayer_expected contrib/postgis/topology/test/regress/findtopology.sql contrib/postgis/topology/test/regress/findtopology_expected contrib/postgis/topology/test/regress/fix_topogeometry_columns.sql contrib/postgis/topology/test/regress/fix_topogeometry_columns_expected contrib/postgis/topology/test/regress/geometry_cast.sql contrib/postgis/topology/test/regress/geometry_cast_expected contrib/postgis/topology/test/regress/getedgebypoint.sql contrib/postgis/topology/test/regress/getedgebypoint_expected contrib/postgis/topology/test/regress/getfacebypoint.sql contrib/postgis/topology/test/regress/getfacebypoint_expected contrib/postgis/topology/test/regress/getfacecontainingpoint.sql contrib/postgis/topology/test/regress/getfacecontainingpoint_expected contrib/postgis/topology/test/regress/getnodebypoint.sql contrib/postgis/topology/test/regress/getnodebypoint_expected contrib/postgis/topology/test/regress/getnodeedges.sql contrib/postgis/topology/test/regress/getnodeedges_expected contrib/postgis/topology/test/regress/getringedges.sql contrib/postgis/topology/test/regress/getringedges_expected contrib/postgis/topology/test/regress/gettopogeomelements.sql contrib/postgis/topology/test/regress/gettopogeomelements_expected contrib/postgis/topology/test/regress/gettopogeomelements_large.sql contrib/postgis/topology/test/regress/gettopogeomelements_large_expected contrib/postgis/topology/test/regress/gml.sql contrib/postgis/topology/test/regress/gml_expected contrib/postgis/topology/test/regress/hooks/hook-after-upgrade-topology.sql contrib/postgis/topology/test/regress/hooks/hook-before-upgrade-topology.sql contrib/postgis/topology/test/regress/layertrigger.sql contrib/postgis/topology/test/regress/layertrigger_expected contrib/postgis/topology/test/regress/legacy_invalid.sql contrib/postgis/topology/test/regress/legacy_invalid_expected contrib/postgis/topology/test/regress/legacy_predicate.sql contrib/postgis/topology/test/regress/legacy_predicate_expected contrib/postgis/topology/test/regress/legacy_query.sql contrib/postgis/topology/test/regress/legacy_query_expected contrib/postgis/topology/test/regress/legacy_validate.sql contrib/postgis/topology/test/regress/legacy_validate_expected contrib/postgis/topology/test/regress/maketopologyprecise.sql contrib/postgis/topology/test/regress/maketopologyprecise_expected contrib/postgis/topology/test/regress/polygonize.sql contrib/postgis/topology/test/regress/polygonize_expected contrib/postgis/topology/test/regress/populate_topology_layer.sql contrib/postgis/topology/test/regress/populate_topology_layer_expected contrib/postgis/topology/test/regress/removeunusedprimitives.sql contrib/postgis/topology/test/regress/removeunusedprimitives_expected contrib/postgis/topology/test/regress/renametopogeometrycolumn.sql contrib/postgis/topology/test/regress/renametopogeometrycolumn_expected contrib/postgis/topology/test/regress/renametopology.sql contrib/postgis/topology/test/regress/renametopology_expected contrib/postgis/topology/test/regress/share_sequences.sql contrib/postgis/topology/test/regress/share_sequences_expected contrib/postgis/topology/test/regress/sqlmm.sql contrib/postgis/topology/test/regress/sqlmm_expected contrib/postgis/topology/test/regress/st_addedgemodface.sql contrib/postgis/topology/test/regress/st_addedgemodface_expected contrib/postgis/topology/test/regress/st_addedgenewfaces.sql contrib/postgis/topology/test/regress/st_addedgenewfaces_expected contrib/postgis/topology/test/regress/st_addisoedge.sql contrib/postgis/topology/test/regress/st_addisoedge_expected contrib/postgis/topology/test/regress/st_addisonode.sql contrib/postgis/topology/test/regress/st_addisonode_expected contrib/postgis/topology/test/regress/st_changeedgegeom.sql contrib/postgis/topology/test/regress/st_changeedgegeom_expected contrib/postgis/topology/test/regress/st_createtopogeo.sql contrib/postgis/topology/test/regress/st_createtopogeo_expected contrib/postgis/topology/test/regress/st_getfaceedges.sql contrib/postgis/topology/test/regress/st_getfaceedges_expected contrib/postgis/topology/test/regress/st_getfacegeometry.sql contrib/postgis/topology/test/regress/st_getfacegeometry_expected contrib/postgis/topology/test/regress/st_modedgeheal.sql contrib/postgis/topology/test/regress/st_modedgeheal_expected contrib/postgis/topology/test/regress/st_modedgesplit.sql contrib/postgis/topology/test/regress/st_modedgesplit_expected contrib/postgis/topology/test/regress/st_moveisonode.sql contrib/postgis/topology/test/regress/st_moveisonode_expected contrib/postgis/topology/test/regress/st_newedgeheal.sql contrib/postgis/topology/test/regress/st_newedgeheal_expected contrib/postgis/topology/test/regress/st_newedgessplit.sql contrib/postgis/topology/test/regress/st_newedgessplit_expected contrib/postgis/topology/test/regress/st_remedgemodface.sql contrib/postgis/topology/test/regress/st_remedgemodface_expected contrib/postgis/topology/test/regress/st_remedgenewface.sql contrib/postgis/topology/test/regress/st_remedgenewface_expected contrib/postgis/topology/test/regress/st_removeisoedge.sql contrib/postgis/topology/test/regress/st_removeisoedge_expected contrib/postgis/topology/test/regress/st_removeisonode.sql contrib/postgis/topology/test/regress/st_removeisonode_expected contrib/postgis/topology/test/regress/st_simplify.sql contrib/postgis/topology/test/regress/st_simplify_expected contrib/postgis/topology/test/regress/topo2.5d.sql contrib/postgis/topology/test/regress/topo2.5d_expected contrib/postgis/topology/test/regress/topoelement.sql contrib/postgis/topology/test/regress/topoelement_cast.sql contrib/postgis/topology/test/regress/topoelement_cast_expected contrib/postgis/topology/test/regress/topoelement_expected contrib/postgis/topology/test/regress/topoelementarray_agg.sql contrib/postgis/topology/test/regress/topoelementarray_agg_expected contrib/postgis/topology/test/regress/topogeo_addlinestring.sql contrib/postgis/topology/test/regress/topogeo_addlinestring_expected contrib/postgis/topology/test/regress/topogeo_addlinestring_robust.sql contrib/postgis/topology/test/regress/topogeo_addlinestring_robust_expected contrib/postgis/topology/test/regress/topogeo_addpoint.sql contrib/postgis/topology/test/regress/topogeo_addpoint_expected contrib/postgis/topology/test/regress/topogeo_addpoint_merge_edges.sql contrib/postgis/topology/test/regress/topogeo_addpoint_merge_edges_expected contrib/postgis/topology/test/regress/topogeo_addpolygon.sql contrib/postgis/topology/test/regress/topogeo_addpolygon_expected contrib/postgis/topology/test/regress/topogeo_loadgeometry.sql contrib/postgis/topology/test/regress/topogeo_loadgeometry_expected contrib/postgis/topology/test/regress/topogeom_addtopogeom.sql contrib/postgis/topology/test/regress/topogeom_addtopogeom_expected contrib/postgis/topology/test/regress/topogeom_edit.sql contrib/postgis/topology/test/regress/topogeom_edit_expected contrib/postgis/topology/test/regress/topogeometry_srid.sql contrib/postgis/topology/test/regress/topogeometry_srid_expected contrib/postgis/topology/test/regress/topogeometry_type.sql contrib/postgis/topology/test/regress/topogeometry_type_expected contrib/postgis/topology/test/regress/topojson.sql contrib/postgis/topology/test/regress/topojson_expected contrib/postgis/topology/test/regress/topologysummary.sql contrib/postgis/topology/test/regress/topologysummary_expected contrib/postgis/topology/test/regress/totaltopologysize.sql contrib/postgis/topology/test/regress/totaltopologysize_expected contrib/postgis/topology/test/regress/totopogeom.sql contrib/postgis/topology/test/regress/totopogeom_expected contrib/postgis/topology/test/regress/upgradetopology.sql contrib/postgis/topology/test/regress/upgradetopology_expected contrib/postgis/topology/test/regress/validatetopology.sql contrib/postgis/topology/test/regress/validatetopology_expected contrib/postgis/topology/test/regress/validatetopology_large.sql contrib/postgis/topology/test/regress/validatetopology_large_expected contrib/postgis/topology/test/regress/validatetopologyprecision.sql contrib/postgis/topology/test/regress/validatetopologyprecision_expected contrib/postgis/topology/test/regress/validatetopologyrelation.sql contrib/postgis/topology/test/regress/validatetopologyrelation_expected contrib/postgis/topology/test/regress/validatetopologyrelation_large.sql contrib/postgis/topology/test/regress/validatetopologyrelation_large_expected contrib/postgis/topology/test/regress/verifylargeids.sql contrib/postgis/topology/test/regress/verifylargeids_expected contrib/postgis/topology/test/tests.mk contrib/postgis/topology/test/validate_topology.sql contrib/postgis/topology/topology.sql.in contrib/postgis/topology/topology_after_upgrade.sql.in contrib/postgis/topology/topology_before_upgrade.sql.in contrib/postgis/utils/Makefile.in contrib/postgis/utils/README contrib/postgis/utils/check_all_upgrades.sh contrib/postgis/utils/check_cluster_upgrade.sh contrib/postgis/utils/check_distclean.sh contrib/postgis/utils/check_extension_downgrades.sql contrib/postgis/utils/check_lang_enabled.sh contrib/postgis/utils/check_localized_cheatsheets.sh contrib/postgis/utils/check_news.sh contrib/postgis/utils/check_tests_enabled.sh contrib/postgis/utils/create_extension_unpackage.pl contrib/postgis/utils/create_or_replace_to_create.pl contrib/postgis/utils/create_skip_signatures.pl contrib/postgis/utils/create_spatial_ref_sys_config_dump.pl contrib/postgis/utils/create_uninstall.pl contrib/postgis/utils/create_unpackaged.pl contrib/postgis/utils/create_upgrade.pl contrib/postgis/utils/extract_majmin_version.sh contrib/postgis/utils/fix_xml_entities.sh contrib/postgis/utils/postgis_restore.pl.in contrib/postgis/utils/profile_intersects.pl contrib/postgis/utils/read_scripts_version.pl contrib/postgis/utils/repo_revision.pl contrib/postgis/utils/test_estimation.pl contrib/postgis/utils/test_geography_estimation.pl contrib/postgis/utils/test_geography_joinestimation.pl contrib/postgis/utils/test_joinestimation.pl contrib/postgis/utils/uninstall_script contrib/postgres_fdw/.gitignore contrib/postgres_fdw/Makefile contrib/postgres_fdw/connection.c contrib/postgres_fdw/deparse.c contrib/postgres_fdw/expected/eval_plan_qual.out contrib/postgres_fdw/expected/postgres_fdw.out contrib/postgres_fdw/expected/query_cancel.out contrib/postgres_fdw/expected/query_cancel_1.out contrib/postgres_fdw/meson.build contrib/postgres_fdw/option.c contrib/postgres_fdw/postgres_fdw--1.0--1.1.sql contrib/postgres_fdw/postgres_fdw--1.0.sql contrib/postgres_fdw/postgres_fdw--1.1--1.2.sql contrib/postgres_fdw/postgres_fdw.c contrib/postgres_fdw/postgres_fdw.control contrib/postgres_fdw/postgres_fdw.h contrib/postgres_fdw/shippable.c contrib/postgres_fdw/specs/eval_plan_qual.spec contrib/postgres_fdw/sql/postgres_fdw.sql contrib/postgres_fdw/sql/query_cancel.sql contrib/postgres_fdw/t/001_auth_scram.pl contrib/procdate/expected/proc_date.out contrib/procdate/makefile contrib/procdate/proc_date--1.0.sql contrib/procdate/proc_date.control contrib/procdate/sql/proc_date.sql contrib/seg/.gitignore contrib/seg/Makefile contrib/seg/data/test_seg.data contrib/seg/expected/partition.out contrib/seg/expected/security.out contrib/seg/expected/seg.out contrib/seg/meson.build contrib/seg/seg--1.0--1.1.sql contrib/seg/seg--1.1--1.2.sql contrib/seg/seg--1.1.sql contrib/seg/seg--1.2--1.3.sql contrib/seg/seg--1.3--1.4.sql contrib/seg/seg-validate.pl contrib/seg/seg.c contrib/seg/seg.control contrib/seg/segdata.h contrib/seg/segparse.y contrib/seg/segscan.l contrib/seg/sort-segments.pl contrib/seg/sql/partition.sql contrib/seg/sql/security.sql contrib/seg/sql/seg.sql contrib/sepgsql/.gitignore contrib/sepgsql/Makefile contrib/sepgsql/database.c contrib/sepgsql/dml.c contrib/sepgsql/expected/alter.out contrib/sepgsql/expected/ddl.out contrib/sepgsql/expected/dml.out contrib/sepgsql/expected/label.out contrib/sepgsql/expected/misc.out contrib/sepgsql/expected/truncate.out contrib/sepgsql/hooks.c contrib/sepgsql/label.c contrib/sepgsql/launcher contrib/sepgsql/meson.build contrib/sepgsql/proc.c contrib/sepgsql/relation.c contrib/sepgsql/schema.c contrib/sepgsql/selinux.c contrib/sepgsql/sepgsql-regtest.te contrib/sepgsql/sepgsql.h contrib/sepgsql/sepgsql.sql.in contrib/sepgsql/sql/alter.sql contrib/sepgsql/sql/ddl.sql contrib/sepgsql/sql/dml.sql contrib/sepgsql/sql/label.sql contrib/sepgsql/sql/misc.sql contrib/sepgsql/sql/truncate.sql contrib/sepgsql/t/001_sepgsql.pl contrib/sepgsql/test_sepgsql contrib/sepgsql/uavc.c contrib/spi/.gitignore contrib/spi/Makefile contrib/spi/autoinc--1.0.sql contrib/spi/autoinc.c contrib/spi/autoinc.control contrib/spi/autoinc.example contrib/spi/expected/autoinc.out contrib/spi/expected/refint.out contrib/spi/insert_username--1.0.sql contrib/spi/insert_username.c contrib/spi/insert_username.control contrib/spi/insert_username.example contrib/spi/meson.build contrib/spi/moddatetime--1.0.sql contrib/spi/moddatetime.c contrib/spi/moddatetime.control contrib/spi/moddatetime.example contrib/spi/refint--1.0.sql contrib/spi/refint.c contrib/spi/refint.control contrib/spi/refint.example contrib/spi/sql/autoinc.sql contrib/spi/sql/refint.sql contrib/sslinfo/Makefile contrib/sslinfo/meson.build contrib/sslinfo/sslinfo--1.0--1.1.sql contrib/sslinfo/sslinfo--1.1--1.2.sql contrib/sslinfo/sslinfo--1.2.sql contrib/sslinfo/sslinfo.c contrib/sslinfo/sslinfo.control contrib/tablefunc/.gitignore contrib/tablefunc/Makefile contrib/tablefunc/data/connectby_int.data contrib/tablefunc/data/connectby_text.data contrib/tablefunc/data/ct.data contrib/tablefunc/expected/tablefunc.out contrib/tablefunc/meson.build contrib/tablefunc/sql/tablefunc.sql contrib/tablefunc/tablefunc--1.0.sql contrib/tablefunc/tablefunc.c contrib/tablefunc/tablefunc.control contrib/tcn/.gitignore contrib/tcn/Makefile contrib/tcn/expected/tcn.out contrib/tcn/meson.build contrib/tcn/specs/tcn.spec contrib/tcn/tcn--1.0.sql contrib/tcn/tcn.c contrib/tcn/tcn.control contrib/tds_fdw/.gitattributes contrib/tds_fdw/.gitignore contrib/tds_fdw/ForeignSchemaImporting.md contrib/tds_fdw/ForeignServerCreation.md contrib/tds_fdw/ForeignTableCreation.md contrib/tds_fdw/InstallAlpine.md contrib/tds_fdw/InstallDebian.md contrib/tds_fdw/InstallOSX.md contrib/tds_fdw/InstallRHELandClones.md contrib/tds_fdw/InstallUbuntu.md contrib/tds_fdw/InstallopenSUSE.md contrib/tds_fdw/LICENSE contrib/tds_fdw/META.json contrib/tds_fdw/Makefile contrib/tds_fdw/README.md contrib/tds_fdw/UserMappingCreation.md contrib/tds_fdw/Variables.md contrib/tds_fdw/diasoft_version.info contrib/tds_fdw/expected/conf_check.out contrib/tds_fdw/include/deparse.h contrib/tds_fdw/include/options.h contrib/tds_fdw/include/tds_fdw.h contrib/tds_fdw/include/visibility.h contrib/tds_fdw/logo/tds_fdw.svg contrib/tds_fdw/sql/conf_check.sql contrib/tds_fdw/sql/tds_fdw.sql contrib/tds_fdw/src/deparse.c contrib/tds_fdw/src/options.c contrib/tds_fdw/src/tds_fdw.c contrib/tds_fdw/tds_fdw--2.0.1--2.0.2.sql contrib/tds_fdw/tds_fdw--2.0.2--2.0.3.sql contrib/tds_fdw/tds_fdw--2.0.3--2.0.4.sql contrib/tds_fdw/tds_fdw--2.0.4--2.0.5.sql contrib/tds_fdw/tds_fdw.control contrib/tds_fdw/tests/.gitignore contrib/tds_fdw/tests/README.md contrib/tds_fdw/tests/lib/__init__.py contrib/tds_fdw/tests/lib/messages.py contrib/tds_fdw/tests/lib/tests.py contrib/tds_fdw/tests/mssql-tests.py contrib/tds_fdw/tests/postgresql-tests.py contrib/tds_fdw/tests/tests/mssql/000_create_schema.json contrib/tds_fdw/tests/tests/mssql/000_create_schema.sql contrib/tds_fdw/tests/tests/mssql/001_create_tinyint_min_table.json contrib/tds_fdw/tests/tests/mssql/001_create_tinyint_min_table.sql contrib/tds_fdw/tests/tests/mssql/002_create_tinyint_max_table.json contrib/tds_fdw/tests/tests/mssql/002_create_tinyint_max_table.sql contrib/tds_fdw/tests/tests/mssql/003_create_smallint_min_table.json contrib/tds_fdw/tests/tests/mssql/003_create_smallint_min_table.sql contrib/tds_fdw/tests/tests/mssql/004_create_smallint_max_table.json contrib/tds_fdw/tests/tests/mssql/004_create_smallint_max_table.sql contrib/tds_fdw/tests/tests/mssql/005_create_int_min_table.json contrib/tds_fdw/tests/tests/mssql/005_create_int_min_table.sql contrib/tds_fdw/tests/tests/mssql/006_create_int_max_table.json contrib/tds_fdw/tests/tests/mssql/006_create_int_max_table.sql contrib/tds_fdw/tests/tests/mssql/007_create_bigint_min_table.json contrib/tds_fdw/tests/tests/mssql/007_create_bigint_min_table.sql contrib/tds_fdw/tests/tests/mssql/008_create_bigint_max_table.json contrib/tds_fdw/tests/tests/mssql/008_create_bigint_max_table.sql contrib/tds_fdw/tests/tests/mssql/009_create_decimal_table.json contrib/tds_fdw/tests/tests/mssql/009_create_decimal_table.sql contrib/tds_fdw/tests/tests/mssql/010_create_float4_table.json contrib/tds_fdw/tests/tests/mssql/010_create_float4_table.sql contrib/tds_fdw/tests/tests/mssql/011_create_float8_table.json contrib/tds_fdw/tests/tests/mssql/011_create_float8_table.sql contrib/tds_fdw/tests/tests/mssql/012_create_date_table.json contrib/tds_fdw/tests/tests/mssql/012_create_date_table.sql contrib/tds_fdw/tests/tests/mssql/013_create_time_table.json contrib/tds_fdw/tests/tests/mssql/013_create_time_table.sql contrib/tds_fdw/tests/tests/mssql/014_create_datetime_table.json contrib/tds_fdw/tests/tests/mssql/014_create_datetime_table.sql contrib/tds_fdw/tests/tests/mssql/015_create_datetime2_table.json contrib/tds_fdw/tests/tests/mssql/015_create_datetime2_table.sql contrib/tds_fdw/tests/tests/mssql/016_create_datetimeoffset_table.json contrib/tds_fdw/tests/tests/mssql/016_create_datetimeoffset_table.sql contrib/tds_fdw/tests/tests/mssql/017_create_char_table.json contrib/tds_fdw/tests/tests/mssql/017_create_char_table.sql contrib/tds_fdw/tests/tests/mssql/018_create_varchar_table.json contrib/tds_fdw/tests/tests/mssql/018_create_varchar_table.sql contrib/tds_fdw/tests/tests/mssql/019_create_varcharmax_table.json contrib/tds_fdw/tests/tests/mssql/019_create_varcharmax_table.sql contrib/tds_fdw/tests/tests/mssql/020_create_binary4_table.json contrib/tds_fdw/tests/tests/mssql/020_create_binary4_table.sql contrib/tds_fdw/tests/tests/mssql/021_create_varbinary4_table.json contrib/tds_fdw/tests/tests/mssql/021_create_varbinary4_table.sql contrib/tds_fdw/tests/tests/mssql/022_create_varbinarymax_table.json contrib/tds_fdw/tests/tests/mssql/022_create_varbinarymax_table.sql contrib/tds_fdw/tests/tests/mssql/023_create_null_datetime_table.json contrib/tds_fdw/tests/tests/mssql/023_create_null_datetime_table.sql contrib/tds_fdw/tests/tests/mssql/024_create_null_datetime2_table.json contrib/tds_fdw/tests/tests/mssql/024_create_null_datetime2_table.sql contrib/tds_fdw/tests/tests/mssql/025_create_match_column_table.json contrib/tds_fdw/tests/tests/mssql/025_create_match_column_table.sql contrib/tds_fdw/tests/tests/mssql/026_create_column_name_table.json contrib/tds_fdw/tests/tests/mssql/026_create_column_name_table.sql contrib/tds_fdw/tests/tests/mssql/027_create_query_option_table.json contrib/tds_fdw/tests/tests/mssql/027_create_query_option_table.sql contrib/tds_fdw/tests/tests/mssql/028_create_view_simple_prerequisites.json contrib/tds_fdw/tests/tests/mssql/028_create_view_simple_prerequisites.sql contrib/tds_fdw/tests/tests/mssql/029_create_view_simple.json contrib/tds_fdw/tests/tests/mssql/029_create_view_simple.sql contrib/tds_fdw/tests/tests/mssql/030_create_money_min_table.json contrib/tds_fdw/tests/tests/mssql/030_create_money_min_table.sql contrib/tds_fdw/tests/tests/mssql/031_create_money_max_table.json contrib/tds_fdw/tests/tests/mssql/031_create_money_max_table.sql contrib/tds_fdw/tests/tests/mssql/032_create_smallmoney_min_table.json contrib/tds_fdw/tests/tests/mssql/032_create_smallmoney_min_table.sql contrib/tds_fdw/tests/tests/mssql/033_create_smallmoney_max_table.json contrib/tds_fdw/tests/tests/mssql/033_create_smallmoney_max_table.sql contrib/tds_fdw/tests/tests/postgresql/000_create_schema.json contrib/tds_fdw/tests/tests/postgresql/000_create_schema.sql contrib/tds_fdw/tests/tests/postgresql/001_create_server.json contrib/tds_fdw/tests/tests/postgresql/001_create_server.sql contrib/tds_fdw/tests/tests/postgresql/002_create_user_mapping.json contrib/tds_fdw/tests/tests/postgresql/002_create_user_mapping.sql contrib/tds_fdw/tests/tests/postgresql/003_import_schema.json contrib/tds_fdw/tests/tests/postgresql/003_import_schema.sql contrib/tds_fdw/tests/tests/postgresql/004_tinyintmin.json contrib/tds_fdw/tests/tests/postgresql/004_tinyintmin.sql contrib/tds_fdw/tests/tests/postgresql/005_tinyintmax.json contrib/tds_fdw/tests/tests/postgresql/005_tinyintmax.sql contrib/tds_fdw/tests/tests/postgresql/006_smallintmin.json contrib/tds_fdw/tests/tests/postgresql/006_smallintmin.sql contrib/tds_fdw/tests/tests/postgresql/007_smallintmax.json contrib/tds_fdw/tests/tests/postgresql/007_smallintmax.sql contrib/tds_fdw/tests/tests/postgresql/008_intmin.json contrib/tds_fdw/tests/tests/postgresql/008_intmin.sql contrib/tds_fdw/tests/tests/postgresql/009_intmax.json contrib/tds_fdw/tests/tests/postgresql/009_intmax.sql contrib/tds_fdw/tests/tests/postgresql/010_bigintmin.json contrib/tds_fdw/tests/tests/postgresql/010_bigintmin.sql contrib/tds_fdw/tests/tests/postgresql/011_bigintmax.json contrib/tds_fdw/tests/tests/postgresql/011_bigintmax.sql contrib/tds_fdw/tests/tests/postgresql/012_decimal.json contrib/tds_fdw/tests/tests/postgresql/012_decimal.sql contrib/tds_fdw/tests/tests/postgresql/013_float4.json contrib/tds_fdw/tests/tests/postgresql/013_float4.sql contrib/tds_fdw/tests/tests/postgresql/014_float8.json contrib/tds_fdw/tests/tests/postgresql/014_float8.sql contrib/tds_fdw/tests/tests/postgresql/015_date.json contrib/tds_fdw/tests/tests/postgresql/015_date.sql contrib/tds_fdw/tests/tests/postgresql/016_time.json contrib/tds_fdw/tests/tests/postgresql/016_time.sql contrib/tds_fdw/tests/tests/postgresql/017_datetime.json contrib/tds_fdw/tests/tests/postgresql/017_datetime.sql contrib/tds_fdw/tests/tests/postgresql/018_datetime2.json contrib/tds_fdw/tests/tests/postgresql/018_datetime2.sql contrib/tds_fdw/tests/tests/postgresql/019_datetimeoffset.json contrib/tds_fdw/tests/tests/postgresql/019_datetimeoffset.sql contrib/tds_fdw/tests/tests/postgresql/020_char.json contrib/tds_fdw/tests/tests/postgresql/020_char.sql contrib/tds_fdw/tests/tests/postgresql/021_varchar.json contrib/tds_fdw/tests/tests/postgresql/021_varchar.sql contrib/tds_fdw/tests/tests/postgresql/022_varcharmax.json contrib/tds_fdw/tests/tests/postgresql/022_varcharmax.sql contrib/tds_fdw/tests/tests/postgresql/023_binary4.json contrib/tds_fdw/tests/tests/postgresql/023_binary4.sql contrib/tds_fdw/tests/tests/postgresql/024_varbinary4.json contrib/tds_fdw/tests/tests/postgresql/024_varbinary4.sql contrib/tds_fdw/tests/tests/postgresql/025_varbinarymax.json contrib/tds_fdw/tests/tests/postgresql/025_varbinarymax.sql contrib/tds_fdw/tests/tests/postgresql/026_null_datetime.json contrib/tds_fdw/tests/tests/postgresql/026_null_datetime.sql contrib/tds_fdw/tests/tests/postgresql/027_null_datetime2.json contrib/tds_fdw/tests/tests/postgresql/027_null_datetime2.sql contrib/tds_fdw/tests/tests/postgresql/028_column_match_enabled.json contrib/tds_fdw/tests/tests/postgresql/028_column_match_enabled.sql contrib/tds_fdw/tests/tests/postgresql/029_column_match_disabled.json contrib/tds_fdw/tests/tests/postgresql/029_column_match_disabled.sql contrib/tds_fdw/tests/tests/postgresql/030_column_name.json contrib/tds_fdw/tests/tests/postgresql/030_column_name.sql contrib/tds_fdw/tests/tests/postgresql/031_query_option_column_match_enabled.json contrib/tds_fdw/tests/tests/postgresql/031_query_option_column_match_enabled.sql contrib/tds_fdw/tests/tests/postgresql/032_query_option_column_match_disabled.json contrib/tds_fdw/tests/tests/postgresql/032_query_option_column_match_disabled.sql contrib/tds_fdw/tests/tests/postgresql/033_view_simple.json contrib/tds_fdw/tests/tests/postgresql/033_view_simple.sql contrib/tds_fdw/tests/tests/postgresql/034_explain.json contrib/tds_fdw/tests/tests/postgresql/034_explain.sql contrib/tds_fdw/tests/tests/postgresql/035_rescan.json contrib/tds_fdw/tests/tests/postgresql/035_rescan.sql contrib/tds_fdw/tests/tests/postgresql/036_moneymin.json contrib/tds_fdw/tests/tests/postgresql/036_moneymin.sql contrib/tds_fdw/tests/tests/postgresql/037_moneymax.json contrib/tds_fdw/tests/tests/postgresql/037_moneymax.sql contrib/tds_fdw/tests/tests/postgresql/038_smallmoneymin.json contrib/tds_fdw/tests/tests/postgresql/038_smallmoneymin.sql contrib/tds_fdw/tests/tests/postgresql/039_smallmoneymax.json contrib/tds_fdw/tests/tests/postgresql/039_smallmoneymax.sql contrib/tds_fdw/tests/validate-test-json contrib/test_decoding/.gitignore contrib/test_decoding/Makefile contrib/test_decoding/expected/binary.out contrib/test_decoding/expected/catalog_change_snapshot.out contrib/test_decoding/expected/concurrent_ddl_dml.out contrib/test_decoding/expected/concurrent_stream.out contrib/test_decoding/expected/ddl.out contrib/test_decoding/expected/decoding_in_xact.out contrib/test_decoding/expected/decoding_into_rel.out contrib/test_decoding/expected/delayed_startup.out contrib/test_decoding/expected/invalidation_distribution.out contrib/test_decoding/expected/messages.out contrib/test_decoding/expected/mxact.out contrib/test_decoding/expected/oldest_xmin.out contrib/test_decoding/expected/ondisk_startup.out contrib/test_decoding/expected/permissions.out contrib/test_decoding/expected/prepared.out contrib/test_decoding/expected/replorigin.out contrib/test_decoding/expected/rewrite.out contrib/test_decoding/expected/skip_snapshot_restore.out contrib/test_decoding/expected/slot.out contrib/test_decoding/expected/slot_creation_error.out contrib/test_decoding/expected/snapshot_transfer.out contrib/test_decoding/expected/spill.out contrib/test_decoding/expected/stats.out contrib/test_decoding/expected/stream.out contrib/test_decoding/expected/subxact_without_top.out contrib/test_decoding/expected/time.out contrib/test_decoding/expected/toast.out contrib/test_decoding/expected/truncate.out contrib/test_decoding/expected/twophase.out contrib/test_decoding/expected/twophase_snapshot.out contrib/test_decoding/expected/twophase_stream.out contrib/test_decoding/expected/xact.out contrib/test_decoding/logical.conf contrib/test_decoding/meson.build contrib/test_decoding/specs/catalog_change_snapshot.spec contrib/test_decoding/specs/concurrent_ddl_dml.spec contrib/test_decoding/specs/concurrent_stream.spec contrib/test_decoding/specs/delayed_startup.spec contrib/test_decoding/specs/invalidation_distribution.spec contrib/test_decoding/specs/mxact.spec contrib/test_decoding/specs/oldest_xmin.spec contrib/test_decoding/specs/ondisk_startup.spec contrib/test_decoding/specs/skip_snapshot_restore.spec contrib/test_decoding/specs/slot_creation_error.spec contrib/test_decoding/specs/snapshot_transfer.spec contrib/test_decoding/specs/subxact_without_top.spec contrib/test_decoding/specs/twophase_snapshot.spec contrib/test_decoding/sql/binary.sql contrib/test_decoding/sql/ddl.sql contrib/test_decoding/sql/decoding_in_xact.sql contrib/test_decoding/sql/decoding_into_rel.sql contrib/test_decoding/sql/messages.sql contrib/test_decoding/sql/permissions.sql contrib/test_decoding/sql/prepared.sql contrib/test_decoding/sql/replorigin.sql contrib/test_decoding/sql/rewrite.sql contrib/test_decoding/sql/slot.sql contrib/test_decoding/sql/spill.sql contrib/test_decoding/sql/stats.sql contrib/test_decoding/sql/stream.sql contrib/test_decoding/sql/time.sql contrib/test_decoding/sql/toast.sql contrib/test_decoding/sql/truncate.sql contrib/test_decoding/sql/twophase.sql contrib/test_decoding/sql/twophase_stream.sql contrib/test_decoding/sql/xact.sql contrib/test_decoding/t/001_repl_stats.pl contrib/test_decoding/test_decoding.c contrib/tsm_system_rows/.gitignore contrib/tsm_system_rows/Makefile contrib/tsm_system_rows/expected/tsm_system_rows.out contrib/tsm_system_rows/meson.build contrib/tsm_system_rows/sql/tsm_system_rows.sql contrib/tsm_system_rows/tsm_system_rows--1.0.sql contrib/tsm_system_rows/tsm_system_rows.c contrib/tsm_system_rows/tsm_system_rows.control contrib/tsm_system_time/.gitignore contrib/tsm_system_time/Makefile contrib/tsm_system_time/expected/tsm_system_time.out contrib/tsm_system_time/meson.build contrib/tsm_system_time/sql/tsm_system_time.sql contrib/tsm_system_time/tsm_system_time--1.0.sql contrib/tsm_system_time/tsm_system_time.c contrib/tsm_system_time/tsm_system_time.control contrib/unaccent/.gitignore contrib/unaccent/Makefile contrib/unaccent/expected/unaccent.out contrib/unaccent/expected/unaccent_1.out contrib/unaccent/generate_unaccent_rules.py contrib/unaccent/meson.build contrib/unaccent/sql/unaccent.sql contrib/unaccent/unaccent--1.0--1.1.sql contrib/unaccent/unaccent--1.1.sql contrib/unaccent/unaccent.c contrib/unaccent/unaccent.control contrib/unaccent/unaccent.rules contrib/uuid-ossp/.gitignore contrib/uuid-ossp/Makefile contrib/uuid-ossp/expected/uuid_ossp.out contrib/uuid-ossp/expected/uuid_ossp_1.out contrib/uuid-ossp/meson.build contrib/uuid-ossp/sql/uuid_ossp.sql contrib/uuid-ossp/uuid-ossp--1.0--1.1.sql contrib/uuid-ossp/uuid-ossp--1.1.sql contrib/uuid-ossp/uuid-ossp.c contrib/uuid-ossp/uuid-ossp.control contrib/vacuumlo/.gitignore contrib/vacuumlo/Makefile contrib/vacuumlo/meson.build contrib/vacuumlo/t/001_basic.pl contrib/vacuumlo/vacuumlo.c contrib/xml2/.gitignore contrib/xml2/Makefile contrib/xml2/expected/xml2.out contrib/xml2/expected/xml2_1.out contrib/xml2/meson.build contrib/xml2/sql/xml2.sql contrib/xml2/xml2--1.0--1.1.sql contrib/xml2/xml2--1.1--1.2.sql contrib/xml2/xml2--1.1.sql contrib/xml2/xml2.control contrib/xml2/xpath.c contrib/xml2/xslt_proc.c db_cr_all.sh distr/ALT/11/, distr/ALT/11/cr_service.sh distr/ALT/11/cr_spec.sh distr/ALT/11/db_cr.sh distr/ALT/11/prep.sh distr/ASTRA/1.8/db_cr.sh distr/ASTRA/1.8/mkcontrol.sh distr/ASTRA/1.8/prep.sh distr/UBUNTU/24/db_cr.sh distr/UBUNTU/24/mkcontrol.sh distr/UBUNTU/24/prep.sh distr/init.sql distr/readme.md doc/KNOWN_BUGS doc/MISSING_FEATURES doc/Makefile doc/TODO doc/src/Makefile doc/src/sgml/.gitignore doc/src/sgml/Makefile doc/src/sgml/README.links doc/src/sgml/README.non-ASCII doc/src/sgml/acronyms.sgml doc/src/sgml/advanced.sgml doc/src/sgml/amcheck.sgml doc/src/sgml/appendix-obsolete-default-roles.sgml doc/src/sgml/appendix-obsolete-pgreceivexlog.sgml doc/src/sgml/appendix-obsolete-pgresetxlog.sgml doc/src/sgml/appendix-obsolete-pgxlogdump.sgml doc/src/sgml/appendix-obsolete-recovery-config.sgml doc/src/sgml/appendix-obsolete.sgml doc/src/sgml/arch-dev.sgml doc/src/sgml/archive-modules.sgml doc/src/sgml/array.sgml doc/src/sgml/auth-delay.sgml doc/src/sgml/auto-explain.sgml doc/src/sgml/backup-manifest.sgml doc/src/sgml/backup.sgml doc/src/sgml/basebackup-to-shell.sgml doc/src/sgml/basic-archive.sgml doc/src/sgml/bgworker.sgml doc/src/sgml/biblio.sgml doc/src/sgml/bki.sgml doc/src/sgml/bloom.sgml doc/src/sgml/brin.sgml doc/src/sgml/btree-gin.sgml doc/src/sgml/btree-gist.sgml doc/src/sgml/btree.sgml doc/src/sgml/catalogs.sgml doc/src/sgml/charset.sgml doc/src/sgml/citext.sgml doc/src/sgml/client-auth.sgml doc/src/sgml/color.sgml doc/src/sgml/config.sgml doc/src/sgml/contrib-spi.sgml doc/src/sgml/contrib.sgml doc/src/sgml/cube.sgml doc/src/sgml/custom-rmgr.sgml doc/src/sgml/custom-scan.sgml doc/src/sgml/datatype.sgml doc/src/sgml/datetime.sgml doc/src/sgml/dblink.sgml doc/src/sgml/ddl.sgml doc/src/sgml/dfunc.sgml doc/src/sgml/dict-int.sgml doc/src/sgml/dict-xsyn.sgml doc/src/sgml/dml.sgml doc/src/sgml/docguide.sgml doc/src/sgml/earthdistance.sgml doc/src/sgml/ecpg.sgml doc/src/sgml/errcodes.sgml doc/src/sgml/event-trigger.sgml doc/src/sgml/extend.sgml doc/src/sgml/external-projects.sgml doc/src/sgml/fdwhandler.sgml doc/src/sgml/features.sgml doc/src/sgml/file-fdw.sgml doc/src/sgml/filelist.sgml doc/src/sgml/func.sgml doc/src/sgml/fuzzystrmatch.sgml doc/src/sgml/generate-errcodes-table.pl doc/src/sgml/generate-keywords-table.pl doc/src/sgml/generate-targets-meson.pl doc/src/sgml/generic-wal.sgml doc/src/sgml/geqo.sgml doc/src/sgml/gin.sgml doc/src/sgml/gist.sgml doc/src/sgml/glossary.sgml doc/src/sgml/hash.sgml doc/src/sgml/high-availability.sgml doc/src/sgml/history.sgml doc/src/sgml/hstore.sgml doc/src/sgml/images/Makefile doc/src/sgml/images/README doc/src/sgml/images/fixup-svg.xsl doc/src/sgml/images/genetic-algorithm.gv doc/src/sgml/images/genetic-algorithm.svg doc/src/sgml/images/gin.gv doc/src/sgml/images/gin.svg doc/src/sgml/images/pagelayout.svg doc/src/sgml/images/pagelayout.txt doc/src/sgml/indexam.sgml doc/src/sgml/indextypes.sgml doc/src/sgml/indices.sgml doc/src/sgml/info.sgml doc/src/sgml/information_schema.sgml doc/src/sgml/install-binaries.sgml doc/src/sgml/installation.sgml doc/src/sgml/intagg.sgml doc/src/sgml/intarray.sgml doc/src/sgml/intro.sgml doc/src/sgml/isn.sgml doc/src/sgml/jit.sgml doc/src/sgml/json.sgml doc/src/sgml/keywords.sgml doc/src/sgml/keywords/sql1992-nonreserved.txt doc/src/sgml/keywords/sql1992-reserved.txt doc/src/sgml/keywords/sql2016-02-nonreserved.txt doc/src/sgml/keywords/sql2016-02-reserved.txt doc/src/sgml/keywords/sql2016-09-nonreserved.txt doc/src/sgml/keywords/sql2016-09-reserved.txt doc/src/sgml/keywords/sql2016-14-nonreserved.txt doc/src/sgml/keywords/sql2016-14-reserved.txt doc/src/sgml/keywords/sql2023-02-nonreserved.txt doc/src/sgml/keywords/sql2023-02-reserved.txt doc/src/sgml/keywords/sql2023-09-nonreserved.txt doc/src/sgml/keywords/sql2023-09-reserved.txt doc/src/sgml/keywords/sql2023-14-nonreserved.txt doc/src/sgml/keywords/sql2023-14-reserved.txt doc/src/sgml/legal.sgml doc/src/sgml/libpq.sgml doc/src/sgml/limits.sgml doc/src/sgml/lo.sgml doc/src/sgml/lobj.sgml doc/src/sgml/logical-replication.sgml doc/src/sgml/logicaldecoding.sgml doc/src/sgml/ltree.sgml doc/src/sgml/maintenance.sgml doc/src/sgml/manage-ag.sgml doc/src/sgml/meson.build doc/src/sgml/mk_feature_tables.pl doc/src/sgml/monitoring.sgml doc/src/sgml/mvcc.sgml doc/src/sgml/nls.sgml doc/src/sgml/notation.sgml doc/src/sgml/oauth-validators.sgml doc/src/sgml/oid2name.sgml doc/src/sgml/pageinspect.sgml doc/src/sgml/parallel.sgml doc/src/sgml/passwordcheck.sgml doc/src/sgml/perform.sgml doc/src/sgml/pgbuffercache.sgml doc/src/sgml/pgcrypto.sgml doc/src/sgml/pgfreespacemap.sgml doc/src/sgml/pglogicalinspect.sgml doc/src/sgml/pgoverexplain.sgml doc/src/sgml/pgprewarm.sgml doc/src/sgml/pgrowlocks.sgml doc/src/sgml/pgstatstatements.sgml doc/src/sgml/pgstattuple.sgml doc/src/sgml/pgsurgery.sgml doc/src/sgml/pgtrgm.sgml doc/src/sgml/pgvisibility.sgml doc/src/sgml/pgwalinspect.sgml doc/src/sgml/planstats.sgml doc/src/sgml/plhandler.sgml doc/src/sgml/plperl.sgml doc/src/sgml/plpgsql.sgml doc/src/sgml/plpython.sgml doc/src/sgml/pltcl.sgml doc/src/sgml/postgres-fdw.sgml doc/src/sgml/postgres.sgml doc/src/sgml/problems.sgml doc/src/sgml/protocol.sgml doc/src/sgml/queries.sgml doc/src/sgml/query.sgml doc/src/sgml/rangetypes.sgml doc/src/sgml/ref/abort.sgml doc/src/sgml/ref/allfiles.sgml doc/src/sgml/ref/alter_aggregate.sgml doc/src/sgml/ref/alter_collation.sgml doc/src/sgml/ref/alter_conversion.sgml doc/src/sgml/ref/alter_database.sgml doc/src/sgml/ref/alter_default_privileges.sgml doc/src/sgml/ref/alter_domain.sgml doc/src/sgml/ref/alter_event_trigger.sgml doc/src/sgml/ref/alter_extension.sgml doc/src/sgml/ref/alter_foreign_data_wrapper.sgml doc/src/sgml/ref/alter_foreign_table.sgml doc/src/sgml/ref/alter_function.sgml doc/src/sgml/ref/alter_group.sgml doc/src/sgml/ref/alter_index.sgml doc/src/sgml/ref/alter_language.sgml doc/src/sgml/ref/alter_large_object.sgml doc/src/sgml/ref/alter_materialized_view.sgml doc/src/sgml/ref/alter_opclass.sgml doc/src/sgml/ref/alter_operator.sgml doc/src/sgml/ref/alter_opfamily.sgml doc/src/sgml/ref/alter_policy.sgml doc/src/sgml/ref/alter_procedure.sgml doc/src/sgml/ref/alter_publication.sgml doc/src/sgml/ref/alter_role.sgml doc/src/sgml/ref/alter_routine.sgml doc/src/sgml/ref/alter_rule.sgml doc/src/sgml/ref/alter_schema.sgml doc/src/sgml/ref/alter_sequence.sgml doc/src/sgml/ref/alter_server.sgml doc/src/sgml/ref/alter_statistics.sgml doc/src/sgml/ref/alter_subscription.sgml doc/src/sgml/ref/alter_system.sgml doc/src/sgml/ref/alter_table.sgml doc/src/sgml/ref/alter_tablespace.sgml doc/src/sgml/ref/alter_trigger.sgml doc/src/sgml/ref/alter_tsconfig.sgml doc/src/sgml/ref/alter_tsdictionary.sgml doc/src/sgml/ref/alter_tsparser.sgml doc/src/sgml/ref/alter_tstemplate.sgml doc/src/sgml/ref/alter_type.sgml doc/src/sgml/ref/alter_user.sgml doc/src/sgml/ref/alter_user_mapping.sgml doc/src/sgml/ref/alter_view.sgml doc/src/sgml/ref/analyze.sgml doc/src/sgml/ref/begin.sgml doc/src/sgml/ref/call.sgml doc/src/sgml/ref/checkpoint.sgml doc/src/sgml/ref/close.sgml doc/src/sgml/ref/cluster.sgml doc/src/sgml/ref/clusterdb.sgml doc/src/sgml/ref/comment.sgml doc/src/sgml/ref/commit.sgml doc/src/sgml/ref/commit_prepared.sgml doc/src/sgml/ref/copy.sgml doc/src/sgml/ref/create_access_method.sgml doc/src/sgml/ref/create_aggregate.sgml doc/src/sgml/ref/create_cast.sgml doc/src/sgml/ref/create_collation.sgml doc/src/sgml/ref/create_conversion.sgml doc/src/sgml/ref/create_database.sgml doc/src/sgml/ref/create_domain.sgml doc/src/sgml/ref/create_event_trigger.sgml doc/src/sgml/ref/create_extension.sgml doc/src/sgml/ref/create_foreign_data_wrapper.sgml doc/src/sgml/ref/create_foreign_table.sgml doc/src/sgml/ref/create_function.sgml doc/src/sgml/ref/create_group.sgml doc/src/sgml/ref/create_index.sgml doc/src/sgml/ref/create_language.sgml doc/src/sgml/ref/create_materialized_view.sgml doc/src/sgml/ref/create_opclass.sgml doc/src/sgml/ref/create_operator.sgml doc/src/sgml/ref/create_opfamily.sgml doc/src/sgml/ref/create_policy.sgml doc/src/sgml/ref/create_procedure.sgml doc/src/sgml/ref/create_publication.sgml doc/src/sgml/ref/create_role.sgml doc/src/sgml/ref/create_rule.sgml doc/src/sgml/ref/create_schema.sgml doc/src/sgml/ref/create_sequence.sgml doc/src/sgml/ref/create_server.sgml doc/src/sgml/ref/create_statistics.sgml doc/src/sgml/ref/create_subscription.sgml doc/src/sgml/ref/create_table.sgml doc/src/sgml/ref/create_table_as.sgml doc/src/sgml/ref/create_tablespace.sgml doc/src/sgml/ref/create_transform.sgml doc/src/sgml/ref/create_trigger.sgml doc/src/sgml/ref/create_tsconfig.sgml doc/src/sgml/ref/create_tsdictionary.sgml doc/src/sgml/ref/create_tsparser.sgml doc/src/sgml/ref/create_tstemplate.sgml doc/src/sgml/ref/create_type.sgml doc/src/sgml/ref/create_user.sgml doc/src/sgml/ref/create_user_mapping.sgml doc/src/sgml/ref/create_view.sgml doc/src/sgml/ref/createdb.sgml doc/src/sgml/ref/createuser.sgml doc/src/sgml/ref/deallocate.sgml doc/src/sgml/ref/declare.sgml doc/src/sgml/ref/delete.sgml doc/src/sgml/ref/discard.sgml doc/src/sgml/ref/do.sgml doc/src/sgml/ref/drop_access_method.sgml doc/src/sgml/ref/drop_aggregate.sgml doc/src/sgml/ref/drop_cast.sgml doc/src/sgml/ref/drop_collation.sgml doc/src/sgml/ref/drop_conversion.sgml doc/src/sgml/ref/drop_database.sgml doc/src/sgml/ref/drop_domain.sgml doc/src/sgml/ref/drop_event_trigger.sgml doc/src/sgml/ref/drop_extension.sgml doc/src/sgml/ref/drop_foreign_data_wrapper.sgml doc/src/sgml/ref/drop_foreign_table.sgml doc/src/sgml/ref/drop_function.sgml doc/src/sgml/ref/drop_group.sgml doc/src/sgml/ref/drop_index.sgml doc/src/sgml/ref/drop_language.sgml doc/src/sgml/ref/drop_materialized_view.sgml doc/src/sgml/ref/drop_opclass.sgml doc/src/sgml/ref/drop_operator.sgml doc/src/sgml/ref/drop_opfamily.sgml doc/src/sgml/ref/drop_owned.sgml doc/src/sgml/ref/drop_policy.sgml doc/src/sgml/ref/drop_procedure.sgml doc/src/sgml/ref/drop_publication.sgml doc/src/sgml/ref/drop_role.sgml doc/src/sgml/ref/drop_routine.sgml doc/src/sgml/ref/drop_rule.sgml doc/src/sgml/ref/drop_schema.sgml doc/src/sgml/ref/drop_sequence.sgml doc/src/sgml/ref/drop_server.sgml doc/src/sgml/ref/drop_statistics.sgml doc/src/sgml/ref/drop_subscription.sgml doc/src/sgml/ref/drop_table.sgml doc/src/sgml/ref/drop_tablespace.sgml doc/src/sgml/ref/drop_transform.sgml doc/src/sgml/ref/drop_trigger.sgml doc/src/sgml/ref/drop_tsconfig.sgml doc/src/sgml/ref/drop_tsdictionary.sgml doc/src/sgml/ref/drop_tsparser.sgml doc/src/sgml/ref/drop_tstemplate.sgml doc/src/sgml/ref/drop_type.sgml doc/src/sgml/ref/drop_user.sgml doc/src/sgml/ref/drop_user_mapping.sgml doc/src/sgml/ref/drop_view.sgml doc/src/sgml/ref/dropdb.sgml doc/src/sgml/ref/dropuser.sgml doc/src/sgml/ref/ecpg-ref.sgml doc/src/sgml/ref/end.sgml doc/src/sgml/ref/execute.sgml doc/src/sgml/ref/explain.sgml doc/src/sgml/ref/fetch.sgml doc/src/sgml/ref/grant.sgml doc/src/sgml/ref/import_foreign_schema.sgml doc/src/sgml/ref/initdb.sgml doc/src/sgml/ref/insert.sgml doc/src/sgml/ref/listen.sgml doc/src/sgml/ref/load.sgml doc/src/sgml/ref/lock.sgml doc/src/sgml/ref/merge.sgml doc/src/sgml/ref/move.sgml doc/src/sgml/ref/notify.sgml doc/src/sgml/ref/pg_amcheck.sgml doc/src/sgml/ref/pg_basebackup.sgml doc/src/sgml/ref/pg_checksums.sgml doc/src/sgml/ref/pg_combinebackup.sgml doc/src/sgml/ref/pg_config-ref.sgml doc/src/sgml/ref/pg_controldata.sgml doc/src/sgml/ref/pg_createsubscriber.sgml doc/src/sgml/ref/pg_ctl-ref.sgml doc/src/sgml/ref/pg_dump.sgml doc/src/sgml/ref/pg_dumpall.sgml doc/src/sgml/ref/pg_isready.sgml doc/src/sgml/ref/pg_receivewal.sgml doc/src/sgml/ref/pg_recvlogical.sgml doc/src/sgml/ref/pg_resetwal.sgml doc/src/sgml/ref/pg_restore.sgml doc/src/sgml/ref/pg_rewind.sgml doc/src/sgml/ref/pg_verifybackup.sgml doc/src/sgml/ref/pg_waldump.sgml doc/src/sgml/ref/pg_walsummary.sgml doc/src/sgml/ref/pgarchivecleanup.sgml doc/src/sgml/ref/pgbench.sgml doc/src/sgml/ref/pgtestfsync.sgml doc/src/sgml/ref/pgtesttiming.sgml doc/src/sgml/ref/pgupgrade.sgml doc/src/sgml/ref/postgres-ref.sgml doc/src/sgml/ref/prepare.sgml doc/src/sgml/ref/prepare_transaction.sgml doc/src/sgml/ref/psql-ref.sgml doc/src/sgml/ref/reassign_owned.sgml doc/src/sgml/ref/refresh_materialized_view.sgml doc/src/sgml/ref/reindex.sgml doc/src/sgml/ref/reindexdb.sgml doc/src/sgml/ref/release_savepoint.sgml doc/src/sgml/ref/reset.sgml doc/src/sgml/ref/revoke.sgml doc/src/sgml/ref/rollback.sgml doc/src/sgml/ref/rollback_prepared.sgml doc/src/sgml/ref/rollback_to.sgml doc/src/sgml/ref/savepoint.sgml doc/src/sgml/ref/security_label.sgml doc/src/sgml/ref/select.sgml doc/src/sgml/ref/select_into.sgml doc/src/sgml/ref/set.sgml doc/src/sgml/ref/set_constraints.sgml doc/src/sgml/ref/set_role.sgml doc/src/sgml/ref/set_session_auth.sgml doc/src/sgml/ref/set_transaction.sgml doc/src/sgml/ref/show.sgml doc/src/sgml/ref/start_transaction.sgml doc/src/sgml/ref/truncate.sgml doc/src/sgml/ref/unlisten.sgml doc/src/sgml/ref/update.sgml doc/src/sgml/ref/vacuum.sgml doc/src/sgml/ref/vacuumdb.sgml doc/src/sgml/ref/values.sgml doc/src/sgml/reference.sgml doc/src/sgml/regress.sgml doc/src/sgml/release-18.sgml doc/src/sgml/release.sgml doc/src/sgml/replication-origins.sgml doc/src/sgml/rowtypes.sgml doc/src/sgml/rules.sgml doc/src/sgml/runtime.sgml doc/src/sgml/seg.sgml doc/src/sgml/sepgsql.sgml doc/src/sgml/sourcerepo.sgml doc/src/sgml/sources.sgml doc/src/sgml/spgist.sgml doc/src/sgml/spi.sgml doc/src/sgml/sslinfo.sgml doc/src/sgml/start.sgml doc/src/sgml/storage.sgml doc/src/sgml/stylesheet-common.xsl doc/src/sgml/stylesheet-fo.xsl doc/src/sgml/stylesheet-html-common.xsl doc/src/sgml/stylesheet-html-nochunk.xsl doc/src/sgml/stylesheet-man.xsl doc/src/sgml/stylesheet-speedup-common.xsl doc/src/sgml/stylesheet-speedup-xhtml.xsl doc/src/sgml/stylesheet-text.xsl doc/src/sgml/stylesheet.css doc/src/sgml/stylesheet.css.xml doc/src/sgml/stylesheet.xsl doc/src/sgml/syntax.sgml doc/src/sgml/system-views.sgml doc/src/sgml/tableam.sgml doc/src/sgml/tablefunc.sgml doc/src/sgml/tablesample-method.sgml doc/src/sgml/targets-meson.txt doc/src/sgml/tcn.sgml doc/src/sgml/test-decoding.sgml doc/src/sgml/textsearch.sgml doc/src/sgml/trigger.sgml doc/src/sgml/tsm-system-rows.sgml doc/src/sgml/tsm-system-time.sgml doc/src/sgml/typeconv.sgml doc/src/sgml/unaccent.sgml doc/src/sgml/user-manag.sgml doc/src/sgml/uuid-ossp.sgml doc/src/sgml/vacuumlo.sgml doc/src/sgml/version.sgml.in doc/src/sgml/wal-for-extensions.sgml doc/src/sgml/wal.sgml doc/src/sgml/xact.sgml doc/src/sgml/xaggr.sgml doc/src/sgml/xfunc.sgml doc/src/sgml/xindex.sgml doc/src/sgml/xml2.sgml doc/src/sgml/xmltools_dep_wrapper doc/src/sgml/xoper.sgml doc/src/sgml/xplang.sgml doc/src/sgml/xtypes.sgml doc/Руководство_пользователя_RuDB.pdf full_build.sh meson.build meson_options.txt pg_dgrid/INSTALL.md pg_dgrid/Makefile pg_dgrid/Makefile.debug pg_dgrid/Makefile.defs pg_dgrid/client/Makefile pg_dgrid/client/README pg_dgrid/client/src/main.cpp pg_dgrid/libs/Makefile pg_dgrid/libs/include/dgrid.h pg_dgrid/libs/include/dgrid_client.h pg_dgrid/libs/include/dgrid_config.h pg_dgrid/libs/include/dgrid_logger.h pg_dgrid/libs/include/dgrid_req_structs.h pg_dgrid/libs/include/dgrid_thread.h pg_dgrid/libs/include/json.hpp pg_dgrid/libs/lib/.gitkeep pg_dgrid/libs/libdgrid/Makefile pg_dgrid/libs/libdgrid/include/dgrid.h pg_dgrid/libs/libdgrid/include/dgrid_config.h pg_dgrid/libs/libdgrid/include/dgrid_logger.h pg_dgrid/libs/libdgrid/include/dgrid_req_structs.h pg_dgrid/libs/libdgrid/include/dgrid_thread.h pg_dgrid/libs/libdgrid/include/serialization.h pg_dgrid/libs/libdgrid/src/dgrid.cpp pg_dgrid/libs/libdgrid/src/dgrid_config.cpp pg_dgrid/libs/libdgrid/src/dgrid_logger.cpp pg_dgrid/libs/libdgrid/src/dgrid_req_structs.cpp pg_dgrid/libs/libdgrid/src/dgrid_thread.cpp pg_dgrid/libs/libdgrid_client/Makefile pg_dgrid/libs/libdgrid_client/include/dgrid_client.h pg_dgrid/libs/libdgrid_client/src/dgrid_client.cpp pg_dgrid/libs/libdgrid_client/src/dgrid_client_data.cpp pg_dgrid/libs/libdgrid_client/src/dgrid_client_node.cpp pg_dgrid/libs/libdgrid_client/src/libdgrid_client.cpp pg_dgrid/manual_build_server.txt pg_dgrid/rebuild.sh pg_dgrid/server/Makefile pg_dgrid/server/config/dgridd.conf pg_dgrid/server/config/dgridd.service.template pg_dgrid/server/include/dgrid_auth.h pg_dgrid/server/include/dgridd_child.h pg_dgrid/server/include/dgridd_datastore.h pg_dgrid/server/include/dgridd_datastore_simple.h pg_dgrid/server/include/dgridd_datastore_table.h pg_dgrid/server/include/dgridd_datastore_table_index.h pg_dgrid/server/include/dgridd_node_arbiter.h pg_dgrid/server/include/listener.h pg_dgrid/server/logrotate/dgridd pg_dgrid/server/sql/dgrid.sql pg_dgrid/server/src/dgrid_auth.cpp pg_dgrid/server/src/dgridd_child.cpp pg_dgrid/server/src/dgridd_child_data.cpp pg_dgrid/server/src/dgridd_child_node.cpp pg_dgrid/server/src/dgridd_datastore.cpp pg_dgrid/server/src/dgridd_datastore_simple.cpp pg_dgrid/server/src/dgridd_datastore_table.cpp pg_dgrid/server/src/dgridd_datastore_table_hashed.cpp pg_dgrid/server/src/dgridd_datastore_table_index.cpp pg_dgrid/server/src/dgridd_datastore_table_sorted.cpp pg_dgrid/server/src/dgridd_datastore_table_std.cpp pg_dgrid/server/src/dgridd_node_arbiter.cpp pg_dgrid/server/src/listener.cpp pg_dgrid/server/src/main.cpp run_tests.sh src/.gitignore src/DEVELOPERS src/Makefile src/Makefile.global.in src/Makefile.shlib src/backend/.gitignore src/backend/Makefile src/backend/access/Makefile src/backend/access/brin/Makefile src/backend/access/brin/README src/backend/access/brin/brin.c src/backend/access/brin/brin_bloom.c src/backend/access/brin/brin_inclusion.c src/backend/access/brin/brin_minmax.c src/backend/access/brin/brin_minmax_multi.c src/backend/access/brin/brin_pageops.c src/backend/access/brin/brin_revmap.c src/backend/access/brin/brin_tuple.c src/backend/access/brin/brin_validate.c src/backend/access/brin/brin_xlog.c src/backend/access/brin/meson.build src/backend/access/common/Makefile src/backend/access/common/attmap.c src/backend/access/common/bufmask.c src/backend/access/common/detoast.c src/backend/access/common/heaptuple.c src/backend/access/common/indextuple.c src/backend/access/common/meson.build src/backend/access/common/printsimple.c src/backend/access/common/printtup.c src/backend/access/common/relation.c src/backend/access/common/reloptions.c src/backend/access/common/scankey.c src/backend/access/common/session.c src/backend/access/common/syncscan.c src/backend/access/common/tidstore.c src/backend/access/common/toast_compression.c src/backend/access/common/toast_internals.c src/backend/access/common/tupconvert.c src/backend/access/common/tupdesc.c src/backend/access/gin/Makefile src/backend/access/gin/README src/backend/access/gin/ginarrayproc.c src/backend/access/gin/ginbtree.c src/backend/access/gin/ginbulk.c src/backend/access/gin/gindatapage.c src/backend/access/gin/ginentrypage.c src/backend/access/gin/ginfast.c src/backend/access/gin/ginget.c src/backend/access/gin/gininsert.c src/backend/access/gin/ginlogic.c src/backend/access/gin/ginpostinglist.c src/backend/access/gin/ginscan.c src/backend/access/gin/ginutil.c src/backend/access/gin/ginvacuum.c src/backend/access/gin/ginvalidate.c src/backend/access/gin/ginxlog.c src/backend/access/gin/meson.build src/backend/access/gist/Makefile src/backend/access/gist/README src/backend/access/gist/gist.c src/backend/access/gist/gistbuild.c src/backend/access/gist/gistbuildbuffers.c src/backend/access/gist/gistget.c src/backend/access/gist/gistproc.c src/backend/access/gist/gistscan.c src/backend/access/gist/gistsplit.c src/backend/access/gist/gistutil.c src/backend/access/gist/gistvacuum.c src/backend/access/gist/gistvalidate.c src/backend/access/gist/gistxlog.c src/backend/access/gist/meson.build src/backend/access/hash/Makefile src/backend/access/hash/README src/backend/access/hash/hash.c src/backend/access/hash/hash_xlog.c src/backend/access/hash/hashfunc.c src/backend/access/hash/hashinsert.c src/backend/access/hash/hashovfl.c src/backend/access/hash/hashpage.c src/backend/access/hash/hashsearch.c src/backend/access/hash/hashsort.c src/backend/access/hash/hashutil.c src/backend/access/hash/hashvalidate.c src/backend/access/hash/meson.build src/backend/access/heap/Makefile src/backend/access/heap/README.HOT src/backend/access/heap/README.tuplock src/backend/access/heap/heapam.c src/backend/access/heap/heapam_handler.c src/backend/access/heap/heapam_visibility.c src/backend/access/heap/heapam_xlog.c src/backend/access/heap/heaptoast.c src/backend/access/heap/hio.c src/backend/access/heap/meson.build src/backend/access/heap/pruneheap.c src/backend/access/heap/rewriteheap.c src/backend/access/heap/tempcat.c src/backend/access/heap/tupmap.c src/backend/access/heap/vacuumlazy.c src/backend/access/heap/visibilitymap.c src/backend/access/index/Makefile src/backend/access/index/amapi.c src/backend/access/index/amvalidate.c src/backend/access/index/genam.c src/backend/access/index/indexam.c src/backend/access/index/meson.build src/backend/access/meson.build src/backend/access/nbtree/Makefile src/backend/access/nbtree/README src/backend/access/nbtree/meson.build src/backend/access/nbtree/nbtcompare.c src/backend/access/nbtree/nbtdedup.c src/backend/access/nbtree/nbtinsert.c src/backend/access/nbtree/nbtpage.c src/backend/access/nbtree/nbtpreprocesskeys.c src/backend/access/nbtree/nbtree.c src/backend/access/nbtree/nbtsearch.c src/backend/access/nbtree/nbtsort.c src/backend/access/nbtree/nbtsplitloc.c src/backend/access/nbtree/nbtutils.c src/backend/access/nbtree/nbtvalidate.c src/backend/access/nbtree/nbtxlog.c src/backend/access/rmgrdesc/Makefile src/backend/access/rmgrdesc/README src/backend/access/rmgrdesc/brindesc.c src/backend/access/rmgrdesc/clogdesc.c src/backend/access/rmgrdesc/committsdesc.c src/backend/access/rmgrdesc/dbasedesc.c src/backend/access/rmgrdesc/genericdesc.c src/backend/access/rmgrdesc/gindesc.c src/backend/access/rmgrdesc/gistdesc.c src/backend/access/rmgrdesc/hashdesc.c src/backend/access/rmgrdesc/heapdesc.c src/backend/access/rmgrdesc/logicalmsgdesc.c src/backend/access/rmgrdesc/meson.build src/backend/access/rmgrdesc/mxactdesc.c src/backend/access/rmgrdesc/nbtdesc.c src/backend/access/rmgrdesc/relmapdesc.c src/backend/access/rmgrdesc/replorigindesc.c src/backend/access/rmgrdesc/rmgrdesc_utils.c src/backend/access/rmgrdesc/seqdesc.c src/backend/access/rmgrdesc/smgrdesc.c src/backend/access/rmgrdesc/spgdesc.c src/backend/access/rmgrdesc/standbydesc.c src/backend/access/rmgrdesc/tblspcdesc.c src/backend/access/rmgrdesc/xactdesc.c src/backend/access/rmgrdesc/xlogdesc.c src/backend/access/sequence/Makefile src/backend/access/sequence/meson.build src/backend/access/sequence/sequence.c src/backend/access/spgist/Makefile src/backend/access/spgist/README src/backend/access/spgist/meson.build src/backend/access/spgist/spgdoinsert.c src/backend/access/spgist/spginsert.c src/backend/access/spgist/spgkdtreeproc.c src/backend/access/spgist/spgproc.c src/backend/access/spgist/spgquadtreeproc.c src/backend/access/spgist/spgscan.c src/backend/access/spgist/spgtextproc.c src/backend/access/spgist/spgutils.c src/backend/access/spgist/spgvacuum.c src/backend/access/spgist/spgvalidate.c src/backend/access/spgist/spgxlog.c src/backend/access/table/Makefile src/backend/access/table/meson.build src/backend/access/table/table.c src/backend/access/table/tableam.c src/backend/access/table/tableamapi.c src/backend/access/table/toast_helper.c src/backend/access/tablesample/Makefile src/backend/access/tablesample/bernoulli.c src/backend/access/tablesample/meson.build src/backend/access/tablesample/system.c src/backend/access/tablesample/tablesample.c src/backend/access/transam/Makefile src/backend/access/transam/README src/backend/access/transam/README.parallel src/backend/access/transam/clog.c src/backend/access/transam/commit_ts.c src/backend/access/transam/generic_xlog.c src/backend/access/transam/meson.build src/backend/access/transam/multixact.c src/backend/access/transam/parallel.c src/backend/access/transam/rmgr.c src/backend/access/transam/slru.c src/backend/access/transam/subtrans.c src/backend/access/transam/timeline.c src/backend/access/transam/transam.c src/backend/access/transam/twophase.c src/backend/access/transam/twophase_rmgr.c src/backend/access/transam/varsup.c src/backend/access/transam/xact.c src/backend/access/transam/xlog.c src/backend/access/transam/xlogarchive.c src/backend/access/transam/xlogbackup.c src/backend/access/transam/xlogfuncs.c src/backend/access/transam/xloginsert.c src/backend/access/transam/xlogprefetcher.c src/backend/access/transam/xlogreader.c src/backend/access/transam/xlogrecovery.c src/backend/access/transam/xlogstats.c src/backend/access/transam/xlogutils.c src/backend/archive/Makefile src/backend/archive/meson.build src/backend/archive/shell_archive.c src/backend/backup/Makefile src/backend/backup/backup_manifest.c src/backend/backup/basebackup.c src/backend/backup/basebackup_copy.c src/backend/backup/basebackup_gzip.c src/backend/backup/basebackup_incremental.c src/backend/backup/basebackup_lz4.c src/backend/backup/basebackup_progress.c src/backend/backup/basebackup_server.c src/backend/backup/basebackup_sink.c src/backend/backup/basebackup_target.c src/backend/backup/basebackup_throttle.c src/backend/backup/basebackup_zstd.c src/backend/backup/meson.build src/backend/backup/walsummary.c src/backend/backup/walsummaryfuncs.c src/backend/bootstrap/.gitignore src/backend/bootstrap/Makefile src/backend/bootstrap/bootparse.y src/backend/bootstrap/bootscanner.l src/backend/bootstrap/bootstrap.c src/backend/bootstrap/meson.build src/backend/catalog/Catalog.pm src/backend/catalog/Makefile src/backend/catalog/aclchk.c src/backend/catalog/catalog.c src/backend/catalog/dependency.c src/backend/catalog/genbki.pl src/backend/catalog/heap.c src/backend/catalog/index.c src/backend/catalog/indexing.c src/backend/catalog/information_schema.sql src/backend/catalog/meson.build src/backend/catalog/namespace.c src/backend/catalog/objectaccess.c src/backend/catalog/objectaddress.c src/backend/catalog/partition.c src/backend/catalog/pg_aggregate.c src/backend/catalog/pg_attrdef.c src/backend/catalog/pg_cast.c src/backend/catalog/pg_class.c src/backend/catalog/pg_collation.c src/backend/catalog/pg_constraint.c src/backend/catalog/pg_conversion.c src/backend/catalog/pg_db_role_setting.c src/backend/catalog/pg_depend.c src/backend/catalog/pg_enum.c src/backend/catalog/pg_inherits.c src/backend/catalog/pg_largeobject.c src/backend/catalog/pg_namespace.c src/backend/catalog/pg_operator.c src/backend/catalog/pg_parameter_acl.c src/backend/catalog/pg_proc.c src/backend/catalog/pg_publication.c src/backend/catalog/pg_range.c src/backend/catalog/pg_shdepend.c src/backend/catalog/pg_subscription.c src/backend/catalog/pg_type.c src/backend/catalog/sql_feature_packages.txt src/backend/catalog/sql_features.txt src/backend/catalog/storage.c src/backend/catalog/system_functions.sql src/backend/catalog/system_views.sql src/backend/catalog/toasting.c src/backend/commands/Makefile src/backend/commands/aggregatecmds.c src/backend/commands/alter.c src/backend/commands/amcmds.c src/backend/commands/analyze.c src/backend/commands/async.c src/backend/commands/cluster.c src/backend/commands/collationcmds.c src/backend/commands/comment.c src/backend/commands/constraint.c src/backend/commands/conversioncmds.c src/backend/commands/copy.c src/backend/commands/copyfrom.c src/backend/commands/copyfromparse.c src/backend/commands/copyto.c src/backend/commands/createas.c src/backend/commands/dbcommands.c src/backend/commands/define.c src/backend/commands/discard.c src/backend/commands/dropcmds.c src/backend/commands/event_trigger.c src/backend/commands/explain.c src/backend/commands/explain_dr.c src/backend/commands/explain_format.c src/backend/commands/explain_state.c src/backend/commands/extension.c src/backend/commands/foreigncmds.c src/backend/commands/functioncmds.c src/backend/commands/indexcmds.c src/backend/commands/lockcmds.c src/backend/commands/matview.c src/backend/commands/meson.build src/backend/commands/opclasscmds.c src/backend/commands/operatorcmds.c src/backend/commands/policy.c src/backend/commands/portalcmds.c src/backend/commands/prepare.c src/backend/commands/proclang.c src/backend/commands/publicationcmds.c src/backend/commands/schemacmds.c src/backend/commands/seclabel.c src/backend/commands/sequence.c src/backend/commands/statscmds.c src/backend/commands/subscriptioncmds.c src/backend/commands/tablecmds.c src/backend/commands/tablespace.c src/backend/commands/trigger.c src/backend/commands/tsearchcmds.c src/backend/commands/typecmds.c src/backend/commands/user.c src/backend/commands/vacuum.c src/backend/commands/vacuumparallel.c src/backend/commands/variable.c src/backend/commands/view.c src/backend/common.mk src/backend/executor/Makefile src/backend/executor/README src/backend/executor/execAmi.c src/backend/executor/execAsync.c src/backend/executor/execCurrent.c src/backend/executor/execExpr.c src/backend/executor/execExprInterp.c src/backend/executor/execGrouping.c src/backend/executor/execIndexing.c src/backend/executor/execJunk.c src/backend/executor/execMain.c src/backend/executor/execParallel.c src/backend/executor/execPartition.c src/backend/executor/execProcnode.c src/backend/executor/execReplication.c src/backend/executor/execSRF.c src/backend/executor/execScan.c src/backend/executor/execTuples.c src/backend/executor/execUtils.c src/backend/executor/functions.c src/backend/executor/instrument.c src/backend/executor/meson.build src/backend/executor/nodeAgg.c src/backend/executor/nodeAppend.c src/backend/executor/nodeBitmapAnd.c src/backend/executor/nodeBitmapHeapscan.c src/backend/executor/nodeBitmapIndexscan.c src/backend/executor/nodeBitmapOr.c src/backend/executor/nodeCtescan.c src/backend/executor/nodeCustom.c src/backend/executor/nodeForeignscan.c src/backend/executor/nodeFunctionscan.c src/backend/executor/nodeGather.c src/backend/executor/nodeGatherMerge.c src/backend/executor/nodeGroup.c src/backend/executor/nodeHash.c src/backend/executor/nodeHashjoin.c src/backend/executor/nodeIncrementalSort.c src/backend/executor/nodeIndexonlyscan.c src/backend/executor/nodeIndexscan.c src/backend/executor/nodeLimit.c src/backend/executor/nodeLockRows.c src/backend/executor/nodeMaterial.c src/backend/executor/nodeMemoize.c src/backend/executor/nodeMergeAppend.c src/backend/executor/nodeMergejoin.c src/backend/executor/nodeModifyTable.c src/backend/executor/nodeNamedtuplestorescan.c src/backend/executor/nodeNestloop.c src/backend/executor/nodeProjectSet.c src/backend/executor/nodeRecursiveunion.c src/backend/executor/nodeResult.c src/backend/executor/nodeSamplescan.c src/backend/executor/nodeSeqscan.c src/backend/executor/nodeSetOp.c src/backend/executor/nodeSort.c src/backend/executor/nodeSubplan.c src/backend/executor/nodeSubqueryscan.c src/backend/executor/nodeTableFuncscan.c src/backend/executor/nodeTidrangescan.c src/backend/executor/nodeTidscan.c src/backend/executor/nodeUnique.c src/backend/executor/nodeValuesscan.c src/backend/executor/nodeWindowAgg.c src/backend/executor/nodeWorktablescan.c src/backend/executor/spi.c src/backend/executor/tqueue.c src/backend/executor/tstoreReceiver.c src/backend/foreign/Makefile src/backend/foreign/foreign.c src/backend/foreign/meson.build src/backend/jit/Makefile src/backend/jit/README src/backend/jit/jit.c src/backend/jit/llvm/Makefile src/backend/jit/llvm/SectionMemoryManager.LICENSE src/backend/jit/llvm/SectionMemoryManager.cpp src/backend/jit/llvm/llvmjit.c src/backend/jit/llvm/llvmjit_deform.c src/backend/jit/llvm/llvmjit_error.cpp src/backend/jit/llvm/llvmjit_expr.c src/backend/jit/llvm/llvmjit_inline.cpp src/backend/jit/llvm/llvmjit_types.c src/backend/jit/llvm/llvmjit_wrap.cpp src/backend/jit/llvm/meson.build src/backend/jit/meson.build src/backend/lib/Makefile src/backend/lib/README src/backend/lib/bipartite_match.c src/backend/lib/bloomfilter.c src/backend/lib/dshash.c src/backend/lib/hyperloglog.c src/backend/lib/ilist.c src/backend/lib/integerset.c src/backend/lib/knapsack.c src/backend/lib/meson.build src/backend/lib/pairingheap.c src/backend/lib/rbtree.c src/backend/libpq/Makefile src/backend/libpq/README.SSL src/backend/libpq/auth-oauth.c src/backend/libpq/auth-sasl.c src/backend/libpq/auth-scram.c src/backend/libpq/auth.c src/backend/libpq/be-fsstubs.c src/backend/libpq/be-gssapi-common.c src/backend/libpq/be-secure-common.c src/backend/libpq/be-secure-gssapi.c src/backend/libpq/be-secure-openssl.c src/backend/libpq/be-secure.c src/backend/libpq/crypt.c src/backend/libpq/hba.c src/backend/libpq/ifaddr.c src/backend/libpq/meson.build src/backend/libpq/pg_hba.conf.sample src/backend/libpq/pg_ident.conf.sample src/backend/libpq/pqcomm.c src/backend/libpq/pqformat.c src/backend/libpq/pqmq.c src/backend/libpq/pqsignal.c src/backend/main/Makefile src/backend/main/main.c src/backend/main/meson.build src/backend/meson.build src/backend/nls.mk src/backend/nodes/.gitignore src/backend/nodes/Makefile src/backend/nodes/README src/backend/nodes/bitmapset.c src/backend/nodes/copyfuncs.c src/backend/nodes/equalfuncs.c src/backend/nodes/extensible.c src/backend/nodes/gen_node_support.pl src/backend/nodes/list.c src/backend/nodes/makefuncs.c src/backend/nodes/meson.build src/backend/nodes/multibitmapset.c src/backend/nodes/nodeFuncs.c src/backend/nodes/outfuncs.c src/backend/nodes/params.c src/backend/nodes/print.c src/backend/nodes/queryjumblefuncs.c src/backend/nodes/read.c src/backend/nodes/readfuncs.c src/backend/nodes/tidbitmap.c src/backend/nodes/value.c src/backend/optimizer/Makefile src/backend/optimizer/README src/backend/optimizer/geqo/Makefile src/backend/optimizer/geqo/geqo_copy.c src/backend/optimizer/geqo/geqo_cx.c src/backend/optimizer/geqo/geqo_erx.c src/backend/optimizer/geqo/geqo_eval.c src/backend/optimizer/geqo/geqo_main.c src/backend/optimizer/geqo/geqo_misc.c src/backend/optimizer/geqo/geqo_mutation.c src/backend/optimizer/geqo/geqo_ox1.c src/backend/optimizer/geqo/geqo_ox2.c src/backend/optimizer/geqo/geqo_pmx.c src/backend/optimizer/geqo/geqo_pool.c src/backend/optimizer/geqo/geqo_px.c src/backend/optimizer/geqo/geqo_random.c src/backend/optimizer/geqo/geqo_recombination.c src/backend/optimizer/geqo/geqo_selection.c src/backend/optimizer/geqo/meson.build src/backend/optimizer/meson.build src/backend/optimizer/path/Makefile src/backend/optimizer/path/allpaths.c src/backend/optimizer/path/appendorpath.c src/backend/optimizer/path/clausesel.c src/backend/optimizer/path/costsize.c src/backend/optimizer/path/equivclass.c src/backend/optimizer/path/indxpath.c src/backend/optimizer/path/joinpath.c src/backend/optimizer/path/joinrels.c src/backend/optimizer/path/meson.build src/backend/optimizer/path/pathkeys.c src/backend/optimizer/path/tidpath.c src/backend/optimizer/plan/Makefile src/backend/optimizer/plan/README src/backend/optimizer/plan/analyzejoins.c src/backend/optimizer/plan/createplan.c src/backend/optimizer/plan/initsplan.c src/backend/optimizer/plan/meson.build src/backend/optimizer/plan/planagg.c src/backend/optimizer/plan/planmain.c src/backend/optimizer/plan/planner.c src/backend/optimizer/plan/setrefs.c src/backend/optimizer/plan/subselect.c src/backend/optimizer/prep/Makefile src/backend/optimizer/prep/meson.build src/backend/optimizer/prep/prepagg.c src/backend/optimizer/prep/prepjointree.c src/backend/optimizer/prep/prepqual.c src/backend/optimizer/prep/preptlist.c src/backend/optimizer/prep/prepunion.c src/backend/optimizer/util/Makefile src/backend/optimizer/util/appendinfo.c src/backend/optimizer/util/clauses.c src/backend/optimizer/util/inherit.c src/backend/optimizer/util/joininfo.c src/backend/optimizer/util/meson.build src/backend/optimizer/util/orclauses.c src/backend/optimizer/util/paramassign.c src/backend/optimizer/util/pathnode.c src/backend/optimizer/util/placeholder.c src/backend/optimizer/util/plancat.c src/backend/optimizer/util/predtest.c src/backend/optimizer/util/relnode.c src/backend/optimizer/util/restrictinfo.c src/backend/optimizer/util/tlist.c src/backend/optimizer/util/var.c src/backend/parser/.gitignore src/backend/parser/Makefile src/backend/parser/README src/backend/parser/analyze.c src/backend/parser/check_keywords.pl src/backend/parser/gram.y src/backend/parser/gramparse.h src/backend/parser/meson.build src/backend/parser/parse_agg.c src/backend/parser/parse_clause.c src/backend/parser/parse_coerce.c src/backend/parser/parse_collate.c src/backend/parser/parse_cte.c src/backend/parser/parse_enr.c src/backend/parser/parse_expr.c src/backend/parser/parse_func.c src/backend/parser/parse_jsontable.c src/backend/parser/parse_merge.c src/backend/parser/parse_node.c src/backend/parser/parse_oper.c src/backend/parser/parse_param.c src/backend/parser/parse_relation.c src/backend/parser/parse_target.c src/backend/parser/parse_type.c src/backend/parser/parse_utilcmd.c src/backend/parser/parser.c src/backend/parser/scan.l src/backend/parser/scansup.c src/backend/partitioning/Makefile src/backend/partitioning/meson.build src/backend/partitioning/partbounds.c src/backend/partitioning/partdesc.c src/backend/partitioning/partprune.c src/backend/po/LINGUAS src/backend/po/de.po src/backend/po/es.po src/backend/po/fr.po src/backend/po/id.po src/backend/po/it.po src/backend/po/ja.po src/backend/po/ka.po src/backend/po/ko.po src/backend/po/meson.build src/backend/po/pl.po src/backend/po/pt_BR.po src/backend/po/ru.po src/backend/po/sv.po src/backend/po/tr.po src/backend/po/zh_CN.po src/backend/port/.gitignore src/backend/port/Makefile src/backend/port/atomics.c src/backend/port/meson.build src/backend/port/posix_sema.c src/backend/port/sysv_sema.c src/backend/port/sysv_shmem.c src/backend/port/tas/dummy.s src/backend/port/tas/sunstudio_sparc.s src/backend/port/tas/sunstudio_x86.s src/backend/port/win32/Makefile src/backend/port/win32/crashdump.c src/backend/port/win32/meson.build src/backend/port/win32/signal.c src/backend/port/win32/socket.c src/backend/port/win32/timer.c src/backend/port/win32_sema.c src/backend/port/win32_shmem.c src/backend/postmaster/Makefile src/backend/postmaster/autovacuum.c src/backend/postmaster/auxprocess.c src/backend/postmaster/bgworker.c src/backend/postmaster/bgwriter.c src/backend/postmaster/checkpointer.c src/backend/postmaster/fork_process.c src/backend/postmaster/interrupt.c src/backend/postmaster/launch_backend.c src/backend/postmaster/meson.build src/backend/postmaster/pgarch.c src/backend/postmaster/pmchild.c src/backend/postmaster/postmaster.c src/backend/postmaster/startup.c src/backend/postmaster/syslogger.c src/backend/postmaster/walsummarizer.c src/backend/postmaster/walwriter.c src/backend/regex/COPYRIGHT src/backend/regex/Makefile src/backend/regex/README src/backend/regex/meson.build src/backend/regex/regc_color.c src/backend/regex/regc_cvec.c src/backend/regex/regc_lex.c src/backend/regex/regc_locale.c src/backend/regex/regc_nfa.c src/backend/regex/regc_pg_locale.c src/backend/regex/regcomp.c src/backend/regex/rege_dfa.c src/backend/regex/regerror.c src/backend/regex/regexec.c src/backend/regex/regexport.c src/backend/regex/regfree.c src/backend/regex/regprefix.c src/backend/replication/.gitignore src/backend/replication/Makefile src/backend/replication/README src/backend/replication/libpqwalreceiver/Makefile src/backend/replication/libpqwalreceiver/libpqwalreceiver.c src/backend/replication/libpqwalreceiver/meson.build src/backend/replication/logical/Makefile src/backend/replication/logical/applyparallelworker.c src/backend/replication/logical/conflict.c src/backend/replication/logical/decode.c src/backend/replication/logical/launcher.c src/backend/replication/logical/logical.c src/backend/replication/logical/logicalfuncs.c src/backend/replication/logical/meson.build src/backend/replication/logical/message.c src/backend/replication/logical/origin.c src/backend/replication/logical/proto.c src/backend/replication/logical/relation.c src/backend/replication/logical/reorderbuffer.c src/backend/replication/logical/slotsync.c src/backend/replication/logical/snapbuild.c src/backend/replication/logical/tablesync.c src/backend/replication/logical/worker.c src/backend/replication/meson.build src/backend/replication/pgoutput/Makefile src/backend/replication/pgoutput/meson.build src/backend/replication/pgoutput/pgoutput.c src/backend/replication/repl_gram.y src/backend/replication/repl_scanner.l src/backend/replication/slot.c src/backend/replication/slotfuncs.c src/backend/replication/syncrep.c src/backend/replication/syncrep_gram.y src/backend/replication/syncrep_scanner.l src/backend/replication/walreceiver.c src/backend/replication/walreceiverfuncs.c src/backend/replication/walsender.c src/backend/rewrite/Makefile src/backend/rewrite/meson.build src/backend/rewrite/rewriteDefine.c src/backend/rewrite/rewriteHandler.c src/backend/rewrite/rewriteManip.c src/backend/rewrite/rewriteRemove.c src/backend/rewrite/rewriteSearchCycle.c src/backend/rewrite/rewriteSupport.c src/backend/rewrite/rowsecurity.c src/backend/snowball/.gitignore src/backend/snowball/Makefile src/backend/snowball/README src/backend/snowball/dict_snowball.c src/backend/snowball/libstemmer/api.c src/backend/snowball/libstemmer/stem_ISO_8859_1_basque.c src/backend/snowball/libstemmer/stem_ISO_8859_1_catalan.c src/backend/snowball/libstemmer/stem_ISO_8859_1_danish.c src/backend/snowball/libstemmer/stem_ISO_8859_1_dutch.c src/backend/snowball/libstemmer/stem_ISO_8859_1_english.c src/backend/snowball/libstemmer/stem_ISO_8859_1_finnish.c src/backend/snowball/libstemmer/stem_ISO_8859_1_french.c src/backend/snowball/libstemmer/stem_ISO_8859_1_german.c src/backend/snowball/libstemmer/stem_ISO_8859_1_indonesian.c src/backend/snowball/libstemmer/stem_ISO_8859_1_irish.c src/backend/snowball/libstemmer/stem_ISO_8859_1_italian.c src/backend/snowball/libstemmer/stem_ISO_8859_1_norwegian.c src/backend/snowball/libstemmer/stem_ISO_8859_1_porter.c src/backend/snowball/libstemmer/stem_ISO_8859_1_portuguese.c src/backend/snowball/libstemmer/stem_ISO_8859_1_spanish.c src/backend/snowball/libstemmer/stem_ISO_8859_1_swedish.c src/backend/snowball/libstemmer/stem_ISO_8859_2_hungarian.c src/backend/snowball/libstemmer/stem_KOI8_R_russian.c src/backend/snowball/libstemmer/stem_UTF_8_arabic.c src/backend/snowball/libstemmer/stem_UTF_8_armenian.c src/backend/snowball/libstemmer/stem_UTF_8_basque.c src/backend/snowball/libstemmer/stem_UTF_8_catalan.c src/backend/snowball/libstemmer/stem_UTF_8_danish.c src/backend/snowball/libstemmer/stem_UTF_8_dutch.c src/backend/snowball/libstemmer/stem_UTF_8_english.c src/backend/snowball/libstemmer/stem_UTF_8_estonian.c src/backend/snowball/libstemmer/stem_UTF_8_finnish.c src/backend/snowball/libstemmer/stem_UTF_8_french.c src/backend/snowball/libstemmer/stem_UTF_8_german.c src/backend/snowball/libstemmer/stem_UTF_8_greek.c src/backend/snowball/libstemmer/stem_UTF_8_hindi.c src/backend/snowball/libstemmer/stem_UTF_8_hungarian.c src/backend/snowball/libstemmer/stem_UTF_8_indonesian.c src/backend/snowball/libstemmer/stem_UTF_8_irish.c src/backend/snowball/libstemmer/stem_UTF_8_italian.c src/backend/snowball/libstemmer/stem_UTF_8_lithuanian.c src/backend/snowball/libstemmer/stem_UTF_8_nepali.c src/backend/snowball/libstemmer/stem_UTF_8_norwegian.c src/backend/snowball/libstemmer/stem_UTF_8_porter.c src/backend/snowball/libstemmer/stem_UTF_8_portuguese.c src/backend/snowball/libstemmer/stem_UTF_8_romanian.c src/backend/snowball/libstemmer/stem_UTF_8_russian.c src/backend/snowball/libstemmer/stem_UTF_8_serbian.c src/backend/snowball/libstemmer/stem_UTF_8_spanish.c src/backend/snowball/libstemmer/stem_UTF_8_swedish.c src/backend/snowball/libstemmer/stem_UTF_8_tamil.c src/backend/snowball/libstemmer/stem_UTF_8_turkish.c src/backend/snowball/libstemmer/stem_UTF_8_yiddish.c src/backend/snowball/libstemmer/utilities.c src/backend/snowball/meson.build src/backend/snowball/snowball.sql.in src/backend/snowball/snowball_create.pl src/backend/snowball/snowball_func.sql.in src/backend/snowball/stopwords/danish.stop src/backend/snowball/stopwords/dutch.stop src/backend/snowball/stopwords/english.stop src/backend/snowball/stopwords/finnish.stop src/backend/snowball/stopwords/french.stop src/backend/snowball/stopwords/german.stop src/backend/snowball/stopwords/hungarian.stop src/backend/snowball/stopwords/italian.stop src/backend/snowball/stopwords/nepali.stop src/backend/snowball/stopwords/norwegian.stop src/backend/snowball/stopwords/portuguese.stop src/backend/snowball/stopwords/russian.stop src/backend/snowball/stopwords/spanish.stop src/backend/snowball/stopwords/swedish.stop src/backend/snowball/stopwords/turkish.stop src/backend/statistics/Makefile src/backend/statistics/README src/backend/statistics/README.dependencies src/backend/statistics/README.mcv src/backend/statistics/attribute_stats.c src/backend/statistics/dependencies.c src/backend/statistics/extended_stats.c src/backend/statistics/mcv.c src/backend/statistics/meson.build src/backend/statistics/mvdistinct.c src/backend/statistics/relation_stats.c src/backend/statistics/stat_utils.c src/backend/storage/Makefile src/backend/storage/aio/Makefile src/backend/storage/aio/README.md src/backend/storage/aio/aio.c src/backend/storage/aio/aio_callback.c src/backend/storage/aio/aio_funcs.c src/backend/storage/aio/aio_init.c src/backend/storage/aio/aio_io.c src/backend/storage/aio/aio_target.c src/backend/storage/aio/meson.build src/backend/storage/aio/method_io_uring.c src/backend/storage/aio/method_sync.c src/backend/storage/aio/method_worker.c src/backend/storage/aio/read_stream.c src/backend/storage/buffer/Makefile src/backend/storage/buffer/README src/backend/storage/buffer/buf_init.c src/backend/storage/buffer/buf_table.c src/backend/storage/buffer/bufmgr.c src/backend/storage/buffer/freelist.c src/backend/storage/buffer/localbuf.c src/backend/storage/buffer/meson.build src/backend/storage/file/Makefile src/backend/storage/file/buffile.c src/backend/storage/file/copydir.c src/backend/storage/file/fd.c src/backend/storage/file/fileset.c src/backend/storage/file/meson.build src/backend/storage/file/reinit.c src/backend/storage/file/sharedfileset.c src/backend/storage/freespace/Makefile src/backend/storage/freespace/README src/backend/storage/freespace/freespace.c src/backend/storage/freespace/fsmpage.c src/backend/storage/freespace/indexfsm.c src/backend/storage/freespace/meson.build src/backend/storage/ipc/Makefile src/backend/storage/ipc/barrier.c src/backend/storage/ipc/dsm.c src/backend/storage/ipc/dsm_impl.c src/backend/storage/ipc/dsm_registry.c src/backend/storage/ipc/ipc.c src/backend/storage/ipc/ipci.c src/backend/storage/ipc/latch.c src/backend/storage/ipc/meson.build src/backend/storage/ipc/pmsignal.c src/backend/storage/ipc/procarray.c src/backend/storage/ipc/procsignal.c src/backend/storage/ipc/shm_mq.c src/backend/storage/ipc/shm_toc.c src/backend/storage/ipc/shmem.c src/backend/storage/ipc/signalfuncs.c src/backend/storage/ipc/sinval.c src/backend/storage/ipc/sinvaladt.c src/backend/storage/ipc/standby.c src/backend/storage/ipc/waiteventset.c src/backend/storage/large_object/Makefile src/backend/storage/large_object/inv_api.c src/backend/storage/large_object/meson.build src/backend/storage/lmgr/.gitignore src/backend/storage/lmgr/Makefile src/backend/storage/lmgr/README src/backend/storage/lmgr/README-SSI src/backend/storage/lmgr/README.barrier src/backend/storage/lmgr/condition_variable.c src/backend/storage/lmgr/deadlock.c src/backend/storage/lmgr/generate-lwlocknames.pl src/backend/storage/lmgr/lmgr.c src/backend/storage/lmgr/lock.c src/backend/storage/lmgr/lwlock.c src/backend/storage/lmgr/meson.build src/backend/storage/lmgr/predicate.c src/backend/storage/lmgr/proc.c src/backend/storage/lmgr/s_lock.c src/backend/storage/meson.build src/backend/storage/page/Makefile src/backend/storage/page/README src/backend/storage/page/bufpage.c src/backend/storage/page/checksum.c src/backend/storage/page/itemptr.c src/backend/storage/page/meson.build src/backend/storage/smgr/Makefile src/backend/storage/smgr/README src/backend/storage/smgr/bulk_write.c src/backend/storage/smgr/md.c src/backend/storage/smgr/meson.build src/backend/storage/smgr/rd.c src/backend/storage/smgr/smgr.c src/backend/storage/sync/Makefile src/backend/storage/sync/meson.build src/backend/storage/sync/sync.c src/backend/tcop/Makefile src/backend/tcop/backend_startup.c src/backend/tcop/cmdtag.c src/backend/tcop/dest.c src/backend/tcop/fastpath.c src/backend/tcop/meson.build src/backend/tcop/postgres.c src/backend/tcop/pquery.c src/backend/tcop/utility.c src/backend/tsearch/Makefile src/backend/tsearch/dict.c src/backend/tsearch/dict_ispell.c src/backend/tsearch/dict_simple.c src/backend/tsearch/dict_synonym.c src/backend/tsearch/dict_thesaurus.c src/backend/tsearch/dicts/hunspell_sample.affix src/backend/tsearch/dicts/hunspell_sample_long.affix src/backend/tsearch/dicts/hunspell_sample_long.dict src/backend/tsearch/dicts/hunspell_sample_num.affix src/backend/tsearch/dicts/hunspell_sample_num.dict src/backend/tsearch/dicts/ispell_sample.affix src/backend/tsearch/dicts/ispell_sample.dict src/backend/tsearch/dicts/synonym_sample.syn src/backend/tsearch/dicts/thesaurus_sample.ths src/backend/tsearch/meson.build src/backend/tsearch/regis.c src/backend/tsearch/spell.c src/backend/tsearch/to_tsany.c src/backend/tsearch/ts_locale.c src/backend/tsearch/ts_parse.c src/backend/tsearch/ts_selfuncs.c src/backend/tsearch/ts_typanalyze.c src/backend/tsearch/ts_utils.c src/backend/tsearch/wparser.c src/backend/tsearch/wparser_def.c src/backend/utils/.gitignore src/backend/utils/Gen_dummy_probes.pl src/backend/utils/Gen_fmgrtab.pl src/backend/utils/Makefile src/backend/utils/activity/Makefile src/backend/utils/activity/backend_progress.c src/backend/utils/activity/backend_status.c src/backend/utils/activity/generate-wait_event_types.pl src/backend/utils/activity/meson.build src/backend/utils/activity/pgstat.c src/backend/utils/activity/pgstat_archiver.c src/backend/utils/activity/pgstat_backend.c src/backend/utils/activity/pgstat_bgwriter.c src/backend/utils/activity/pgstat_checkpointer.c src/backend/utils/activity/pgstat_database.c src/backend/utils/activity/pgstat_function.c src/backend/utils/activity/pgstat_io.c src/backend/utils/activity/pgstat_relation.c src/backend/utils/activity/pgstat_replslot.c src/backend/utils/activity/pgstat_shmem.c src/backend/utils/activity/pgstat_slru.c src/backend/utils/activity/pgstat_subscription.c src/backend/utils/activity/pgstat_wal.c src/backend/utils/activity/pgstat_xact.c src/backend/utils/activity/wait_event.c src/backend/utils/activity/wait_event_funcs.c src/backend/utils/activity/wait_event_names.txt src/backend/utils/adt/.gitignore src/backend/utils/adt/Makefile src/backend/utils/adt/acl.c src/backend/utils/adt/amutils.c src/backend/utils/adt/array_expanded.c src/backend/utils/adt/array_selfuncs.c src/backend/utils/adt/array_typanalyze.c src/backend/utils/adt/array_userfuncs.c src/backend/utils/adt/arrayfuncs.c src/backend/utils/adt/arraysubs.c src/backend/utils/adt/arrayutils.c src/backend/utils/adt/ascii.c src/backend/utils/adt/bool.c src/backend/utils/adt/cash.c src/backend/utils/adt/char.c src/backend/utils/adt/cryptohashfuncs.c src/backend/utils/adt/date.c src/backend/utils/adt/datetime.c src/backend/utils/adt/datum.c src/backend/utils/adt/dbsize.c src/backend/utils/adt/domains.c src/backend/utils/adt/encode.c src/backend/utils/adt/enum.c src/backend/utils/adt/expandeddatum.c src/backend/utils/adt/expandedrecord.c src/backend/utils/adt/float.c src/backend/utils/adt/format_type.c src/backend/utils/adt/formatting.c src/backend/utils/adt/genfile.c src/backend/utils/adt/geo_ops.c src/backend/utils/adt/geo_selfuncs.c src/backend/utils/adt/geo_spgist.c src/backend/utils/adt/hbafuncs.c src/backend/utils/adt/inet_cidr_ntop.c src/backend/utils/adt/inet_net_pton.c src/backend/utils/adt/int.c src/backend/utils/adt/int8.c src/backend/utils/adt/json.c src/backend/utils/adt/jsonb.c src/backend/utils/adt/jsonb_gin.c src/backend/utils/adt/jsonb_op.c src/backend/utils/adt/jsonb_util.c src/backend/utils/adt/jsonbsubs.c src/backend/utils/adt/jsonfuncs.c src/backend/utils/adt/jsonpath.c src/backend/utils/adt/jsonpath_exec.c src/backend/utils/adt/jsonpath_gram.y src/backend/utils/adt/jsonpath_internal.h src/backend/utils/adt/jsonpath_scan.l src/backend/utils/adt/levenshtein.c src/backend/utils/adt/like.c src/backend/utils/adt/like_match.c src/backend/utils/adt/like_support.c src/backend/utils/adt/lockfuncs.c src/backend/utils/adt/mac.c src/backend/utils/adt/mac8.c src/backend/utils/adt/mcxtfuncs.c src/backend/utils/adt/meson.build src/backend/utils/adt/misc.c src/backend/utils/adt/multirangetypes.c src/backend/utils/adt/multirangetypes_selfuncs.c src/backend/utils/adt/name.c src/backend/utils/adt/network.c src/backend/utils/adt/network_gist.c src/backend/utils/adt/network_selfuncs.c src/backend/utils/adt/network_spgist.c src/backend/utils/adt/number.hpp src/backend/utils/adt/numeric.c src/backend/utils/adt/numutils.c src/backend/utils/adt/oid.c src/backend/utils/adt/ora_file.hpp src/backend/utils/adt/oracle_compat.c src/backend/utils/adt/orderedsetaggs.c src/backend/utils/adt/partitionfuncs.c src/backend/utils/adt/pg_locale.c src/backend/utils/adt/pg_locale_builtin.c src/backend/utils/adt/pg_locale_icu.c src/backend/utils/adt/pg_locale_libc.c src/backend/utils/adt/pg_lsn.c src/backend/utils/adt/pg_upgrade_support.c src/backend/utils/adt/pgstatfuncs.c src/backend/utils/adt/pseudorandomfuncs.c src/backend/utils/adt/pseudotypes.c src/backend/utils/adt/quote.c src/backend/utils/adt/rangetypes.c src/backend/utils/adt/rangetypes_gist.c src/backend/utils/adt/rangetypes_selfuncs.c src/backend/utils/adt/rangetypes_spgist.c src/backend/utils/adt/rangetypes_typanalyze.c src/backend/utils/adt/regexp.c src/backend/utils/adt/regproc.c src/backend/utils/adt/ri_triggers.c src/backend/utils/adt/rowtypes.c src/backend/utils/adt/rudb_ver_info.c src/backend/utils/adt/ruleutils.c src/backend/utils/adt/selfuncs.c src/backend/utils/adt/skipsupport.c src/backend/utils/adt/sql_proc.c src/backend/utils/adt/string_array.c src/backend/utils/adt/tid.c src/backend/utils/adt/timestamp.c src/backend/utils/adt/trandlog.c src/backend/utils/adt/trigfuncs.c src/backend/utils/adt/tsginidx.c src/backend/utils/adt/tsgistidx.c src/backend/utils/adt/tsquery.c src/backend/utils/adt/tsquery_cleanup.c src/backend/utils/adt/tsquery_gist.c src/backend/utils/adt/tsquery_op.c src/backend/utils/adt/tsquery_rewrite.c src/backend/utils/adt/tsquery_util.c src/backend/utils/adt/tsrank.c src/backend/utils/adt/tsvector.c src/backend/utils/adt/tsvector_op.c src/backend/utils/adt/tsvector_parser.c src/backend/utils/adt/uuid.c src/backend/utils/adt/varbit.c src/backend/utils/adt/varchar.c src/backend/utils/adt/varchar2.c src/backend/utils/adt/varlena.c src/backend/utils/adt/version.c src/backend/utils/adt/waitfuncs.c src/backend/utils/adt/windowfuncs.c src/backend/utils/adt/xid.c src/backend/utils/adt/xid8funcs.c src/backend/utils/adt/xml.c src/backend/utils/cache/Makefile src/backend/utils/cache/attoptcache.c src/backend/utils/cache/catcache.c src/backend/utils/cache/evtcache.c src/backend/utils/cache/funccache.c src/backend/utils/cache/inval.c src/backend/utils/cache/lsyscache.c src/backend/utils/cache/meson.build src/backend/utils/cache/partcache.c src/backend/utils/cache/plancache.c src/backend/utils/cache/relcache.c src/backend/utils/cache/relfilenumbermap.c src/backend/utils/cache/relmapper.c src/backend/utils/cache/spccache.c src/backend/utils/cache/syscache.c src/backend/utils/cache/ts_cache.c src/backend/utils/cache/typcache.c src/backend/utils/dbms/Makefile src/backend/utils/dbms/dbms_alert/dbms_alert.cpp src/backend/utils/dbms/dbms_alert/dbms_alert.hpp src/backend/utils/dbms/dbms_alert/dbms_alert.sql src/backend/utils/dbms/dbms_alert/shmmc.c src/backend/utils/dbms/dbms_alert/shmmc.h src/backend/utils/dbms/dbms_aq/dbms_aq.cpp src/backend/utils/dbms/dbms_aq/dbms_aq.hpp src/backend/utils/dbms/dbms_aqadm/dbms_aqadm.cpp src/backend/utils/dbms/dbms_aqadm/dbms_aqadm.hpp src/backend/utils/dbms/dbms_assert/dbms_assert.cpp src/backend/utils/dbms/dbms_assert/dbms_assert.hpp src/backend/utils/dbms/dbms_crypto/dbms_crypto.cpp src/backend/utils/dbms/dbms_crypto/dbms_crypto.hpp src/backend/utils/dbms/dbms_describe/dbms_describe.cpp src/backend/utils/dbms/dbms_describe/dbms_describe.hpp src/backend/utils/dbms/dbms_hash/dbms_hash.cpp src/backend/utils/dbms/dbms_hash/dbms_hash.hpp src/backend/utils/dbms/dbms_lob/dbms_lob.cpp src/backend/utils/dbms/dbms_lob/dbms_lob.hpp src/backend/utils/dbms/dbms_lob/dbms_lob_bfile.cpp src/backend/utils/dbms/dbms_lob/dbms_lob_bfile.hpp src/backend/utils/dbms/dbms_lob/dbms_lob_wrappers.sql src/backend/utils/dbms/dbms_lob/lob_c_interface.h src/backend/utils/dbms/dbms_lob/lob_state_manager.cpp src/backend/utils/dbms/dbms_lob/lob_state_manager.h src/backend/utils/dbms/dbms_odci/dbms_odci.cpp src/backend/utils/dbms/dbms_odci/dbms_odci.hpp src/backend/utils/dbms/dbms_output/dbms_output.cpp src/backend/utils/dbms/dbms_output/dbms_output.hpp src/backend/utils/dbms/dbms_random/dbms_random.cpp src/backend/utils/dbms/dbms_random/dbms_random.hpp src/backend/utils/dbms/dbms_report/dbms_report.cpp src/backend/utils/dbms/dbms_report/dbms_report.hpp src/backend/utils/dbms/dbms_utility/dbms_utility.cpp src/backend/utils/dbms/dbms_utility/dbms_utility.hpp src/backend/utils/dbms/dbms_xmlgen/dbms_xmlgen.cpp src/backend/utils/dbms/dbms_xmlgen/dbms_xmlgen.hpp src/backend/utils/dbms/dbms_xmlgen/dbms_xmlgen_list.cpp src/backend/utils/dbms/dbms_xmlgen/dbms_xmlgen_list.hpp src/backend/utils/dbms/utl_call_stack/utl_call_stack.cpp src/backend/utils/dbms/utl_call_stack/utl_call_stack.hpp src/backend/utils/dbms/utl_coll/utl_coll.cpp src/backend/utils/dbms/utl_coll/utl_coll.hpp src/backend/utils/dbms/utl_compress/utl_compress.cpp src/backend/utils/dbms/utl_compress/utl_compress.hpp src/backend/utils/dbms/utl_encode/utl_encode.cpp src/backend/utils/dbms/utl_encode/utl_encode.hpp src/backend/utils/dbms/utl_http/utl_http.cpp src/backend/utils/dbms/utl_http/utl_http.hpp src/backend/utils/dbms/utl_i18n/utl_i18n.cpp src/backend/utils/dbms/utl_i18n/utl_i18n.hpp src/backend/utils/dbms/utl_inaddr/utl_inaddr.cpp src/backend/utils/dbms/utl_inaddr/utl_inaddr.hpp src/backend/utils/dbms/utl_mail/utl_mail.cpp src/backend/utils/dbms/utl_mail/utl_mail.hpp src/backend/utils/dbms/utl_match/utl_match.cpp src/backend/utils/dbms/utl_match/utl_match.hpp src/backend/utils/dbms/utl_raw/utl_raw.cpp src/backend/utils/dbms/utl_raw/utl_raw.hpp src/backend/utils/dbms/utl_ref/utl_ref.cpp src/backend/utils/dbms/utl_ref/utl_ref.hpp src/backend/utils/dbms/utl_smtp/utl_smtp.cpp src/backend/utils/dbms/utl_smtp/utl_smtp.hpp src/backend/utils/dbms/utl_tcp/utl_tcp.cpp src/backend/utils/dbms/utl_tcp/utl_tcp.hpp src/backend/utils/dbms/utl_url/utl_url.cpp src/backend/utils/dbms/utl_url/utl_url.hpp src/backend/utils/dbms/version/version.cpp src/backend/utils/dbms/version/version.hpp src/backend/utils/dgrid/Makefile src/backend/utils/dgrid/include/pg_dgrid.h src/backend/utils/dgrid/include/uuid_gen.h src/backend/utils/dgrid/src/dgrid.cpp src/backend/utils/dgrid/src/dgrid_client.cpp src/backend/utils/dgrid/src/dgrid_client_data.cpp src/backend/utils/dgrid/src/dgrid_config.cpp src/backend/utils/dgrid/src/dgrid_logger.cpp src/backend/utils/dgrid/src/dgrid_req_structs.cpp src/backend/utils/dgrid/src/dgrid_thread.cpp src/backend/utils/dgrid/src/libdgrid_client.cpp src/backend/utils/dgrid/src/pg_dgrid.cpp src/backend/utils/dgrid/src/uuid_gen.cpp src/backend/utils/errcodes.txt src/backend/utils/error/Makefile src/backend/utils/error/assert.c src/backend/utils/error/csvlog.c src/backend/utils/error/elog.c src/backend/utils/error/jsonlog.c src/backend/utils/error/meson.build src/backend/utils/fmgr/Makefile src/backend/utils/fmgr/README src/backend/utils/fmgr/dfmgr.c src/backend/utils/fmgr/fmgr.c src/backend/utils/fmgr/funcapi.c src/backend/utils/fmgr/meson.build src/backend/utils/generate-errcodes.pl src/backend/utils/hash/Makefile src/backend/utils/hash/dynahash.c src/backend/utils/hash/meson.build src/backend/utils/hash/pg_crc.c src/backend/utils/init/Makefile src/backend/utils/init/globals.c src/backend/utils/init/meson.build src/backend/utils/init/miscinit.c src/backend/utils/init/postinit.c src/backend/utils/init/usercontext.c src/backend/utils/mb/Makefile src/backend/utils/mb/README src/backend/utils/mb/Unicode/Makefile src/backend/utils/mb/Unicode/UCS_to_BIG5.pl src/backend/utils/mb/Unicode/UCS_to_EUC_CN.pl src/backend/utils/mb/Unicode/UCS_to_EUC_JIS_2004.pl src/backend/utils/mb/Unicode/UCS_to_EUC_JP.pl src/backend/utils/mb/Unicode/UCS_to_EUC_KR.pl src/backend/utils/mb/Unicode/UCS_to_EUC_TW.pl src/backend/utils/mb/Unicode/UCS_to_GB18030.pl src/backend/utils/mb/Unicode/UCS_to_JOHAB.pl src/backend/utils/mb/Unicode/UCS_to_SHIFT_JIS_2004.pl src/backend/utils/mb/Unicode/UCS_to_SJIS.pl src/backend/utils/mb/Unicode/UCS_to_UHC.pl src/backend/utils/mb/Unicode/UCS_to_most.pl src/backend/utils/mb/Unicode/big5_to_utf8.map src/backend/utils/mb/Unicode/convutils.pm src/backend/utils/mb/Unicode/euc-jis-2004-std.txt src/backend/utils/mb/Unicode/euc_cn_to_utf8.map src/backend/utils/mb/Unicode/euc_jis_2004_to_utf8.map src/backend/utils/mb/Unicode/euc_jp_to_utf8.map src/backend/utils/mb/Unicode/euc_kr_to_utf8.map src/backend/utils/mb/Unicode/euc_tw_to_utf8.map src/backend/utils/mb/Unicode/gb-18030-2000.xml src/backend/utils/mb/Unicode/gb18030_to_utf8.map src/backend/utils/mb/Unicode/gbk_to_utf8.map src/backend/utils/mb/Unicode/iso8859_10_to_utf8.map src/backend/utils/mb/Unicode/iso8859_13_to_utf8.map src/backend/utils/mb/Unicode/iso8859_14_to_utf8.map src/backend/utils/mb/Unicode/iso8859_15_to_utf8.map src/backend/utils/mb/Unicode/iso8859_16_to_utf8.map src/backend/utils/mb/Unicode/iso8859_2_to_utf8.map src/backend/utils/mb/Unicode/iso8859_3_to_utf8.map src/backend/utils/mb/Unicode/iso8859_4_to_utf8.map src/backend/utils/mb/Unicode/iso8859_5_to_utf8.map src/backend/utils/mb/Unicode/iso8859_6_to_utf8.map src/backend/utils/mb/Unicode/iso8859_7_to_utf8.map src/backend/utils/mb/Unicode/iso8859_8_to_utf8.map src/backend/utils/mb/Unicode/iso8859_9_to_utf8.map src/backend/utils/mb/Unicode/johab_to_utf8.map src/backend/utils/mb/Unicode/koi8r_to_utf8.map src/backend/utils/mb/Unicode/koi8u_to_utf8.map src/backend/utils/mb/Unicode/shift_jis_2004_to_utf8.map src/backend/utils/mb/Unicode/sjis-0213-2004-std.txt src/backend/utils/mb/Unicode/sjis_to_utf8.map src/backend/utils/mb/Unicode/uhc_to_utf8.map src/backend/utils/mb/Unicode/utf8_to_big5.map src/backend/utils/mb/Unicode/utf8_to_euc_cn.map src/backend/utils/mb/Unicode/utf8_to_euc_jis_2004.map src/backend/utils/mb/Unicode/utf8_to_euc_jp.map src/backend/utils/mb/Unicode/utf8_to_euc_kr.map src/backend/utils/mb/Unicode/utf8_to_euc_tw.map src/backend/utils/mb/Unicode/utf8_to_gb18030.map src/backend/utils/mb/Unicode/utf8_to_gbk.map src/backend/utils/mb/Unicode/utf8_to_iso8859_10.map src/backend/utils/mb/Unicode/utf8_to_iso8859_13.map src/backend/utils/mb/Unicode/utf8_to_iso8859_14.map src/backend/utils/mb/Unicode/utf8_to_iso8859_15.map src/backend/utils/mb/Unicode/utf8_to_iso8859_16.map src/backend/utils/mb/Unicode/utf8_to_iso8859_2.map src/backend/utils/mb/Unicode/utf8_to_iso8859_3.map src/backend/utils/mb/Unicode/utf8_to_iso8859_4.map src/backend/utils/mb/Unicode/utf8_to_iso8859_5.map src/backend/utils/mb/Unicode/utf8_to_iso8859_6.map src/backend/utils/mb/Unicode/utf8_to_iso8859_7.map src/backend/utils/mb/Unicode/utf8_to_iso8859_8.map src/backend/utils/mb/Unicode/utf8_to_iso8859_9.map src/backend/utils/mb/Unicode/utf8_to_johab.map src/backend/utils/mb/Unicode/utf8_to_koi8r.map src/backend/utils/mb/Unicode/utf8_to_koi8u.map src/backend/utils/mb/Unicode/utf8_to_shift_jis_2004.map src/backend/utils/mb/Unicode/utf8_to_sjis.map src/backend/utils/mb/Unicode/utf8_to_uhc.map src/backend/utils/mb/Unicode/utf8_to_win1250.map src/backend/utils/mb/Unicode/utf8_to_win1251.map src/backend/utils/mb/Unicode/utf8_to_win1252.map src/backend/utils/mb/Unicode/utf8_to_win1253.map src/backend/utils/mb/Unicode/utf8_to_win1254.map src/backend/utils/mb/Unicode/utf8_to_win1255.map src/backend/utils/mb/Unicode/utf8_to_win1256.map src/backend/utils/mb/Unicode/utf8_to_win1257.map src/backend/utils/mb/Unicode/utf8_to_win1258.map src/backend/utils/mb/Unicode/utf8_to_win866.map src/backend/utils/mb/Unicode/utf8_to_win874.map src/backend/utils/mb/Unicode/win1250_to_utf8.map src/backend/utils/mb/Unicode/win1251_to_utf8.map src/backend/utils/mb/Unicode/win1252_to_utf8.map src/backend/utils/mb/Unicode/win1253_to_utf8.map src/backend/utils/mb/Unicode/win1254_to_utf8.map src/backend/utils/mb/Unicode/win1255_to_utf8.map src/backend/utils/mb/Unicode/win1256_to_utf8.map src/backend/utils/mb/Unicode/win1257_to_utf8.map src/backend/utils/mb/Unicode/win1258_to_utf8.map src/backend/utils/mb/Unicode/win866_to_utf8.map src/backend/utils/mb/Unicode/win874_to_utf8.map src/backend/utils/mb/conv.c src/backend/utils/mb/conversion_procs/Makefile src/backend/utils/mb/conversion_procs/README.euc_jp src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile src/backend/utils/mb/conversion_procs/cyrillic_and_mic/cyrillic_and_mic.c src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile src/backend/utils/mb/conversion_procs/euc2004_sjis2004/euc2004_sjis2004.c src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile src/backend/utils/mb/conversion_procs/euc_cn_and_mic/euc_cn_and_mic.c src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/euc_jp_and_sjis.c src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/sjis.map src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile src/backend/utils/mb/conversion_procs/euc_kr_and_mic/euc_kr_and_mic.c src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile src/backend/utils/mb/conversion_procs/euc_tw_and_big5/big5.c src/backend/utils/mb/conversion_procs/euc_tw_and_big5/euc_tw_and_big5.c src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile src/backend/utils/mb/conversion_procs/latin2_and_win1250/latin2_and_win1250.c src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile src/backend/utils/mb/conversion_procs/latin_and_mic/latin_and_mic.c src/backend/utils/mb/conversion_procs/meson.build src/backend/utils/mb/conversion_procs/proc.mk src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile src/backend/utils/mb/conversion_procs/utf8_and_big5/utf8_and_big5.c src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/utf8_and_cyrillic.c src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile src/backend/utils/mb/conversion_procs/utf8_and_euc2004/utf8_and_euc2004.c src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/utf8_and_euc_cn.c src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/utf8_and_euc_jp.c src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/utf8_and_euc_kr.c src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/utf8_and_euc_tw.c src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile src/backend/utils/mb/conversion_procs/utf8_and_gb18030/utf8_and_gb18030.c src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile src/backend/utils/mb/conversion_procs/utf8_and_gbk/utf8_and_gbk.c src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/utf8_and_iso8859_1.c src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile src/backend/utils/mb/conversion_procs/utf8_and_johab/utf8_and_johab.c src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile src/backend/utils/mb/conversion_procs/utf8_and_sjis/utf8_and_sjis.c src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/utf8_and_sjis2004.c src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile src/backend/utils/mb/conversion_procs/utf8_and_uhc/utf8_and_uhc.c src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile src/backend/utils/mb/conversion_procs/utf8_and_win/utf8_and_win.c src/backend/utils/mb/mbutils.c src/backend/utils/mb/meson.build src/backend/utils/mb/stringinfo_mb.c src/backend/utils/mb/wstrcmp.c src/backend/utils/mb/wstrncmp.c src/backend/utils/meson.build src/backend/utils/misc/.gitignore src/backend/utils/misc/Makefile src/backend/utils/misc/README src/backend/utils/misc/conffiles.c src/backend/utils/misc/guc-file.l src/backend/utils/misc/guc.c src/backend/utils/misc/guc_funcs.c src/backend/utils/misc/guc_internal.h src/backend/utils/misc/guc_tables.c src/backend/utils/misc/help_config.c src/backend/utils/misc/injection_point.c src/backend/utils/misc/meson.build src/backend/utils/misc/pg_config.c src/backend/utils/misc/pg_controldata.c src/backend/utils/misc/pg_rusage.c src/backend/utils/misc/postgresql.conf.sample src/backend/utils/misc/ps_status.c src/backend/utils/misc/queryenvironment.c src/backend/utils/misc/rls.c src/backend/utils/misc/sampling.c src/backend/utils/misc/stack_depth.c src/backend/utils/misc/superuser.c src/backend/utils/misc/timeout.c src/backend/utils/misc/tzparser.c src/backend/utils/mmgr/Makefile src/backend/utils/mmgr/README src/backend/utils/mmgr/alignedalloc.c src/backend/utils/mmgr/aset.c src/backend/utils/mmgr/bump.c src/backend/utils/mmgr/dsa.c src/backend/utils/mmgr/freepage.c src/backend/utils/mmgr/generation.c src/backend/utils/mmgr/mcxt.c src/backend/utils/mmgr/memdebug.c src/backend/utils/mmgr/meson.build src/backend/utils/mmgr/portalmem.c src/backend/utils/mmgr/slab.c src/backend/utils/postprocess_dtrace.sed src/backend/utils/probes.d src/backend/utils/resowner/Makefile src/backend/utils/resowner/README src/backend/utils/resowner/meson.build src/backend/utils/resowner/resowner.c src/backend/utils/sort/Makefile src/backend/utils/sort/logtape.c src/backend/utils/sort/meson.build src/backend/utils/sort/qsort_interruptible.c src/backend/utils/sort/sharedtuplestore.c src/backend/utils/sort/sortsupport.c src/backend/utils/sort/tuplesort.c src/backend/utils/sort/tuplesortvariants.c src/backend/utils/sort/tuplestore.c src/backend/utils/time/Makefile src/backend/utils/time/combocid.c src/backend/utils/time/meson.build src/backend/utils/time/snapmgr.c src/bin/Makefile src/bin/initdb/.gitignore src/bin/initdb/Makefile src/bin/initdb/autoconfig.c src/bin/initdb/autoconfig.h src/bin/initdb/findtimezone.c src/bin/initdb/initdb.c src/bin/initdb/meson.build src/bin/initdb/nls.mk src/bin/initdb/po/LINGUAS src/bin/initdb/po/cs.po src/bin/initdb/po/de.po src/bin/initdb/po/el.po src/bin/initdb/po/es.po src/bin/initdb/po/fr.po src/bin/initdb/po/he.po src/bin/initdb/po/it.po src/bin/initdb/po/ja.po src/bin/initdb/po/ka.po src/bin/initdb/po/ko.po src/bin/initdb/po/meson.build src/bin/initdb/po/pl.po src/bin/initdb/po/pt_BR.po src/bin/initdb/po/ru.po src/bin/initdb/po/sv.po src/bin/initdb/po/tr.po src/bin/initdb/po/vi.po src/bin/initdb/po/zh_CN.po src/bin/initdb/po/zh_TW.po src/bin/initdb/t/001_initdb.pl src/bin/meson.build src/bin/pg_amcheck/.gitignore src/bin/pg_amcheck/Makefile src/bin/pg_amcheck/README src/bin/pg_amcheck/meson.build src/bin/pg_amcheck/nls.mk src/bin/pg_amcheck/pg_amcheck.c src/bin/pg_amcheck/po/LINGUAS src/bin/pg_amcheck/po/de.po src/bin/pg_amcheck/po/el.po src/bin/pg_amcheck/po/es.po src/bin/pg_amcheck/po/fr.po src/bin/pg_amcheck/po/it.po src/bin/pg_amcheck/po/ja.po src/bin/pg_amcheck/po/ka.po src/bin/pg_amcheck/po/ko.po src/bin/pg_amcheck/po/meson.build src/bin/pg_amcheck/po/ru.po src/bin/pg_amcheck/po/sv.po src/bin/pg_amcheck/po/zh_CN.po src/bin/pg_amcheck/po/zh_TW.po src/bin/pg_amcheck/t/001_basic.pl src/bin/pg_amcheck/t/002_nonesuch.pl src/bin/pg_amcheck/t/003_check.pl src/bin/pg_amcheck/t/004_verify_heapam.pl src/bin/pg_amcheck/t/005_opclass_damage.pl src/bin/pg_archivecleanup/.gitignore src/bin/pg_archivecleanup/Makefile src/bin/pg_archivecleanup/meson.build src/bin/pg_archivecleanup/nls.mk src/bin/pg_archivecleanup/pg_archivecleanup.c src/bin/pg_archivecleanup/po/LINGUAS src/bin/pg_archivecleanup/po/cs.po src/bin/pg_archivecleanup/po/de.po src/bin/pg_archivecleanup/po/el.po src/bin/pg_archivecleanup/po/es.po src/bin/pg_archivecleanup/po/fr.po src/bin/pg_archivecleanup/po/it.po src/bin/pg_archivecleanup/po/ja.po src/bin/pg_archivecleanup/po/ka.po src/bin/pg_archivecleanup/po/ko.po src/bin/pg_archivecleanup/po/meson.build src/bin/pg_archivecleanup/po/pl.po src/bin/pg_archivecleanup/po/pt_BR.po src/bin/pg_archivecleanup/po/ru.po src/bin/pg_archivecleanup/po/sv.po src/bin/pg_archivecleanup/po/tr.po src/bin/pg_archivecleanup/po/vi.po src/bin/pg_archivecleanup/po/zh_CN.po src/bin/pg_archivecleanup/t/010_pg_archivecleanup.pl src/bin/pg_basebackup/.gitignore src/bin/pg_basebackup/Makefile src/bin/pg_basebackup/astreamer_inject.c src/bin/pg_basebackup/astreamer_inject.h src/bin/pg_basebackup/meson.build src/bin/pg_basebackup/nls.mk src/bin/pg_basebackup/pg_basebackup.c src/bin/pg_basebackup/pg_createsubscriber.c src/bin/pg_basebackup/pg_receivewal.c src/bin/pg_basebackup/pg_recvlogical.c src/bin/pg_basebackup/po/LINGUAS src/bin/pg_basebackup/po/cs.po src/bin/pg_basebackup/po/de.po src/bin/pg_basebackup/po/el.po src/bin/pg_basebackup/po/es.po src/bin/pg_basebackup/po/fr.po src/bin/pg_basebackup/po/he.po src/bin/pg_basebackup/po/it.po src/bin/pg_basebackup/po/ja.po src/bin/pg_basebackup/po/ka.po src/bin/pg_basebackup/po/ko.po src/bin/pg_basebackup/po/meson.build src/bin/pg_basebackup/po/pl.po src/bin/pg_basebackup/po/pt_BR.po src/bin/pg_basebackup/po/ru.po src/bin/pg_basebackup/po/sv.po src/bin/pg_basebackup/po/tr.po src/bin/pg_basebackup/po/vi.po src/bin/pg_basebackup/po/zh_CN.po src/bin/pg_basebackup/receivelog.c src/bin/pg_basebackup/receivelog.h src/bin/pg_basebackup/streamutil.c src/bin/pg_basebackup/streamutil.h src/bin/pg_basebackup/t/010_pg_basebackup.pl src/bin/pg_basebackup/t/011_in_place_tablespace.pl src/bin/pg_basebackup/t/020_pg_receivewal.pl src/bin/pg_basebackup/t/030_pg_recvlogical.pl src/bin/pg_basebackup/t/040_pg_createsubscriber.pl src/bin/pg_basebackup/walmethods.c src/bin/pg_basebackup/walmethods.h src/bin/pg_checksums/.gitignore src/bin/pg_checksums/Makefile src/bin/pg_checksums/meson.build src/bin/pg_checksums/nls.mk src/bin/pg_checksums/pg_checksums.c src/bin/pg_checksums/po/LINGUAS src/bin/pg_checksums/po/cs.po src/bin/pg_checksums/po/de.po src/bin/pg_checksums/po/el.po src/bin/pg_checksums/po/es.po src/bin/pg_checksums/po/fr.po src/bin/pg_checksums/po/it.po src/bin/pg_checksums/po/ja.po src/bin/pg_checksums/po/ka.po src/bin/pg_checksums/po/ko.po src/bin/pg_checksums/po/meson.build src/bin/pg_checksums/po/pt_BR.po src/bin/pg_checksums/po/ru.po src/bin/pg_checksums/po/sv.po src/bin/pg_checksums/po/tr.po src/bin/pg_checksums/po/zh_CN.po src/bin/pg_checksums/po/zh_TW.po src/bin/pg_checksums/t/001_basic.pl src/bin/pg_checksums/t/002_actions.pl src/bin/pg_combinebackup/.gitignore src/bin/pg_combinebackup/Makefile src/bin/pg_combinebackup/backup_label.c src/bin/pg_combinebackup/backup_label.h src/bin/pg_combinebackup/copy_file.c src/bin/pg_combinebackup/copy_file.h src/bin/pg_combinebackup/load_manifest.c src/bin/pg_combinebackup/load_manifest.h src/bin/pg_combinebackup/meson.build src/bin/pg_combinebackup/nls.mk src/bin/pg_combinebackup/pg_combinebackup.c src/bin/pg_combinebackup/po/LINGUAS src/bin/pg_combinebackup/po/de.po src/bin/pg_combinebackup/po/es.po src/bin/pg_combinebackup/po/fr.po src/bin/pg_combinebackup/po/ja.po src/bin/pg_combinebackup/po/ka.po src/bin/pg_combinebackup/po/ko.po src/bin/pg_combinebackup/po/meson.build src/bin/pg_combinebackup/po/ru.po src/bin/pg_combinebackup/po/sv.po src/bin/pg_combinebackup/reconstruct.c src/bin/pg_combinebackup/reconstruct.h src/bin/pg_combinebackup/t/001_basic.pl src/bin/pg_combinebackup/t/002_compare_backups.pl src/bin/pg_combinebackup/t/003_timeline.pl src/bin/pg_combinebackup/t/004_manifest.pl src/bin/pg_combinebackup/t/005_integrity.pl src/bin/pg_combinebackup/t/006_db_file_copy.pl src/bin/pg_combinebackup/t/007_wal_level_minimal.pl src/bin/pg_combinebackup/t/008_promote.pl src/bin/pg_combinebackup/t/009_no_full_file.pl src/bin/pg_combinebackup/t/010_hardlink.pl src/bin/pg_combinebackup/t/011_ib_truncation.pl src/bin/pg_combinebackup/write_manifest.c src/bin/pg_combinebackup/write_manifest.h src/bin/pg_config/.gitignore src/bin/pg_config/Makefile src/bin/pg_config/meson.build src/bin/pg_config/nls.mk src/bin/pg_config/pg_config.c src/bin/pg_config/po/LINGUAS src/bin/pg_config/po/cs.po src/bin/pg_config/po/de.po src/bin/pg_config/po/el.po src/bin/pg_config/po/es.po src/bin/pg_config/po/fr.po src/bin/pg_config/po/he.po src/bin/pg_config/po/it.po src/bin/pg_config/po/ja.po src/bin/pg_config/po/ka.po src/bin/pg_config/po/ko.po src/bin/pg_config/po/meson.build src/bin/pg_config/po/nb.po src/bin/pg_config/po/pl.po src/bin/pg_config/po/pt_BR.po src/bin/pg_config/po/ro.po src/bin/pg_config/po/ru.po src/bin/pg_config/po/sv.po src/bin/pg_config/po/ta.po src/bin/pg_config/po/tr.po src/bin/pg_config/po/vi.po src/bin/pg_config/po/zh_CN.po src/bin/pg_config/po/zh_TW.po src/bin/pg_config/t/001_pg_config.pl src/bin/pg_controldata/.gitignore src/bin/pg_controldata/Makefile src/bin/pg_controldata/meson.build src/bin/pg_controldata/nls.mk src/bin/pg_controldata/pg_controldata.c src/bin/pg_controldata/po/LINGUAS src/bin/pg_controldata/po/cs.po src/bin/pg_controldata/po/de.po src/bin/pg_controldata/po/el.po src/bin/pg_controldata/po/es.po src/bin/pg_controldata/po/fr.po src/bin/pg_controldata/po/it.po src/bin/pg_controldata/po/ja.po src/bin/pg_controldata/po/ka.po src/bin/pg_controldata/po/ko.po src/bin/pg_controldata/po/meson.build src/bin/pg_controldata/po/pl.po src/bin/pg_controldata/po/pt_BR.po src/bin/pg_controldata/po/ru.po src/bin/pg_controldata/po/sv.po src/bin/pg_controldata/po/tr.po src/bin/pg_controldata/po/vi.po src/bin/pg_controldata/po/zh_CN.po src/bin/pg_controldata/po/zh_TW.po src/bin/pg_controldata/t/001_pg_controldata.pl src/bin/pg_ctl/.gitignore src/bin/pg_ctl/Makefile src/bin/pg_ctl/meson.build src/bin/pg_ctl/nls.mk src/bin/pg_ctl/pg_ctl.c src/bin/pg_ctl/po/LINGUAS src/bin/pg_ctl/po/cs.po src/bin/pg_ctl/po/de.po src/bin/pg_ctl/po/el.po src/bin/pg_ctl/po/es.po src/bin/pg_ctl/po/fr.po src/bin/pg_ctl/po/he.po src/bin/pg_ctl/po/it.po src/bin/pg_ctl/po/ja.po src/bin/pg_ctl/po/ka.po src/bin/pg_ctl/po/ko.po src/bin/pg_ctl/po/meson.build src/bin/pg_ctl/po/pl.po src/bin/pg_ctl/po/pt_BR.po src/bin/pg_ctl/po/ru.po src/bin/pg_ctl/po/sv.po src/bin/pg_ctl/po/tr.po src/bin/pg_ctl/po/zh_CN.po src/bin/pg_ctl/po/zh_TW.po src/bin/pg_ctl/t/001_start_stop.pl src/bin/pg_ctl/t/002_status.pl src/bin/pg_ctl/t/003_promote.pl src/bin/pg_ctl/t/004_logrotate.pl src/bin/pg_dump/.gitignore src/bin/pg_dump/Makefile src/bin/pg_dump/common.c src/bin/pg_dump/compress_gzip.c src/bin/pg_dump/compress_gzip.h src/bin/pg_dump/compress_io.c src/bin/pg_dump/compress_io.h src/bin/pg_dump/compress_lz4.c src/bin/pg_dump/compress_lz4.h src/bin/pg_dump/compress_none.c src/bin/pg_dump/compress_none.h src/bin/pg_dump/compress_zstd.c src/bin/pg_dump/compress_zstd.h src/bin/pg_dump/connectdb.c src/bin/pg_dump/connectdb.h src/bin/pg_dump/dumputils.c src/bin/pg_dump/dumputils.h src/bin/pg_dump/filter.c src/bin/pg_dump/filter.h src/bin/pg_dump/meson.build src/bin/pg_dump/nls.mk src/bin/pg_dump/parallel.c src/bin/pg_dump/parallel.h src/bin/pg_dump/pg_backup.h src/bin/pg_dump/pg_backup_archiver.c src/bin/pg_dump/pg_backup_archiver.h src/bin/pg_dump/pg_backup_custom.c src/bin/pg_dump/pg_backup_db.c src/bin/pg_dump/pg_backup_db.h src/bin/pg_dump/pg_backup_directory.c src/bin/pg_dump/pg_backup_null.c src/bin/pg_dump/pg_backup_tar.c src/bin/pg_dump/pg_backup_tar.h src/bin/pg_dump/pg_backup_utils.c src/bin/pg_dump/pg_backup_utils.h src/bin/pg_dump/pg_dump.c src/bin/pg_dump/pg_dump.h src/bin/pg_dump/pg_dump_sort.c src/bin/pg_dump/pg_dumpall.c src/bin/pg_dump/pg_restore.c src/bin/pg_dump/po/LINGUAS src/bin/pg_dump/po/cs.po src/bin/pg_dump/po/de.po src/bin/pg_dump/po/el.po src/bin/pg_dump/po/es.po src/bin/pg_dump/po/fr.po src/bin/pg_dump/po/he.po src/bin/pg_dump/po/it.po src/bin/pg_dump/po/ja.po src/bin/pg_dump/po/ka.po src/bin/pg_dump/po/ko.po src/bin/pg_dump/po/meson.build src/bin/pg_dump/po/pl.po src/bin/pg_dump/po/pt_BR.po src/bin/pg_dump/po/ru.po src/bin/pg_dump/po/sv.po src/bin/pg_dump/po/tr.po src/bin/pg_dump/po/zh_CN.po src/bin/pg_dump/po/zh_TW.po src/bin/pg_dump/t/001_basic.pl src/bin/pg_dump/t/002_pg_dump.pl src/bin/pg_dump/t/003_pg_dump_with_server.pl src/bin/pg_dump/t/004_pg_dump_parallel.pl src/bin/pg_dump/t/005_pg_dump_filterfile.pl src/bin/pg_dump/t/010_dump_connstr.pl src/bin/pg_resetwal/.gitignore src/bin/pg_resetwal/Makefile src/bin/pg_resetwal/meson.build src/bin/pg_resetwal/nls.mk src/bin/pg_resetwal/pg_resetwal.c src/bin/pg_resetwal/po/LINGUAS src/bin/pg_resetwal/po/cs.po src/bin/pg_resetwal/po/de.po src/bin/pg_resetwal/po/el.po src/bin/pg_resetwal/po/es.po src/bin/pg_resetwal/po/fr.po src/bin/pg_resetwal/po/it.po src/bin/pg_resetwal/po/ja.po src/bin/pg_resetwal/po/ka.po src/bin/pg_resetwal/po/ko.po src/bin/pg_resetwal/po/meson.build src/bin/pg_resetwal/po/pl.po src/bin/pg_resetwal/po/pt_BR.po src/bin/pg_resetwal/po/ru.po src/bin/pg_resetwal/po/sv.po src/bin/pg_resetwal/po/tr.po src/bin/pg_resetwal/po/zh_CN.po src/bin/pg_resetwal/t/001_basic.pl src/bin/pg_resetwal/t/002_corrupted.pl src/bin/pg_rewind/.gitignore src/bin/pg_rewind/Makefile src/bin/pg_rewind/datapagemap.c src/bin/pg_rewind/datapagemap.h src/bin/pg_rewind/file_ops.c src/bin/pg_rewind/file_ops.h src/bin/pg_rewind/filemap.c src/bin/pg_rewind/filemap.h src/bin/pg_rewind/libpq_source.c src/bin/pg_rewind/local_source.c src/bin/pg_rewind/meson.build src/bin/pg_rewind/nls.mk src/bin/pg_rewind/parsexlog.c src/bin/pg_rewind/pg_rewind.c src/bin/pg_rewind/pg_rewind.h src/bin/pg_rewind/po/LINGUAS src/bin/pg_rewind/po/cs.po src/bin/pg_rewind/po/de.po src/bin/pg_rewind/po/el.po src/bin/pg_rewind/po/es.po src/bin/pg_rewind/po/fr.po src/bin/pg_rewind/po/it.po src/bin/pg_rewind/po/ja.po src/bin/pg_rewind/po/ka.po src/bin/pg_rewind/po/ko.po src/bin/pg_rewind/po/meson.build src/bin/pg_rewind/po/pl.po src/bin/pg_rewind/po/pt_BR.po src/bin/pg_rewind/po/ru.po src/bin/pg_rewind/po/sv.po src/bin/pg_rewind/po/tr.po src/bin/pg_rewind/po/zh_CN.po src/bin/pg_rewind/po/zh_TW.po src/bin/pg_rewind/rewind_source.h src/bin/pg_rewind/t/001_basic.pl src/bin/pg_rewind/t/002_databases.pl src/bin/pg_rewind/t/003_extrafiles.pl src/bin/pg_rewind/t/004_pg_xlog_symlink.pl src/bin/pg_rewind/t/005_same_timeline.pl src/bin/pg_rewind/t/006_options.pl src/bin/pg_rewind/t/007_standby_source.pl src/bin/pg_rewind/t/008_min_recovery_point.pl src/bin/pg_rewind/t/009_growing_files.pl src/bin/pg_rewind/t/010_keep_recycled_wals.pl src/bin/pg_rewind/t/RewindTest.pm src/bin/pg_rewind/timeline.c src/bin/pg_test_fsync/.gitignore src/bin/pg_test_fsync/Makefile src/bin/pg_test_fsync/meson.build src/bin/pg_test_fsync/nls.mk src/bin/pg_test_fsync/pg_test_fsync.c src/bin/pg_test_fsync/po/LINGUAS src/bin/pg_test_fsync/po/cs.po src/bin/pg_test_fsync/po/de.po src/bin/pg_test_fsync/po/el.po src/bin/pg_test_fsync/po/es.po src/bin/pg_test_fsync/po/fr.po src/bin/pg_test_fsync/po/it.po src/bin/pg_test_fsync/po/ja.po src/bin/pg_test_fsync/po/ka.po src/bin/pg_test_fsync/po/ko.po src/bin/pg_test_fsync/po/meson.build src/bin/pg_test_fsync/po/pl.po src/bin/pg_test_fsync/po/pt_BR.po src/bin/pg_test_fsync/po/ru.po src/bin/pg_test_fsync/po/sv.po src/bin/pg_test_fsync/po/tr.po src/bin/pg_test_fsync/po/vi.po src/bin/pg_test_fsync/po/zh_CN.po src/bin/pg_test_fsync/po/zh_TW.po src/bin/pg_test_fsync/t/001_basic.pl src/bin/pg_test_timing/.gitignore src/bin/pg_test_timing/Makefile src/bin/pg_test_timing/meson.build src/bin/pg_test_timing/nls.mk src/bin/pg_test_timing/pg_test_timing.c src/bin/pg_test_timing/po/LINGUAS src/bin/pg_test_timing/po/cs.po src/bin/pg_test_timing/po/de.po src/bin/pg_test_timing/po/el.po src/bin/pg_test_timing/po/es.po src/bin/pg_test_timing/po/fr.po src/bin/pg_test_timing/po/it.po src/bin/pg_test_timing/po/ja.po src/bin/pg_test_timing/po/ka.po src/bin/pg_test_timing/po/ko.po src/bin/pg_test_timing/po/meson.build src/bin/pg_test_timing/po/pl.po src/bin/pg_test_timing/po/pt_BR.po src/bin/pg_test_timing/po/ru.po src/bin/pg_test_timing/po/sv.po src/bin/pg_test_timing/po/tr.po src/bin/pg_test_timing/po/vi.po src/bin/pg_test_timing/po/zh_CN.po src/bin/pg_test_timing/po/zh_TW.po src/bin/pg_test_timing/t/001_basic.pl src/bin/pg_upgrade/.gitignore src/bin/pg_upgrade/IMPLEMENTATION src/bin/pg_upgrade/Makefile src/bin/pg_upgrade/TESTING src/bin/pg_upgrade/check.c src/bin/pg_upgrade/controldata.c src/bin/pg_upgrade/dump.c src/bin/pg_upgrade/exec.c src/bin/pg_upgrade/file.c src/bin/pg_upgrade/function.c src/bin/pg_upgrade/info.c src/bin/pg_upgrade/meson.build src/bin/pg_upgrade/nls.mk src/bin/pg_upgrade/option.c src/bin/pg_upgrade/parallel.c src/bin/pg_upgrade/pg_upgrade.c src/bin/pg_upgrade/pg_upgrade.h src/bin/pg_upgrade/po/LINGUAS src/bin/pg_upgrade/po/cs.po src/bin/pg_upgrade/po/de.po src/bin/pg_upgrade/po/es.po src/bin/pg_upgrade/po/fr.po src/bin/pg_upgrade/po/ja.po src/bin/pg_upgrade/po/ka.po src/bin/pg_upgrade/po/ko.po src/bin/pg_upgrade/po/meson.build src/bin/pg_upgrade/po/ru.po src/bin/pg_upgrade/po/sv.po src/bin/pg_upgrade/po/tr.po src/bin/pg_upgrade/po/zh_CN.po src/bin/pg_upgrade/relfilenumber.c src/bin/pg_upgrade/server.c src/bin/pg_upgrade/t/001_basic.pl src/bin/pg_upgrade/t/002_pg_upgrade.pl src/bin/pg_upgrade/t/003_logical_slots.pl src/bin/pg_upgrade/t/004_subscription.pl src/bin/pg_upgrade/t/005_char_signedness.pl src/bin/pg_upgrade/t/006_transfer_modes.pl src/bin/pg_upgrade/tablespace.c src/bin/pg_upgrade/task.c src/bin/pg_upgrade/util.c src/bin/pg_upgrade/version.c src/bin/pg_verifybackup/.gitignore src/bin/pg_verifybackup/Makefile src/bin/pg_verifybackup/astreamer_verify.c src/bin/pg_verifybackup/meson.build src/bin/pg_verifybackup/nls.mk src/bin/pg_verifybackup/pg_verifybackup.c src/bin/pg_verifybackup/pg_verifybackup.h src/bin/pg_verifybackup/po/LINGUAS src/bin/pg_verifybackup/po/de.po src/bin/pg_verifybackup/po/el.po src/bin/pg_verifybackup/po/es.po src/bin/pg_verifybackup/po/fr.po src/bin/pg_verifybackup/po/it.po src/bin/pg_verifybackup/po/ja.po src/bin/pg_verifybackup/po/ka.po src/bin/pg_verifybackup/po/ko.po src/bin/pg_verifybackup/po/meson.build src/bin/pg_verifybackup/po/ru.po src/bin/pg_verifybackup/po/sv.po src/bin/pg_verifybackup/po/zh_CN.po src/bin/pg_verifybackup/po/zh_TW.po src/bin/pg_verifybackup/t/001_basic.pl src/bin/pg_verifybackup/t/002_algorithm.pl src/bin/pg_verifybackup/t/003_corruption.pl src/bin/pg_verifybackup/t/004_options.pl src/bin/pg_verifybackup/t/005_bad_manifest.pl src/bin/pg_verifybackup/t/006_encoding.pl src/bin/pg_verifybackup/t/007_wal.pl src/bin/pg_verifybackup/t/008_untar.pl src/bin/pg_verifybackup/t/009_extract.pl src/bin/pg_verifybackup/t/010_client_untar.pl src/bin/pg_waldump/.gitignore src/bin/pg_waldump/Makefile src/bin/pg_waldump/compat.c src/bin/pg_waldump/meson.build src/bin/pg_waldump/nls.mk src/bin/pg_waldump/pg_waldump.c src/bin/pg_waldump/po/LINGUAS src/bin/pg_waldump/po/cs.po src/bin/pg_waldump/po/de.po src/bin/pg_waldump/po/el.po src/bin/pg_waldump/po/es.po src/bin/pg_waldump/po/fr.po src/bin/pg_waldump/po/it.po src/bin/pg_waldump/po/ja.po src/bin/pg_waldump/po/ka.po src/bin/pg_waldump/po/ko.po src/bin/pg_waldump/po/meson.build src/bin/pg_waldump/po/ru.po src/bin/pg_waldump/po/sv.po src/bin/pg_waldump/po/tr.po src/bin/pg_waldump/po/vi.po src/bin/pg_waldump/po/zh_CN.po src/bin/pg_waldump/po/zh_TW.po src/bin/pg_waldump/rmgrdesc.c src/bin/pg_waldump/rmgrdesc.h src/bin/pg_waldump/t/001_basic.pl src/bin/pg_waldump/t/002_save_fullpage.pl src/bin/pg_walsummary/.gitignore src/bin/pg_walsummary/Makefile src/bin/pg_walsummary/meson.build src/bin/pg_walsummary/nls.mk src/bin/pg_walsummary/pg_walsummary.c src/bin/pg_walsummary/po/LINGUAS src/bin/pg_walsummary/po/de.po src/bin/pg_walsummary/po/es.po src/bin/pg_walsummary/po/fr.po src/bin/pg_walsummary/po/ja.po src/bin/pg_walsummary/po/ka.po src/bin/pg_walsummary/po/ko.po src/bin/pg_walsummary/po/meson.build src/bin/pg_walsummary/po/ru.po src/bin/pg_walsummary/po/sv.po src/bin/pg_walsummary/t/001_basic.pl src/bin/pg_walsummary/t/002_blocks.pl src/bin/pgbench/.gitignore src/bin/pgbench/Makefile src/bin/pgbench/exprparse.y src/bin/pgbench/exprscan.l src/bin/pgbench/meson.build src/bin/pgbench/pgbench.c src/bin/pgbench/pgbench.h src/bin/pgbench/t/001_pgbench_with_server.pl src/bin/pgbench/t/002_pgbench_no_server.pl src/bin/pgevent/MSG00001.bin src/bin/pgevent/Makefile src/bin/pgevent/README src/bin/pgevent/exports.txt src/bin/pgevent/meson.build src/bin/pgevent/pgevent.c src/bin/pgevent/pgevent.def src/bin/pgevent/pgmsgevent.h src/bin/pgevent/pgmsgevent.mc src/bin/pgevent/pgmsgevent.rc src/bin/psql/.gitignore src/bin/psql/Makefile src/bin/psql/command.c src/bin/psql/command.h src/bin/psql/common.c src/bin/psql/common.h src/bin/psql/copy.c src/bin/psql/copy.h src/bin/psql/create_help.pl src/bin/psql/crosstabview.c src/bin/psql/crosstabview.h src/bin/psql/describe.c src/bin/psql/describe.h src/bin/psql/gen_tabcomplete.pl src/bin/psql/help.c src/bin/psql/help.h src/bin/psql/input.c src/bin/psql/input.h src/bin/psql/large_obj.c src/bin/psql/large_obj.h src/bin/psql/mainloop.c src/bin/psql/mainloop.h src/bin/psql/meson.build src/bin/psql/nls.mk src/bin/psql/po/LINGUAS src/bin/psql/po/cs.po src/bin/psql/po/de.po src/bin/psql/po/el.po src/bin/psql/po/es.po src/bin/psql/po/fr.po src/bin/psql/po/he.po src/bin/psql/po/it.po src/bin/psql/po/ja.po src/bin/psql/po/ka.po src/bin/psql/po/ko.po src/bin/psql/po/meson.build src/bin/psql/po/pl.po src/bin/psql/po/pt_BR.po src/bin/psql/po/ru.po src/bin/psql/po/sv.po src/bin/psql/po/tr.po src/bin/psql/po/zh_CN.po src/bin/psql/po/zh_TW.po src/bin/psql/prompt.c src/bin/psql/prompt.h src/bin/psql/psqlrc.sample src/bin/psql/psqlscanslash.h src/bin/psql/psqlscanslash.l src/bin/psql/settings.h src/bin/psql/startup.c src/bin/psql/stringutils.c src/bin/psql/stringutils.h src/bin/psql/t/001_basic.pl src/bin/psql/t/010_tab_completion.pl src/bin/psql/t/020_cancel.pl src/bin/psql/tab-complete.h src/bin/psql/tab-complete.in.c src/bin/psql/variables.c src/bin/psql/variables.h src/bin/scripts/.gitignore src/bin/scripts/Makefile src/bin/scripts/clusterdb.c src/bin/scripts/common.c src/bin/scripts/common.h src/bin/scripts/createdb.c src/bin/scripts/createuser.c src/bin/scripts/dropdb.c src/bin/scripts/dropuser.c src/bin/scripts/meson.build src/bin/scripts/nls.mk src/bin/scripts/pg_isready.c src/bin/scripts/po/LINGUAS src/bin/scripts/po/cs.po src/bin/scripts/po/de.po src/bin/scripts/po/el.po src/bin/scripts/po/es.po src/bin/scripts/po/fr.po src/bin/scripts/po/he.po src/bin/scripts/po/it.po src/bin/scripts/po/ja.po src/bin/scripts/po/ka.po src/bin/scripts/po/ko.po src/bin/scripts/po/meson.build src/bin/scripts/po/pl.po src/bin/scripts/po/pt_BR.po src/bin/scripts/po/ru.po src/bin/scripts/po/sv.po src/bin/scripts/po/tr.po src/bin/scripts/po/zh_CN.po src/bin/scripts/reindexdb.c src/bin/scripts/t/010_clusterdb.pl src/bin/scripts/t/011_clusterdb_all.pl src/bin/scripts/t/020_createdb.pl src/bin/scripts/t/040_createuser.pl src/bin/scripts/t/050_dropdb.pl src/bin/scripts/t/070_dropuser.pl src/bin/scripts/t/080_pg_isready.pl src/bin/scripts/t/090_reindexdb.pl src/bin/scripts/t/091_reindexdb_all.pl src/bin/scripts/t/100_vacuumdb.pl src/bin/scripts/t/101_vacuumdb_all.pl src/bin/scripts/t/102_vacuumdb_stages.pl src/bin/scripts/t/200_connstr.pl src/bin/scripts/vacuumdb.c src/common/.gitignore src/common/Makefile src/common/archive.c src/common/base64.c src/common/binaryheap.c src/common/blkreftable.c src/common/checksum_helper.c src/common/compression.c src/common/config_info.c src/common/controldata_utils.c src/common/cryptohash.c src/common/cryptohash_openssl.c src/common/d2s.c src/common/d2s_full_table.h src/common/d2s_intrinsics.h src/common/digit_table.h src/common/encnames.c src/common/exec.c src/common/f2s.c src/common/fe_memutils.c src/common/file_perm.c src/common/file_utils.c src/common/hashfn.c src/common/hmac.c src/common/hmac_openssl.c src/common/ip.c src/common/jsonapi.c src/common/keywords.c src/common/kwlookup.c src/common/link-canary.c src/common/logging.c src/common/md5.c src/common/md5_common.c src/common/md5_int.h src/common/meson.build src/common/parse_manifest.c src/common/percentrepl.c src/common/pg_get_line.c src/common/pg_lzcompress.c src/common/pg_prng.c src/common/pgfnames.c src/common/psprintf.c src/common/relpath.c src/common/restricted_token.c src/common/rmtree.c src/common/ryu_common.h src/common/saslprep.c src/common/scram-common.c src/common/sha1.c src/common/sha1_int.h src/common/sha2.c src/common/sha2_int.h src/common/sprompt.c src/common/string.c src/common/stringinfo.c src/common/unicode/.gitignore src/common/unicode/Makefile src/common/unicode/README src/common/unicode/case_test.c src/common/unicode/category_test.c src/common/unicode/generate-norm_test_table.pl src/common/unicode/generate-unicode_case_table.pl src/common/unicode/generate-unicode_category_table.pl src/common/unicode/generate-unicode_east_asian_fw_table.pl src/common/unicode/generate-unicode_nonspacing_table.pl src/common/unicode/generate-unicode_norm_table.pl src/common/unicode/generate-unicode_normprops_table.pl src/common/unicode/generate-unicode_version.pl src/common/unicode/meson.build src/common/unicode/norm_test.c src/common/unicode_case.c src/common/unicode_category.c src/common/unicode_norm.c src/common/username.c src/common/wait_error.c src/common/wchar.c src/fe_utils/.gitignore src/fe_utils/Makefile src/fe_utils/archive.c src/fe_utils/astreamer_file.c src/fe_utils/astreamer_gzip.c src/fe_utils/astreamer_lz4.c src/fe_utils/astreamer_tar.c src/fe_utils/astreamer_zstd.c src/fe_utils/cancel.c src/fe_utils/conditional.c src/fe_utils/connect_utils.c src/fe_utils/mbprint.c src/fe_utils/meson.build src/fe_utils/option_utils.c src/fe_utils/parallel_slot.c src/fe_utils/print.c src/fe_utils/psqlscan.l src/fe_utils/query_utils.c src/fe_utils/recovery_gen.c src/fe_utils/simple_list.c src/fe_utils/string_utils.c src/include/.gitignore src/include/Makefile src/include/access/amapi.h src/include/access/amvalidate.h src/include/access/attmap.h src/include/access/attnum.h src/include/access/brin.h src/include/access/brin_internal.h src/include/access/brin_page.h src/include/access/brin_pageops.h src/include/access/brin_revmap.h src/include/access/brin_tuple.h src/include/access/brin_xlog.h src/include/access/bufmask.h src/include/access/clog.h src/include/access/cmptype.h src/include/access/commit_ts.h src/include/access/detoast.h src/include/access/genam.h src/include/access/generic_xlog.h src/include/access/gin.h src/include/access/gin_private.h src/include/access/gin_tuple.h src/include/access/ginblock.h src/include/access/ginxlog.h src/include/access/gist.h src/include/access/gist_private.h src/include/access/gistscan.h src/include/access/gistxlog.h src/include/access/hash.h src/include/access/hash_xlog.h src/include/access/heapam.h src/include/access/heapam_xlog.h src/include/access/heaptoast.h src/include/access/hio.h src/include/access/htup.h src/include/access/htup_details.h src/include/access/itup.h src/include/access/multixact.h src/include/access/nbtree.h src/include/access/nbtxlog.h src/include/access/parallel.h src/include/access/printsimple.h src/include/access/printtup.h src/include/access/relation.h src/include/access/reloptions.h src/include/access/relscan.h src/include/access/rewriteheap.h src/include/access/rmgr.h src/include/access/rmgrdesc_utils.h src/include/access/rmgrlist.h src/include/access/sdir.h src/include/access/sequence.h src/include/access/session.h src/include/access/skey.h src/include/access/slru.h src/include/access/spgist.h src/include/access/spgist_private.h src/include/access/spgxlog.h src/include/access/stratnum.h src/include/access/subtrans.h src/include/access/syncscan.h src/include/access/sysattr.h src/include/access/table.h src/include/access/tableam.h src/include/access/tempcat.h src/include/access/tidstore.h src/include/access/timeline.h src/include/access/toast_compression.h src/include/access/toast_helper.h src/include/access/toast_internals.h src/include/access/transam.h src/include/access/tsmapi.h src/include/access/tupconvert.h src/include/access/tupdesc.h src/include/access/tupdesc_details.h src/include/access/tupmacs.h src/include/access/twophase.h src/include/access/twophase_rmgr.h src/include/access/valid.h src/include/access/visibilitymap.h src/include/access/visibilitymapdefs.h src/include/access/xact.h src/include/access/xlog.h src/include/access/xlog_internal.h src/include/access/xlogarchive.h src/include/access/xlogbackup.h src/include/access/xlogdefs.h src/include/access/xloginsert.h src/include/access/xlogprefetcher.h src/include/access/xlogreader.h src/include/access/xlogrecord.h src/include/access/xlogrecovery.h src/include/access/xlogstats.h src/include/access/xlogutils.h src/include/archive/archive_module.h src/include/archive/shell_archive.h src/include/backup/backup_manifest.h src/include/backup/basebackup.h src/include/backup/basebackup_incremental.h src/include/backup/basebackup_sink.h src/include/backup/basebackup_target.h src/include/backup/walsummary.h src/include/bootstrap/bootstrap.h src/include/c.h src/include/catalog/.gitignore src/include/catalog/Makefile src/include/catalog/binary_upgrade.h src/include/catalog/catalog.h src/include/catalog/catversion.h src/include/catalog/dependency.h src/include/catalog/duplicate_oids src/include/catalog/genbki.h src/include/catalog/heap.h src/include/catalog/index.h src/include/catalog/indexing.h src/include/catalog/meson.build src/include/catalog/namespace.h src/include/catalog/objectaccess.h src/include/catalog/objectaddress.h src/include/catalog/partition.h src/include/catalog/pg_aggregate.dat src/include/catalog/pg_aggregate.h src/include/catalog/pg_am.dat src/include/catalog/pg_am.h src/include/catalog/pg_amop.dat src/include/catalog/pg_amop.h src/include/catalog/pg_amproc.dat src/include/catalog/pg_amproc.h src/include/catalog/pg_attrdef.h src/include/catalog/pg_attribute.h src/include/catalog/pg_auth_members.h src/include/catalog/pg_authid.dat src/include/catalog/pg_authid.h src/include/catalog/pg_cast.dat src/include/catalog/pg_cast.h src/include/catalog/pg_class.dat src/include/catalog/pg_class.h src/include/catalog/pg_collation.dat src/include/catalog/pg_collation.h src/include/catalog/pg_constraint.h src/include/catalog/pg_control.h src/include/catalog/pg_conversion.dat src/include/catalog/pg_conversion.h src/include/catalog/pg_database.dat src/include/catalog/pg_database.h src/include/catalog/pg_db_role_setting.h src/include/catalog/pg_default_acl.h src/include/catalog/pg_depend.h src/include/catalog/pg_description.h src/include/catalog/pg_enum.h src/include/catalog/pg_event_trigger.h src/include/catalog/pg_extension.h src/include/catalog/pg_foreign_data_wrapper.h src/include/catalog/pg_foreign_server.h src/include/catalog/pg_foreign_table.h src/include/catalog/pg_index.h src/include/catalog/pg_inherits.h src/include/catalog/pg_init_privs.h src/include/catalog/pg_language.dat src/include/catalog/pg_language.h src/include/catalog/pg_largeobject.h src/include/catalog/pg_largeobject_metadata.h src/include/catalog/pg_namespace.dat src/include/catalog/pg_namespace.h src/include/catalog/pg_opclass.dat src/include/catalog/pg_opclass.h src/include/catalog/pg_operator.dat src/include/catalog/pg_operator.h src/include/catalog/pg_opfamily.dat src/include/catalog/pg_opfamily.h src/include/catalog/pg_parameter_acl.h src/include/catalog/pg_partitioned_table.h src/include/catalog/pg_policy.h src/include/catalog/pg_proc.dat src/include/catalog/pg_proc.h src/include/catalog/pg_publication.h src/include/catalog/pg_publication_namespace.h src/include/catalog/pg_publication_rel.h src/include/catalog/pg_range.dat src/include/catalog/pg_range.h src/include/catalog/pg_replication_origin.h src/include/catalog/pg_rewrite.h src/include/catalog/pg_seclabel.h src/include/catalog/pg_sequence.h src/include/catalog/pg_shdepend.h src/include/catalog/pg_shdescription.h src/include/catalog/pg_shseclabel.h src/include/catalog/pg_statistic.h src/include/catalog/pg_statistic_ext.h src/include/catalog/pg_statistic_ext_data.h src/include/catalog/pg_subscription.h src/include/catalog/pg_subscription_rel.h src/include/catalog/pg_tablespace.dat src/include/catalog/pg_tablespace.h src/include/catalog/pg_transform.h src/include/catalog/pg_trigger.h src/include/catalog/pg_ts_config.dat src/include/catalog/pg_ts_config.h src/include/catalog/pg_ts_config_map.dat src/include/catalog/pg_ts_config_map.h src/include/catalog/pg_ts_dict.dat src/include/catalog/pg_ts_dict.h src/include/catalog/pg_ts_parser.dat src/include/catalog/pg_ts_parser.h src/include/catalog/pg_ts_template.dat src/include/catalog/pg_ts_template.h src/include/catalog/pg_type.dat src/include/catalog/pg_type.h src/include/catalog/pg_user_mapping.h src/include/catalog/reformat_dat_file.pl src/include/catalog/renumber_oids.pl src/include/catalog/storage.h src/include/catalog/storage_xlog.h src/include/catalog/toasting.h src/include/catalog/unused_oids src/include/commands/alter.h src/include/commands/async.h src/include/commands/cluster.h src/include/commands/collationcmds.h src/include/commands/comment.h src/include/commands/conversioncmds.h src/include/commands/copy.h src/include/commands/copyapi.h src/include/commands/copyfrom_internal.h src/include/commands/createas.h src/include/commands/dbcommands.h src/include/commands/dbcommands_xlog.h src/include/commands/defrem.h src/include/commands/discard.h src/include/commands/event_trigger.h src/include/commands/explain.h src/include/commands/explain_dr.h src/include/commands/explain_format.h src/include/commands/explain_state.h src/include/commands/extension.h src/include/commands/lockcmds.h src/include/commands/matview.h src/include/commands/policy.h src/include/commands/portalcmds.h src/include/commands/prepare.h src/include/commands/proclang.h src/include/commands/progress.h src/include/commands/publicationcmds.h src/include/commands/schemacmds.h src/include/commands/seclabel.h src/include/commands/sequence.h src/include/commands/subscriptioncmds.h src/include/commands/tablecmds.h src/include/commands/tablespace.h src/include/commands/trigger.h src/include/commands/typecmds.h src/include/commands/user.h src/include/commands/vacuum.h src/include/commands/view.h src/include/common/archive.h src/include/common/base64.h src/include/common/blkreftable.h src/include/common/checksum_helper.h src/include/common/compression.h src/include/common/config_info.h src/include/common/connect.h src/include/common/controldata_utils.h src/include/common/cryptohash.h src/include/common/fe_memutils.h src/include/common/file_perm.h src/include/common/file_utils.h src/include/common/hashfn.h src/include/common/hashfn_unstable.h src/include/common/hmac.h src/include/common/int.h src/include/common/int128.h src/include/common/ip.h src/include/common/jsonapi.h src/include/common/keywords.h src/include/common/kwlookup.h src/include/common/link-canary.h src/include/common/logging.h src/include/common/md5.h src/include/common/oauth-common.h src/include/common/openssl.h src/include/common/parse_manifest.h src/include/common/percentrepl.h src/include/common/pg_lzcompress.h src/include/common/pg_prng.h src/include/common/relpath.h src/include/common/restricted_token.h src/include/common/saslprep.h src/include/common/scram-common.h src/include/common/sha1.h src/include/common/sha2.h src/include/common/shortest_dec.h src/include/common/string.h src/include/common/unicode_case.h src/include/common/unicode_case_table.h src/include/common/unicode_category.h src/include/common/unicode_category_table.h src/include/common/unicode_east_asian_fw_table.h src/include/common/unicode_nonspacing_table.h src/include/common/unicode_norm.h src/include/common/unicode_norm_hashfunc.h src/include/common/unicode_norm_table.h src/include/common/unicode_normprops_table.h src/include/common/unicode_version.h src/include/common/username.h src/include/datatype/timestamp.h src/include/executor/execAsync.h src/include/executor/execExpr.h src/include/executor/execParallel.h src/include/executor/execPartition.h src/include/executor/execScan.h src/include/executor/execdebug.h src/include/executor/execdesc.h src/include/executor/executor.h src/include/executor/functions.h src/include/executor/hashjoin.h src/include/executor/instrument.h src/include/executor/nodeAgg.h src/include/executor/nodeAppend.h src/include/executor/nodeBitmapAnd.h src/include/executor/nodeBitmapHeapscan.h src/include/executor/nodeBitmapIndexscan.h src/include/executor/nodeBitmapOr.h src/include/executor/nodeCtescan.h src/include/executor/nodeCustom.h src/include/executor/nodeForeignscan.h src/include/executor/nodeFunctionscan.h src/include/executor/nodeGather.h src/include/executor/nodeGatherMerge.h src/include/executor/nodeGroup.h src/include/executor/nodeHash.h src/include/executor/nodeHashjoin.h src/include/executor/nodeIncrementalSort.h src/include/executor/nodeIndexonlyscan.h src/include/executor/nodeIndexscan.h src/include/executor/nodeLimit.h src/include/executor/nodeLockRows.h src/include/executor/nodeMaterial.h src/include/executor/nodeMemoize.h src/include/executor/nodeMergeAppend.h src/include/executor/nodeMergejoin.h src/include/executor/nodeModifyTable.h src/include/executor/nodeNamedtuplestorescan.h src/include/executor/nodeNestloop.h src/include/executor/nodeProjectSet.h src/include/executor/nodeRecursiveunion.h src/include/executor/nodeResult.h src/include/executor/nodeSamplescan.h src/include/executor/nodeSeqscan.h src/include/executor/nodeSetOp.h src/include/executor/nodeSort.h src/include/executor/nodeSubplan.h src/include/executor/nodeSubqueryscan.h src/include/executor/nodeTableFuncscan.h src/include/executor/nodeTidrangescan.h src/include/executor/nodeTidscan.h src/include/executor/nodeUnique.h src/include/executor/nodeValuesscan.h src/include/executor/nodeWindowAgg.h src/include/executor/nodeWorktablescan.h src/include/executor/spi.h src/include/executor/spi_priv.h src/include/executor/tablefunc.h src/include/executor/tqueue.h src/include/executor/tstoreReceiver.h src/include/executor/tuptable.h src/include/fe_utils/archive.h src/include/fe_utils/astreamer.h src/include/fe_utils/cancel.h src/include/fe_utils/conditional.h src/include/fe_utils/connect_utils.h src/include/fe_utils/mbprint.h src/include/fe_utils/option_utils.h src/include/fe_utils/parallel_slot.h src/include/fe_utils/print.h src/include/fe_utils/psqlscan.h src/include/fe_utils/psqlscan_int.h src/include/fe_utils/query_utils.h src/include/fe_utils/recovery_gen.h src/include/fe_utils/simple_list.h src/include/fe_utils/string_utils.h src/include/fmgr.h src/include/foreign/fdwapi.h src/include/foreign/foreign.h src/include/funcapi.h src/include/getopt_long.h src/include/jit/SectionMemoryManager.h src/include/jit/jit.h src/include/jit/llvmjit.h src/include/jit/llvmjit_backport.h src/include/jit/llvmjit_emit.h src/include/lib/binaryheap.h src/include/lib/bipartite_match.h src/include/lib/bloomfilter.h src/include/lib/dshash.h src/include/lib/hyperloglog.h src/include/lib/ilist.h src/include/lib/integerset.h src/include/lib/knapsack.h src/include/lib/pairingheap.h src/include/lib/qunique.h src/include/lib/radixtree.h src/include/lib/rbtree.h src/include/lib/simplehash.h src/include/lib/sort_template.h src/include/lib/stringinfo.h src/include/libpq/auth.h src/include/libpq/be-fsstubs.h src/include/libpq/be-gssapi-common.h src/include/libpq/crypt.h src/include/libpq/hba.h src/include/libpq/ifaddr.h src/include/libpq/libpq-be-fe-helpers.h src/include/libpq/libpq-be.h src/include/libpq/libpq-fs.h src/include/libpq/libpq.h src/include/libpq/oauth.h src/include/libpq/pg-gssapi.h src/include/libpq/pqcomm.h src/include/libpq/pqformat.h src/include/libpq/pqmq.h src/include/libpq/pqsignal.h src/include/libpq/protocol.h src/include/libpq/sasl.h src/include/libpq/scram.h src/include/mb/pg_wchar.h src/include/mb/stringinfo_mb.h src/include/meson.build src/include/miscadmin.h src/include/nodes/.gitignore src/include/nodes/bitmapset.h src/include/nodes/execnodes.h src/include/nodes/extensible.h src/include/nodes/lockoptions.h src/include/nodes/makefuncs.h src/include/nodes/memnodes.h src/include/nodes/meson.build src/include/nodes/miscnodes.h src/include/nodes/multibitmapset.h src/include/nodes/nodeFuncs.h src/include/nodes/nodes.h src/include/nodes/params.h src/include/nodes/parsenodes.h src/include/nodes/pathnodes.h src/include/nodes/pg_list.h src/include/nodes/plannodes.h src/include/nodes/primnodes.h src/include/nodes/print.h src/include/nodes/queryjumble.h src/include/nodes/readfuncs.h src/include/nodes/replnodes.h src/include/nodes/subscripting.h src/include/nodes/supportnodes.h src/include/nodes/tidbitmap.h src/include/nodes/value.h src/include/optimizer/appendinfo.h src/include/optimizer/clauses.h src/include/optimizer/cost.h src/include/optimizer/geqo.h src/include/optimizer/geqo_copy.h src/include/optimizer/geqo_gene.h src/include/optimizer/geqo_misc.h src/include/optimizer/geqo_mutation.h src/include/optimizer/geqo_pool.h src/include/optimizer/geqo_random.h src/include/optimizer/geqo_recombination.h src/include/optimizer/geqo_selection.h src/include/optimizer/inherit.h src/include/optimizer/joininfo.h src/include/optimizer/optimizer.h src/include/optimizer/orclauses.h src/include/optimizer/paramassign.h src/include/optimizer/pathnode.h src/include/optimizer/paths.h src/include/optimizer/placeholder.h src/include/optimizer/plancat.h src/include/optimizer/planmain.h src/include/optimizer/planner.h src/include/optimizer/prep.h src/include/optimizer/restrictinfo.h src/include/optimizer/subselect.h src/include/optimizer/tlist.h src/include/parser/analyze.h src/include/parser/kwlist.h src/include/parser/parse_agg.h src/include/parser/parse_clause.h src/include/parser/parse_coerce.h src/include/parser/parse_collate.h src/include/parser/parse_cte.h src/include/parser/parse_enr.h src/include/parser/parse_expr.h src/include/parser/parse_func.h src/include/parser/parse_merge.h src/include/parser/parse_node.h src/include/parser/parse_oper.h src/include/parser/parse_param.h src/include/parser/parse_relation.h src/include/parser/parse_target.h src/include/parser/parse_type.h src/include/parser/parse_utilcmd.h src/include/parser/parser.h src/include/parser/parsetree.h src/include/parser/scanner.h src/include/parser/scansup.h src/include/partitioning/partbounds.h src/include/partitioning/partdefs.h src/include/partitioning/partdesc.h src/include/partitioning/partprune.h src/include/pch/c_pch.h src/include/pch/meson.build src/include/pch/postgres_fe_pch.h src/include/pch/postgres_pch.h src/include/pg_config.h.in src/include/pg_config_manual.h src/include/pg_getopt.h src/include/pg_trace.h src/include/pgstat.h src/include/pgtar.h src/include/pgtime.h src/include/port.h src/include/port/atomics.h src/include/port/atomics/arch-arm.h src/include/port/atomics/arch-ppc.h src/include/port/atomics/arch-x86.h src/include/port/atomics/fallback.h src/include/port/atomics/generic-gcc.h src/include/port/atomics/generic-msvc.h src/include/port/atomics/generic-sunpro.h src/include/port/atomics/generic.h src/include/port/cygwin.h src/include/port/darwin.h src/include/port/freebsd.h src/include/port/linux.h src/include/port/netbsd.h src/include/port/openbsd.h src/include/port/pg_bitutils.h src/include/port/pg_bswap.h src/include/port/pg_crc32c.h src/include/port/pg_iovec.h src/include/port/pg_lfind.h src/include/port/pg_numa.h src/include/port/pg_pthread.h src/include/port/simd.h src/include/port/solaris.h src/include/port/win32.h src/include/port/win32/arpa/inet.h src/include/port/win32/dlfcn.h src/include/port/win32/grp.h src/include/port/win32/netdb.h src/include/port/win32/netinet/in.h src/include/port/win32/netinet/tcp.h src/include/port/win32/pwd.h src/include/port/win32/sys/resource.h src/include/port/win32/sys/select.h src/include/port/win32/sys/socket.h src/include/port/win32/sys/un.h src/include/port/win32/sys/wait.h src/include/port/win32_msvc/dirent.h src/include/port/win32_msvc/sys/file.h src/include/port/win32_msvc/sys/param.h src/include/port/win32_msvc/sys/time.h src/include/port/win32_msvc/unistd.h src/include/port/win32_msvc/utime.h src/include/port/win32_port.h src/include/port/win32ntdll.h src/include/portability/instr_time.h src/include/portability/mem.h src/include/postgres.h src/include/postgres_ext.h src/include/postgres_fe.h src/include/postmaster/autovacuum.h src/include/postmaster/auxprocess.h src/include/postmaster/bgworker.h src/include/postmaster/bgworker_internals.h src/include/postmaster/bgwriter.h src/include/postmaster/fork_process.h src/include/postmaster/interrupt.h src/include/postmaster/pgarch.h src/include/postmaster/postmaster.h src/include/postmaster/startup.h src/include/postmaster/syslogger.h src/include/postmaster/walsummarizer.h src/include/postmaster/walwriter.h src/include/regex/regcustom.h src/include/regex/regerrs.h src/include/regex/regex.h src/include/regex/regexport.h src/include/regex/regguts.h src/include/replication/conflict.h src/include/replication/decode.h src/include/replication/logical.h src/include/replication/logicallauncher.h src/include/replication/logicalproto.h src/include/replication/logicalrelation.h src/include/replication/logicalworker.h src/include/replication/message.h src/include/replication/origin.h src/include/replication/output_plugin.h src/include/replication/pgoutput.h src/include/replication/reorderbuffer.h src/include/replication/slot.h src/include/replication/slotsync.h src/include/replication/snapbuild.h src/include/replication/snapbuild_internal.h src/include/replication/syncrep.h src/include/replication/walreceiver.h src/include/replication/walsender.h src/include/replication/walsender_private.h src/include/replication/worker_internal.h src/include/rewrite/prs2lock.h src/include/rewrite/rewriteDefine.h src/include/rewrite/rewriteHandler.h src/include/rewrite/rewriteManip.h src/include/rewrite/rewriteRemove.h src/include/rewrite/rewriteSearchCycle.h src/include/rewrite/rewriteSupport.h src/include/rewrite/rowsecurity.h src/include/snowball/header.h src/include/snowball/libstemmer/api.h src/include/snowball/libstemmer/header.h src/include/snowball/libstemmer/stem_ISO_8859_1_basque.h src/include/snowball/libstemmer/stem_ISO_8859_1_catalan.h src/include/snowball/libstemmer/stem_ISO_8859_1_danish.h src/include/snowball/libstemmer/stem_ISO_8859_1_dutch.h src/include/snowball/libstemmer/stem_ISO_8859_1_english.h src/include/snowball/libstemmer/stem_ISO_8859_1_finnish.h src/include/snowball/libstemmer/stem_ISO_8859_1_french.h src/include/snowball/libstemmer/stem_ISO_8859_1_german.h src/include/snowball/libstemmer/stem_ISO_8859_1_indonesian.h src/include/snowball/libstemmer/stem_ISO_8859_1_irish.h src/include/snowball/libstemmer/stem_ISO_8859_1_italian.h src/include/snowball/libstemmer/stem_ISO_8859_1_norwegian.h src/include/snowball/libstemmer/stem_ISO_8859_1_porter.h src/include/snowball/libstemmer/stem_ISO_8859_1_portuguese.h src/include/snowball/libstemmer/stem_ISO_8859_1_spanish.h src/include/snowball/libstemmer/stem_ISO_8859_1_swedish.h src/include/snowball/libstemmer/stem_ISO_8859_2_hungarian.h src/include/snowball/libstemmer/stem_KOI8_R_russian.h src/include/snowball/libstemmer/stem_UTF_8_arabic.h src/include/snowball/libstemmer/stem_UTF_8_armenian.h src/include/snowball/libstemmer/stem_UTF_8_basque.h src/include/snowball/libstemmer/stem_UTF_8_catalan.h src/include/snowball/libstemmer/stem_UTF_8_danish.h src/include/snowball/libstemmer/stem_UTF_8_dutch.h src/include/snowball/libstemmer/stem_UTF_8_english.h src/include/snowball/libstemmer/stem_UTF_8_estonian.h src/include/snowball/libstemmer/stem_UTF_8_finnish.h src/include/snowball/libstemmer/stem_UTF_8_french.h src/include/snowball/libstemmer/stem_UTF_8_german.h src/include/snowball/libstemmer/stem_UTF_8_greek.h src/include/snowball/libstemmer/stem_UTF_8_hindi.h src/include/snowball/libstemmer/stem_UTF_8_hungarian.h src/include/snowball/libstemmer/stem_UTF_8_indonesian.h src/include/snowball/libstemmer/stem_UTF_8_irish.h src/include/snowball/libstemmer/stem_UTF_8_italian.h src/include/snowball/libstemmer/stem_UTF_8_lithuanian.h src/include/snowball/libstemmer/stem_UTF_8_nepali.h src/include/snowball/libstemmer/stem_UTF_8_norwegian.h src/include/snowball/libstemmer/stem_UTF_8_porter.h src/include/snowball/libstemmer/stem_UTF_8_portuguese.h src/include/snowball/libstemmer/stem_UTF_8_romanian.h src/include/snowball/libstemmer/stem_UTF_8_russian.h src/include/snowball/libstemmer/stem_UTF_8_serbian.h src/include/snowball/libstemmer/stem_UTF_8_spanish.h src/include/snowball/libstemmer/stem_UTF_8_swedish.h src/include/snowball/libstemmer/stem_UTF_8_tamil.h src/include/snowball/libstemmer/stem_UTF_8_turkish.h src/include/snowball/libstemmer/stem_UTF_8_yiddish.h src/include/statistics/extended_stats_internal.h src/include/statistics/stat_utils.h src/include/statistics/statistics.h src/include/storage/.gitignore src/include/storage/aio.h src/include/storage/aio_internal.h src/include/storage/aio_subsys.h src/include/storage/aio_types.h src/include/storage/barrier.h src/include/storage/block.h src/include/storage/buf.h src/include/storage/buf_internals.h src/include/storage/buffile.h src/include/storage/bufmgr.h src/include/storage/bufpage.h src/include/storage/bulk_write.h src/include/storage/checksum.h src/include/storage/checksum_impl.h src/include/storage/condition_variable.h src/include/storage/copydir.h src/include/storage/dsm.h src/include/storage/dsm_impl.h src/include/storage/dsm_registry.h src/include/storage/fd.h src/include/storage/fileset.h src/include/storage/freespace.h src/include/storage/fsm_internals.h src/include/storage/indexfsm.h src/include/storage/io_worker.h src/include/storage/ipc.h src/include/storage/item.h src/include/storage/itemid.h src/include/storage/itemptr.h src/include/storage/large_object.h src/include/storage/latch.h src/include/storage/lmgr.h src/include/storage/lock.h src/include/storage/lockdefs.h src/include/storage/lwlock.h src/include/storage/lwlocklist.h src/include/storage/md.h src/include/storage/meson.build src/include/storage/off.h src/include/storage/pg_sema.h src/include/storage/pg_shmem.h src/include/storage/pmsignal.h src/include/storage/predicate.h src/include/storage/predicate_internals.h src/include/storage/proc.h src/include/storage/procarray.h src/include/storage/proclist.h src/include/storage/proclist_types.h src/include/storage/procnumber.h src/include/storage/procsignal.h src/include/storage/rd.h src/include/storage/read_stream.h src/include/storage/reinit.h src/include/storage/relfilelocator.h src/include/storage/s_lock.h src/include/storage/sharedfileset.h src/include/storage/shm_mq.h src/include/storage/shm_toc.h src/include/storage/shmem.h src/include/storage/sinval.h src/include/storage/sinvaladt.h src/include/storage/smgr.h src/include/storage/spin.h src/include/storage/standby.h src/include/storage/standbydefs.h src/include/storage/sync.h src/include/storage/waiteventset.h src/include/tcop/backend_startup.h src/include/tcop/cmdtag.h src/include/tcop/cmdtaglist.h src/include/tcop/deparse_utility.h src/include/tcop/dest.h src/include/tcop/fastpath.h src/include/tcop/pquery.h src/include/tcop/tcopprot.h src/include/tcop/utility.h src/include/tsearch/dicts/regis.h src/include/tsearch/dicts/spell.h src/include/tsearch/ts_cache.h src/include/tsearch/ts_locale.h src/include/tsearch/ts_public.h src/include/tsearch/ts_type.h src/include/tsearch/ts_utils.h src/include/utils/.gitignore src/include/utils/acl.h src/include/utils/aclchk_internal.h src/include/utils/array.h src/include/utils/arrayaccess.h src/include/utils/ascii.h src/include/utils/attoptcache.h src/include/utils/backend_progress.h src/include/utils/backend_status.h src/include/utils/builtins.h src/include/utils/bytea.h src/include/utils/cash.h src/include/utils/catcache.h src/include/utils/combocid.h src/include/utils/conffiles.h src/include/utils/date.h src/include/utils/datetime.h src/include/utils/datum.h src/include/utils/dsa.h src/include/utils/dynahash.h src/include/utils/elog.h src/include/utils/evtcache.h src/include/utils/expandeddatum.h src/include/utils/expandedrecord.h src/include/utils/float.h src/include/utils/fmgrtab.h src/include/utils/formatting.h src/include/utils/freepage.h src/include/utils/funccache.h src/include/utils/geo_decls.h src/include/utils/guc.h src/include/utils/guc_hooks.h src/include/utils/guc_tables.h src/include/utils/help_config.h src/include/utils/hsearch.h src/include/utils/index_selfuncs.h src/include/utils/inet.h src/include/utils/injection_point.h src/include/utils/inval.h src/include/utils/json.h src/include/utils/jsonb.h src/include/utils/jsonfuncs.h src/include/utils/jsonpath.h src/include/utils/logtape.h src/include/utils/lsyscache.h src/include/utils/memdebug.h src/include/utils/memutils.h src/include/utils/memutils_internal.h src/include/utils/memutils_memorychunk.h src/include/utils/meson.build src/include/utils/multirangetypes.h src/include/utils/numeric.h src/include/utils/palloc.h src/include/utils/partcache.h src/include/utils/pg_crc.h src/include/utils/pg_locale.h src/include/utils/pg_lsn.h src/include/utils/pg_rusage.h src/include/utils/pgstat_internal.h src/include/utils/pgstat_kind.h src/include/utils/pidfile.h src/include/utils/plancache.h src/include/utils/portal.h src/include/utils/ps_status.h src/include/utils/queryenvironment.h src/include/utils/rangetypes.h src/include/utils/regproc.h src/include/utils/rel.h src/include/utils/relcache.h src/include/utils/relfilenumbermap.h src/include/utils/relmapper.h src/include/utils/relptr.h src/include/utils/reltrigger.h src/include/utils/resowner.h src/include/utils/rls.h src/include/utils/ruleutils.h src/include/utils/sampling.h src/include/utils/selfuncs.h src/include/utils/sharedtuplestore.h src/include/utils/skipsupport.h src/include/utils/snapmgr.h src/include/utils/snapshot.h src/include/utils/sortsupport.h src/include/utils/spccache.h src/include/utils/syscache.h src/include/utils/timeout.h src/include/utils/timestamp.h src/include/utils/trandlog.h src/include/utils/tuplesort.h src/include/utils/tuplestore.h src/include/utils/typcache.h src/include/utils/tzparser.h src/include/utils/usercontext.h src/include/utils/uuid.h src/include/utils/varbit.h src/include/utils/varlena.h src/include/utils/wait_classes.h src/include/utils/wait_event.h src/include/utils/xid8.h src/include/utils/xml.h src/include/varatt.h src/include/windowapi.h src/interfaces/Makefile src/interfaces/ecpg/Makefile src/interfaces/ecpg/README.dynSQL src/interfaces/ecpg/compatlib/.gitignore src/interfaces/ecpg/compatlib/Makefile src/interfaces/ecpg/compatlib/exports.txt src/interfaces/ecpg/compatlib/informix.c src/interfaces/ecpg/compatlib/meson.build src/interfaces/ecpg/ecpglib/.gitignore src/interfaces/ecpg/ecpglib/Makefile src/interfaces/ecpg/ecpglib/connect.c src/interfaces/ecpg/ecpglib/data.c src/interfaces/ecpg/ecpglib/descriptor.c src/interfaces/ecpg/ecpglib/ecpglib_extern.h src/interfaces/ecpg/ecpglib/error.c src/interfaces/ecpg/ecpglib/execute.c src/interfaces/ecpg/ecpglib/exports.txt src/interfaces/ecpg/ecpglib/memory.c src/interfaces/ecpg/ecpglib/meson.build src/interfaces/ecpg/ecpglib/misc.c src/interfaces/ecpg/ecpglib/nls.mk src/interfaces/ecpg/ecpglib/po/LINGUAS src/interfaces/ecpg/ecpglib/po/cs.po src/interfaces/ecpg/ecpglib/po/de.po src/interfaces/ecpg/ecpglib/po/el.po src/interfaces/ecpg/ecpglib/po/es.po src/interfaces/ecpg/ecpglib/po/fr.po src/interfaces/ecpg/ecpglib/po/it.po src/interfaces/ecpg/ecpglib/po/ja.po src/interfaces/ecpg/ecpglib/po/ka.po src/interfaces/ecpg/ecpglib/po/ko.po src/interfaces/ecpg/ecpglib/po/meson.build src/interfaces/ecpg/ecpglib/po/pl.po src/interfaces/ecpg/ecpglib/po/pt_BR.po src/interfaces/ecpg/ecpglib/po/ru.po src/interfaces/ecpg/ecpglib/po/sv.po src/interfaces/ecpg/ecpglib/po/tr.po src/interfaces/ecpg/ecpglib/po/vi.po src/interfaces/ecpg/ecpglib/po/zh_CN.po src/interfaces/ecpg/ecpglib/po/zh_TW.po src/interfaces/ecpg/ecpglib/prepare.c src/interfaces/ecpg/ecpglib/sqlda.c src/interfaces/ecpg/ecpglib/typename.c src/interfaces/ecpg/include/.gitignore src/interfaces/ecpg/include/Makefile src/interfaces/ecpg/include/datetime.h src/interfaces/ecpg/include/decimal.h src/interfaces/ecpg/include/ecpg-pthread-win32.h src/interfaces/ecpg/include/ecpg_config.h.in src/interfaces/ecpg/include/ecpg_informix.h src/interfaces/ecpg/include/ecpgerrno.h src/interfaces/ecpg/include/ecpglib.h src/interfaces/ecpg/include/ecpgtype.h src/interfaces/ecpg/include/meson.build src/interfaces/ecpg/include/pgtypes.h src/interfaces/ecpg/include/pgtypes_date.h src/interfaces/ecpg/include/pgtypes_error.h src/interfaces/ecpg/include/pgtypes_interval.h src/interfaces/ecpg/include/pgtypes_numeric.h src/interfaces/ecpg/include/pgtypes_timestamp.h src/interfaces/ecpg/include/sql3types.h src/interfaces/ecpg/include/sqlca.h src/interfaces/ecpg/include/sqlda-compat.h src/interfaces/ecpg/include/sqlda-native.h src/interfaces/ecpg/include/sqlda.h src/interfaces/ecpg/include/sqltypes.h src/interfaces/ecpg/meson.build src/interfaces/ecpg/pgtypeslib/.gitignore src/interfaces/ecpg/pgtypeslib/Makefile src/interfaces/ecpg/pgtypeslib/common.c src/interfaces/ecpg/pgtypeslib/datetime.c src/interfaces/ecpg/pgtypeslib/dt.h src/interfaces/ecpg/pgtypeslib/dt_common.c src/interfaces/ecpg/pgtypeslib/exports.txt src/interfaces/ecpg/pgtypeslib/interval.c src/interfaces/ecpg/pgtypeslib/meson.build src/interfaces/ecpg/pgtypeslib/numeric.c src/interfaces/ecpg/pgtypeslib/pgtypeslib_extern.h src/interfaces/ecpg/pgtypeslib/timestamp.c src/interfaces/ecpg/preproc/.gitignore src/interfaces/ecpg/preproc/Makefile src/interfaces/ecpg/preproc/README.parser src/interfaces/ecpg/preproc/c_keywords.c src/interfaces/ecpg/preproc/c_kwlist.h src/interfaces/ecpg/preproc/descriptor.c src/interfaces/ecpg/preproc/ecpg.addons src/interfaces/ecpg/preproc/ecpg.c src/interfaces/ecpg/preproc/ecpg.header src/interfaces/ecpg/preproc/ecpg.tokens src/interfaces/ecpg/preproc/ecpg.trailer src/interfaces/ecpg/preproc/ecpg.type src/interfaces/ecpg/preproc/ecpg_keywords.c src/interfaces/ecpg/preproc/ecpg_kwlist.h src/interfaces/ecpg/preproc/keywords.c src/interfaces/ecpg/preproc/meson.build src/interfaces/ecpg/preproc/nls.mk src/interfaces/ecpg/preproc/output.c src/interfaces/ecpg/preproc/parse.pl src/interfaces/ecpg/preproc/parser.c src/interfaces/ecpg/preproc/pgc.l src/interfaces/ecpg/preproc/po/LINGUAS src/interfaces/ecpg/preproc/po/cs.po src/interfaces/ecpg/preproc/po/de.po src/interfaces/ecpg/preproc/po/el.po src/interfaces/ecpg/preproc/po/es.po src/interfaces/ecpg/preproc/po/fr.po src/interfaces/ecpg/preproc/po/it.po src/interfaces/ecpg/preproc/po/ja.po src/interfaces/ecpg/preproc/po/ka.po src/interfaces/ecpg/preproc/po/ko.po src/interfaces/ecpg/preproc/po/meson.build src/interfaces/ecpg/preproc/po/pl.po src/interfaces/ecpg/preproc/po/pt_BR.po src/interfaces/ecpg/preproc/po/ru.po src/interfaces/ecpg/preproc/po/sv.po src/interfaces/ecpg/preproc/po/tr.po src/interfaces/ecpg/preproc/po/vi.po src/interfaces/ecpg/preproc/po/zh_CN.po src/interfaces/ecpg/preproc/po/zh_TW.po src/interfaces/ecpg/preproc/preproc_extern.h src/interfaces/ecpg/preproc/t/001_ecpg_err_warn_msg.pl src/interfaces/ecpg/preproc/t/002_ecpg_err_warn_msg_informix.pl src/interfaces/ecpg/preproc/t/err_warn_msg.pgc src/interfaces/ecpg/preproc/t/err_warn_msg_informix.pgc src/interfaces/ecpg/preproc/type.c src/interfaces/ecpg/preproc/type.h src/interfaces/ecpg/preproc/util.c src/interfaces/ecpg/preproc/variable.c src/interfaces/ecpg/test/.gitignore src/interfaces/ecpg/test/Makefile src/interfaces/ecpg/test/Makefile.regress src/interfaces/ecpg/test/compat_informix/.gitignore src/interfaces/ecpg/test/compat_informix/Makefile src/interfaces/ecpg/test/compat_informix/charfuncs.pgc src/interfaces/ecpg/test/compat_informix/dec_test.pgc src/interfaces/ecpg/test/compat_informix/describe.pgc src/interfaces/ecpg/test/compat_informix/intoasc.pgc src/interfaces/ecpg/test/compat_informix/meson.build src/interfaces/ecpg/test/compat_informix/rfmtdate.pgc src/interfaces/ecpg/test/compat_informix/rfmtlong.pgc src/interfaces/ecpg/test/compat_informix/rnull.pgc src/interfaces/ecpg/test/compat_informix/sqlda.pgc src/interfaces/ecpg/test/compat_informix/test_informix.pgc src/interfaces/ecpg/test/compat_informix/test_informix2.pgc src/interfaces/ecpg/test/compat_oracle/.gitignore src/interfaces/ecpg/test/compat_oracle/Makefile src/interfaces/ecpg/test/compat_oracle/char_array.pgc src/interfaces/ecpg/test/compat_oracle/meson.build src/interfaces/ecpg/test/connect/.gitignore src/interfaces/ecpg/test/connect/Makefile src/interfaces/ecpg/test/connect/README src/interfaces/ecpg/test/connect/meson.build src/interfaces/ecpg/test/connect/test1.pgc src/interfaces/ecpg/test/connect/test2.pgc src/interfaces/ecpg/test/connect/test3.pgc src/interfaces/ecpg/test/connect/test4.pgc src/interfaces/ecpg/test/connect/test5.pgc src/interfaces/ecpg/test/ecpg_schedule src/interfaces/ecpg/test/expected/compat_informix-charfuncs.c src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stderr src/interfaces/ecpg/test/expected/compat_informix-charfuncs.stdout src/interfaces/ecpg/test/expected/compat_informix-dec_test.c src/interfaces/ecpg/test/expected/compat_informix-dec_test.stderr src/interfaces/ecpg/test/expected/compat_informix-dec_test.stdout src/interfaces/ecpg/test/expected/compat_informix-describe.c src/interfaces/ecpg/test/expected/compat_informix-describe.stderr src/interfaces/ecpg/test/expected/compat_informix-describe.stdout src/interfaces/ecpg/test/expected/compat_informix-intoasc.c src/interfaces/ecpg/test/expected/compat_informix-intoasc.stderr src/interfaces/ecpg/test/expected/compat_informix-intoasc.stdout src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.c src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.stderr src/interfaces/ecpg/test/expected/compat_informix-rfmtdate.stdout src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.c src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.stderr src/interfaces/ecpg/test/expected/compat_informix-rfmtlong.stdout src/interfaces/ecpg/test/expected/compat_informix-rnull.c src/interfaces/ecpg/test/expected/compat_informix-rnull.stderr src/interfaces/ecpg/test/expected/compat_informix-rnull.stdout src/interfaces/ecpg/test/expected/compat_informix-sqlda.c src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr src/interfaces/ecpg/test/expected/compat_informix-sqlda.stdout src/interfaces/ecpg/test/expected/compat_informix-test_informix.c src/interfaces/ecpg/test/expected/compat_informix-test_informix.stderr src/interfaces/ecpg/test/expected/compat_informix-test_informix.stdout src/interfaces/ecpg/test/expected/compat_informix-test_informix2.c src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stderr src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stdout src/interfaces/ecpg/test/expected/compat_oracle-char_array.c src/interfaces/ecpg/test/expected/compat_oracle-char_array.stderr src/interfaces/ecpg/test/expected/compat_oracle-char_array.stdout src/interfaces/ecpg/test/expected/connect-test1-minGW32.stderr src/interfaces/ecpg/test/expected/connect-test1.c src/interfaces/ecpg/test/expected/connect-test1.stderr src/interfaces/ecpg/test/expected/connect-test1.stdout src/interfaces/ecpg/test/expected/connect-test2.c src/interfaces/ecpg/test/expected/connect-test2.stderr src/interfaces/ecpg/test/expected/connect-test2.stdout src/interfaces/ecpg/test/expected/connect-test3.c src/interfaces/ecpg/test/expected/connect-test3.stderr src/interfaces/ecpg/test/expected/connect-test3.stdout src/interfaces/ecpg/test/expected/connect-test4.c src/interfaces/ecpg/test/expected/connect-test4.stderr src/interfaces/ecpg/test/expected/connect-test4.stdout src/interfaces/ecpg/test/expected/connect-test5.c src/interfaces/ecpg/test/expected/connect-test5.stderr src/interfaces/ecpg/test/expected/connect-test5.stdout src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.c src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stderr src/interfaces/ecpg/test/expected/pgtypeslib-dt_test.stdout src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.c src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stderr src/interfaces/ecpg/test/expected/pgtypeslib-dt_test2.stdout src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stderr src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.stdout src/interfaces/ecpg/test/expected/pgtypeslib-num_test.c src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stderr src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stdout src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.c src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.stderr src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.stdout src/interfaces/ecpg/test/expected/preproc-array_of_struct.c src/interfaces/ecpg/test/expected/preproc-array_of_struct.stderr src/interfaces/ecpg/test/expected/preproc-array_of_struct.stdout src/interfaces/ecpg/test/expected/preproc-autoprep.c src/interfaces/ecpg/test/expected/preproc-autoprep.stderr src/interfaces/ecpg/test/expected/preproc-autoprep.stdout src/interfaces/ecpg/test/expected/preproc-comment.c src/interfaces/ecpg/test/expected/preproc-comment.stderr src/interfaces/ecpg/test/expected/preproc-comment.stdout src/interfaces/ecpg/test/expected/preproc-cursor.c src/interfaces/ecpg/test/expected/preproc-cursor.stderr src/interfaces/ecpg/test/expected/preproc-cursor.stdout src/interfaces/ecpg/test/expected/preproc-define.c src/interfaces/ecpg/test/expected/preproc-define.stderr src/interfaces/ecpg/test/expected/preproc-define.stdout src/interfaces/ecpg/test/expected/preproc-describe.c src/interfaces/ecpg/test/expected/preproc-describe.stderr src/interfaces/ecpg/test/expected/preproc-describe.stdout src/interfaces/ecpg/test/expected/preproc-init.c src/interfaces/ecpg/test/expected/preproc-init.stderr src/interfaces/ecpg/test/expected/preproc-init.stdout src/interfaces/ecpg/test/expected/preproc-outofscope.c src/interfaces/ecpg/test/expected/preproc-outofscope.stderr src/interfaces/ecpg/test/expected/preproc-outofscope.stdout src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.c src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.stderr src/interfaces/ecpg/test/expected/preproc-pointer_to_struct.stdout src/interfaces/ecpg/test/expected/preproc-strings.c src/interfaces/ecpg/test/expected/preproc-strings.stderr src/interfaces/ecpg/test/expected/preproc-strings.stdout src/interfaces/ecpg/test/expected/preproc-type.c src/interfaces/ecpg/test/expected/preproc-type.stderr src/interfaces/ecpg/test/expected/preproc-type.stdout src/interfaces/ecpg/test/expected/preproc-variable.c src/interfaces/ecpg/test/expected/preproc-variable.stderr src/interfaces/ecpg/test/expected/preproc-variable.stdout src/interfaces/ecpg/test/expected/preproc-whenever.c src/interfaces/ecpg/test/expected/preproc-whenever.stderr src/interfaces/ecpg/test/expected/preproc-whenever.stdout src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.c src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.stderr src/interfaces/ecpg/test/expected/preproc-whenever_do_continue.stdout src/interfaces/ecpg/test/expected/sql-array.c src/interfaces/ecpg/test/expected/sql-array.stderr src/interfaces/ecpg/test/expected/sql-array.stdout src/interfaces/ecpg/test/expected/sql-binary.c src/interfaces/ecpg/test/expected/sql-binary.stderr src/interfaces/ecpg/test/expected/sql-binary.stdout src/interfaces/ecpg/test/expected/sql-bytea.c src/interfaces/ecpg/test/expected/sql-bytea.stderr src/interfaces/ecpg/test/expected/sql-bytea.stdout src/interfaces/ecpg/test/expected/sql-code100.c src/interfaces/ecpg/test/expected/sql-code100.stderr src/interfaces/ecpg/test/expected/sql-code100.stdout src/interfaces/ecpg/test/expected/sql-copystdout.c src/interfaces/ecpg/test/expected/sql-copystdout.stderr src/interfaces/ecpg/test/expected/sql-copystdout.stdout src/interfaces/ecpg/test/expected/sql-createtableas.c src/interfaces/ecpg/test/expected/sql-createtableas.stderr src/interfaces/ecpg/test/expected/sql-createtableas.stdout src/interfaces/ecpg/test/expected/sql-declare.c src/interfaces/ecpg/test/expected/sql-declare.stderr src/interfaces/ecpg/test/expected/sql-declare.stdout src/interfaces/ecpg/test/expected/sql-define.c src/interfaces/ecpg/test/expected/sql-define.stderr src/interfaces/ecpg/test/expected/sql-define.stdout src/interfaces/ecpg/test/expected/sql-desc.c src/interfaces/ecpg/test/expected/sql-desc.stderr src/interfaces/ecpg/test/expected/sql-desc.stdout src/interfaces/ecpg/test/expected/sql-describe.c src/interfaces/ecpg/test/expected/sql-describe.stderr src/interfaces/ecpg/test/expected/sql-describe.stdout src/interfaces/ecpg/test/expected/sql-dynalloc.c src/interfaces/ecpg/test/expected/sql-dynalloc.stderr src/interfaces/ecpg/test/expected/sql-dynalloc.stdout src/interfaces/ecpg/test/expected/sql-dynalloc2.c src/interfaces/ecpg/test/expected/sql-dynalloc2.stderr src/interfaces/ecpg/test/expected/sql-dynalloc2.stdout src/interfaces/ecpg/test/expected/sql-dyntest.c src/interfaces/ecpg/test/expected/sql-dyntest.stderr src/interfaces/ecpg/test/expected/sql-dyntest.stdout src/interfaces/ecpg/test/expected/sql-execute.c src/interfaces/ecpg/test/expected/sql-execute.stderr src/interfaces/ecpg/test/expected/sql-execute.stdout src/interfaces/ecpg/test/expected/sql-fetch.c src/interfaces/ecpg/test/expected/sql-fetch.stderr src/interfaces/ecpg/test/expected/sql-fetch.stdout src/interfaces/ecpg/test/expected/sql-func.c src/interfaces/ecpg/test/expected/sql-func.stderr src/interfaces/ecpg/test/expected/sql-func.stdout src/interfaces/ecpg/test/expected/sql-indicators.c src/interfaces/ecpg/test/expected/sql-indicators.stderr src/interfaces/ecpg/test/expected/sql-indicators.stdout src/interfaces/ecpg/test/expected/sql-insupd.c src/interfaces/ecpg/test/expected/sql-insupd.stderr src/interfaces/ecpg/test/expected/sql-insupd.stdout src/interfaces/ecpg/test/expected/sql-oldexec.c src/interfaces/ecpg/test/expected/sql-oldexec.stderr src/interfaces/ecpg/test/expected/sql-oldexec.stdout src/interfaces/ecpg/test/expected/sql-parser.c src/interfaces/ecpg/test/expected/sql-parser.stderr src/interfaces/ecpg/test/expected/sql-parser.stdout src/interfaces/ecpg/test/expected/sql-prepareas.c src/interfaces/ecpg/test/expected/sql-prepareas.stderr src/interfaces/ecpg/test/expected/sql-prepareas.stdout src/interfaces/ecpg/test/expected/sql-quote.c src/interfaces/ecpg/test/expected/sql-quote.stderr src/interfaces/ecpg/test/expected/sql-quote.stdout src/interfaces/ecpg/test/expected/sql-show.c src/interfaces/ecpg/test/expected/sql-show.stderr src/interfaces/ecpg/test/expected/sql-show.stdout src/interfaces/ecpg/test/expected/sql-sqlda.c src/interfaces/ecpg/test/expected/sql-sqlda.stderr src/interfaces/ecpg/test/expected/sql-sqlda.stdout src/interfaces/ecpg/test/expected/sql-sqljson.c src/interfaces/ecpg/test/expected/sql-sqljson.stderr src/interfaces/ecpg/test/expected/sql-sqljson.stdout src/interfaces/ecpg/test/expected/sql-sqljson_jsontable.c src/interfaces/ecpg/test/expected/sql-sqljson_jsontable.stderr src/interfaces/ecpg/test/expected/sql-sqljson_jsontable.stdout src/interfaces/ecpg/test/expected/sql-twophase.c src/interfaces/ecpg/test/expected/sql-twophase.stderr src/interfaces/ecpg/test/expected/sql-twophase.stdout src/interfaces/ecpg/test/expected/thread-alloc.c src/interfaces/ecpg/test/expected/thread-alloc.stderr src/interfaces/ecpg/test/expected/thread-alloc.stdout src/interfaces/ecpg/test/expected/thread-alloc_2.stdout src/interfaces/ecpg/test/expected/thread-descriptor.c src/interfaces/ecpg/test/expected/thread-descriptor.stderr src/interfaces/ecpg/test/expected/thread-descriptor.stdout src/interfaces/ecpg/test/expected/thread-prep.c src/interfaces/ecpg/test/expected/thread-prep.stderr src/interfaces/ecpg/test/expected/thread-prep.stdout src/interfaces/ecpg/test/expected/thread-prep_2.stdout src/interfaces/ecpg/test/expected/thread-thread.c src/interfaces/ecpg/test/expected/thread-thread.stderr src/interfaces/ecpg/test/expected/thread-thread.stdout src/interfaces/ecpg/test/expected/thread-thread_2.stdout src/interfaces/ecpg/test/expected/thread-thread_implicit.c src/interfaces/ecpg/test/expected/thread-thread_implicit.stderr src/interfaces/ecpg/test/expected/thread-thread_implicit.stdout src/interfaces/ecpg/test/expected/thread-thread_implicit_2.stdout src/interfaces/ecpg/test/meson.build src/interfaces/ecpg/test/performance/perftest.pgc src/interfaces/ecpg/test/pg_regress_ecpg.c src/interfaces/ecpg/test/pgtypeslib/.gitignore src/interfaces/ecpg/test/pgtypeslib/Makefile src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc src/interfaces/ecpg/test/pgtypeslib/meson.build src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc src/interfaces/ecpg/test/pgtypeslib/num_test.pgc src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc src/interfaces/ecpg/test/preproc/.gitignore src/interfaces/ecpg/test/preproc/Makefile src/interfaces/ecpg/test/preproc/array_of_struct.pgc src/interfaces/ecpg/test/preproc/autoprep.pgc src/interfaces/ecpg/test/preproc/comment.pgc src/interfaces/ecpg/test/preproc/cursor.pgc src/interfaces/ecpg/test/preproc/define.pgc src/interfaces/ecpg/test/preproc/init.pgc src/interfaces/ecpg/test/preproc/meson.build src/interfaces/ecpg/test/preproc/outofscope.pgc src/interfaces/ecpg/test/preproc/pointer_to_struct.pgc src/interfaces/ecpg/test/preproc/strings.h src/interfaces/ecpg/test/preproc/strings.pgc src/interfaces/ecpg/test/preproc/struct.h src/interfaces/ecpg/test/preproc/type.pgc src/interfaces/ecpg/test/preproc/variable.pgc src/interfaces/ecpg/test/preproc/whenever.pgc src/interfaces/ecpg/test/preproc/whenever_do_continue.pgc src/interfaces/ecpg/test/printf_hack.h src/interfaces/ecpg/test/regression.h src/interfaces/ecpg/test/sql/.gitignore src/interfaces/ecpg/test/sql/Makefile src/interfaces/ecpg/test/sql/array.pgc src/interfaces/ecpg/test/sql/binary.pgc src/interfaces/ecpg/test/sql/bytea.pgc src/interfaces/ecpg/test/sql/code100.pgc src/interfaces/ecpg/test/sql/copystdout.pgc src/interfaces/ecpg/test/sql/createtableas.pgc src/interfaces/ecpg/test/sql/declare.pgc src/interfaces/ecpg/test/sql/define.pgc src/interfaces/ecpg/test/sql/define_prelim.pgc src/interfaces/ecpg/test/sql/desc.pgc src/interfaces/ecpg/test/sql/describe.pgc src/interfaces/ecpg/test/sql/dynalloc.pgc src/interfaces/ecpg/test/sql/dynalloc2.pgc src/interfaces/ecpg/test/sql/dyntest.pgc src/interfaces/ecpg/test/sql/execute.pgc src/interfaces/ecpg/test/sql/fetch.pgc src/interfaces/ecpg/test/sql/func.pgc src/interfaces/ecpg/test/sql/indicators.pgc src/interfaces/ecpg/test/sql/insupd.pgc src/interfaces/ecpg/test/sql/meson.build src/interfaces/ecpg/test/sql/oldexec.pgc src/interfaces/ecpg/test/sql/parser.pgc src/interfaces/ecpg/test/sql/prepareas.pgc src/interfaces/ecpg/test/sql/quote.pgc src/interfaces/ecpg/test/sql/show.pgc src/interfaces/ecpg/test/sql/sqlda.pgc src/interfaces/ecpg/test/sql/sqljson.pgc src/interfaces/ecpg/test/sql/sqljson_jsontable.pgc src/interfaces/ecpg/test/sql/twophase.pgc src/interfaces/ecpg/test/thread/.gitignore src/interfaces/ecpg/test/thread/Makefile src/interfaces/ecpg/test/thread/alloc.pgc src/interfaces/ecpg/test/thread/descriptor.pgc src/interfaces/ecpg/test/thread/meson.build src/interfaces/ecpg/test/thread/prep.pgc src/interfaces/ecpg/test/thread/thread.pgc src/interfaces/ecpg/test/thread/thread_implicit.pgc src/interfaces/libpq-oauth/.gitignore src/interfaces/libpq-oauth/Makefile src/interfaces/libpq-oauth/README src/interfaces/libpq-oauth/exports.txt src/interfaces/libpq-oauth/meson.build src/interfaces/libpq-oauth/oauth-curl.c src/interfaces/libpq-oauth/oauth-curl.h src/interfaces/libpq-oauth/oauth-utils.c src/interfaces/libpq-oauth/oauth-utils.h src/interfaces/libpq/.gitignore src/interfaces/libpq/Makefile src/interfaces/libpq/README src/interfaces/libpq/exports.txt src/interfaces/libpq/fe-auth-oauth.c src/interfaces/libpq/fe-auth-oauth.h src/interfaces/libpq/fe-auth-sasl.h src/interfaces/libpq/fe-auth-scram.c src/interfaces/libpq/fe-auth.c src/interfaces/libpq/fe-auth.h src/interfaces/libpq/fe-cancel.c src/interfaces/libpq/fe-connect.c src/interfaces/libpq/fe-exec.c src/interfaces/libpq/fe-gssapi-common.c src/interfaces/libpq/fe-gssapi-common.h src/interfaces/libpq/fe-lobj.c src/interfaces/libpq/fe-misc.c src/interfaces/libpq/fe-print.c src/interfaces/libpq/fe-protocol3.c src/interfaces/libpq/fe-secure-common.c src/interfaces/libpq/fe-secure-common.h src/interfaces/libpq/fe-secure-gssapi.c src/interfaces/libpq/fe-secure-openssl.c src/interfaces/libpq/fe-secure.c src/interfaces/libpq/fe-trace.c src/interfaces/libpq/legacy-pqsignal.c src/interfaces/libpq/libpq-events.c src/interfaces/libpq/libpq-events.h src/interfaces/libpq/libpq-fe.h src/interfaces/libpq/libpq-int.h src/interfaces/libpq/meson.build src/interfaces/libpq/nls.mk src/interfaces/libpq/pg_service.conf.sample src/interfaces/libpq/po/LINGUAS src/interfaces/libpq/po/cs.po src/interfaces/libpq/po/de.po src/interfaces/libpq/po/el.po src/interfaces/libpq/po/es.po src/interfaces/libpq/po/fr.po src/interfaces/libpq/po/he.po src/interfaces/libpq/po/it.po src/interfaces/libpq/po/ja.po src/interfaces/libpq/po/ka.po src/interfaces/libpq/po/ko.po src/interfaces/libpq/po/meson.build src/interfaces/libpq/po/pl.po src/interfaces/libpq/po/pt_BR.po src/interfaces/libpq/po/ru.po src/interfaces/libpq/po/sv.po src/interfaces/libpq/po/tr.po src/interfaces/libpq/po/zh_CN.po src/interfaces/libpq/po/zh_TW.po src/interfaces/libpq/pqexpbuffer.c src/interfaces/libpq/pqexpbuffer.h src/interfaces/libpq/pthread-win32.c src/interfaces/libpq/t/001_uri.pl src/interfaces/libpq/t/002_api.pl src/interfaces/libpq/t/003_load_balance_host_list.pl src/interfaces/libpq/t/004_load_balance_dns.pl src/interfaces/libpq/t/005_negotiate_encryption.pl src/interfaces/libpq/t/006_service.pl src/interfaces/libpq/test/.gitignore src/interfaces/libpq/test/Makefile src/interfaces/libpq/test/libpq_testclient.c src/interfaces/libpq/test/libpq_uri_regress.c src/interfaces/libpq/test/meson.build src/interfaces/libpq/win32.c src/interfaces/libpq/win32.h src/interfaces/meson.build src/makefiles/Makefile src/makefiles/Makefile.cygwin src/makefiles/Makefile.darwin src/makefiles/Makefile.freebsd src/makefiles/Makefile.linux src/makefiles/Makefile.netbsd src/makefiles/Makefile.openbsd src/makefiles/Makefile.solaris src/makefiles/Makefile.win32 src/makefiles/meson.build src/makefiles/pgxs.mk src/meson.build src/nls-global.mk src/pl/Makefile src/pl/meson.build src/pl/plperl/.gitignore src/pl/plperl/GNUmakefile src/pl/plperl/README src/pl/plperl/SPI.xs src/pl/plperl/Util.xs src/pl/plperl/expected/plperl.out src/pl/plperl/expected/plperl_array.out src/pl/plperl/expected/plperl_call.out src/pl/plperl/expected/plperl_elog.out src/pl/plperl/expected/plperl_elog_1.out src/pl/plperl/expected/plperl_env.out src/pl/plperl/expected/plperl_init.out src/pl/plperl/expected/plperl_lc.out src/pl/plperl/expected/plperl_lc_1.out src/pl/plperl/expected/plperl_plperlu.out src/pl/plperl/expected/plperl_setup.out src/pl/plperl/expected/plperl_shared.out src/pl/plperl/expected/plperl_transaction.out src/pl/plperl/expected/plperl_trigger.out src/pl/plperl/expected/plperl_util.out src/pl/plperl/expected/plperlu.out src/pl/plperl/meson.build src/pl/plperl/nls.mk src/pl/plperl/plc_perlboot.pl src/pl/plperl/plc_trusted.pl src/pl/plperl/plperl--1.0.sql src/pl/plperl/plperl.c src/pl/plperl/plperl.control src/pl/plperl/plperl.h src/pl/plperl/plperl_opmask.pl src/pl/plperl/plperl_system.h src/pl/plperl/plperlu--1.0.sql src/pl/plperl/plperlu.control src/pl/plperl/po/LINGUAS src/pl/plperl/po/cs.po src/pl/plperl/po/de.po src/pl/plperl/po/el.po src/pl/plperl/po/es.po src/pl/plperl/po/fr.po src/pl/plperl/po/it.po src/pl/plperl/po/ja.po src/pl/plperl/po/ka.po src/pl/plperl/po/ko.po src/pl/plperl/po/meson.build src/pl/plperl/po/pl.po src/pl/plperl/po/pt_BR.po src/pl/plperl/po/ro.po src/pl/plperl/po/ru.po src/pl/plperl/po/sv.po src/pl/plperl/po/tr.po src/pl/plperl/po/vi.po src/pl/plperl/po/zh_CN.po src/pl/plperl/po/zh_TW.po src/pl/plperl/ppport.h src/pl/plperl/sql/plperl.sql src/pl/plperl/sql/plperl_array.sql src/pl/plperl/sql/plperl_call.sql src/pl/plperl/sql/plperl_elog.sql src/pl/plperl/sql/plperl_end.sql src/pl/plperl/sql/plperl_env.sql src/pl/plperl/sql/plperl_init.sql src/pl/plperl/sql/plperl_lc.sql src/pl/plperl/sql/plperl_plperlu.sql src/pl/plperl/sql/plperl_setup.sql src/pl/plperl/sql/plperl_shared.sql src/pl/plperl/sql/plperl_transaction.sql src/pl/plperl/sql/plperl_trigger.sql src/pl/plperl/sql/plperl_util.sql src/pl/plperl/sql/plperlu.sql src/pl/plperl/text2macro.pl src/pl/plpgsql/Makefile src/pl/plpgsql/meson.build src/pl/plpgsql/src/.gitignore src/pl/plpgsql/src/Makefile src/pl/plpgsql/src/data/copy1.data src/pl/plpgsql/src/expected/plpgsql_array.out src/pl/plpgsql/src/expected/plpgsql_cache.out src/pl/plpgsql/src/expected/plpgsql_cache_1.out src/pl/plpgsql/src/expected/plpgsql_call.out src/pl/plpgsql/src/expected/plpgsql_control.out src/pl/plpgsql/src/expected/plpgsql_copy.out src/pl/plpgsql/src/expected/plpgsql_domain.out src/pl/plpgsql/src/expected/plpgsql_misc.out src/pl/plpgsql/src/expected/plpgsql_record.out src/pl/plpgsql/src/expected/plpgsql_simple.out src/pl/plpgsql/src/expected/plpgsql_transaction.out src/pl/plpgsql/src/expected/plpgsql_trap.out src/pl/plpgsql/src/expected/plpgsql_trigger.out src/pl/plpgsql/src/expected/plpgsql_varprops.out src/pl/plpgsql/src/generate-plerrcodes.pl src/pl/plpgsql/src/meson.build src/pl/plpgsql/src/nls.mk src/pl/plpgsql/src/pl_comp.c src/pl/plpgsql/src/pl_exec.c src/pl/plpgsql/src/pl_funcs.c src/pl/plpgsql/src/pl_gram.y src/pl/plpgsql/src/pl_handler.c src/pl/plpgsql/src/pl_reserved_kwlist.h src/pl/plpgsql/src/pl_scanner.c src/pl/plpgsql/src/pl_unreserved_kwlist.h src/pl/plpgsql/src/plpgsql--1.0.sql src/pl/plpgsql/src/plpgsql.control src/pl/plpgsql/src/plpgsql.h src/pl/plpgsql/src/po/LINGUAS src/pl/plpgsql/src/po/cs.po src/pl/plpgsql/src/po/de.po src/pl/plpgsql/src/po/el.po src/pl/plpgsql/src/po/es.po src/pl/plpgsql/src/po/fr.po src/pl/plpgsql/src/po/it.po src/pl/plpgsql/src/po/ja.po src/pl/plpgsql/src/po/ka.po src/pl/plpgsql/src/po/ko.po src/pl/plpgsql/src/po/meson.build src/pl/plpgsql/src/po/pl.po src/pl/plpgsql/src/po/pt_BR.po src/pl/plpgsql/src/po/ro.po src/pl/plpgsql/src/po/ru.po src/pl/plpgsql/src/po/sv.po src/pl/plpgsql/src/po/tr.po src/pl/plpgsql/src/po/vi.po src/pl/plpgsql/src/po/zh_CN.po src/pl/plpgsql/src/po/zh_TW.po src/pl/plpgsql/src/sql/plpgsql_array.sql src/pl/plpgsql/src/sql/plpgsql_cache.sql src/pl/plpgsql/src/sql/plpgsql_call.sql src/pl/plpgsql/src/sql/plpgsql_control.sql src/pl/plpgsql/src/sql/plpgsql_copy.sql src/pl/plpgsql/src/sql/plpgsql_domain.sql src/pl/plpgsql/src/sql/plpgsql_misc.sql src/pl/plpgsql/src/sql/plpgsql_record.sql src/pl/plpgsql/src/sql/plpgsql_simple.sql src/pl/plpgsql/src/sql/plpgsql_transaction.sql src/pl/plpgsql/src/sql/plpgsql_trap.sql src/pl/plpgsql/src/sql/plpgsql_trigger.sql src/pl/plpgsql/src/sql/plpgsql_varprops.sql src/pl/plpython/.gitignore src/pl/plpython/Makefile src/pl/plpython/expected/plpython_call.out src/pl/plpython/expected/plpython_composite.out src/pl/plpython/expected/plpython_do.out src/pl/plpython/expected/plpython_drop.out src/pl/plpython/expected/plpython_ereport.out src/pl/plpython/expected/plpython_error.out src/pl/plpython/expected/plpython_global.out src/pl/plpython/expected/plpython_import.out src/pl/plpython/expected/plpython_newline.out src/pl/plpython/expected/plpython_params.out src/pl/plpython/expected/plpython_populate.out src/pl/plpython/expected/plpython_quote.out src/pl/plpython/expected/plpython_record.out src/pl/plpython/expected/plpython_schema.out src/pl/plpython/expected/plpython_setof.out src/pl/plpython/expected/plpython_spi.out src/pl/plpython/expected/plpython_subtransaction.out src/pl/plpython/expected/plpython_test.out src/pl/plpython/expected/plpython_transaction.out src/pl/plpython/expected/plpython_trigger.out src/pl/plpython/expected/plpython_types.out src/pl/plpython/expected/plpython_unicode.out src/pl/plpython/expected/plpython_void.out src/pl/plpython/generate-spiexceptions.pl src/pl/plpython/meson.build src/pl/plpython/nls.mk src/pl/plpython/plpy_cursorobject.c src/pl/plpython/plpy_cursorobject.h src/pl/plpython/plpy_elog.c src/pl/plpython/plpy_elog.h src/pl/plpython/plpy_exec.c src/pl/plpython/plpy_exec.h src/pl/plpython/plpy_main.c src/pl/plpython/plpy_main.h src/pl/plpython/plpy_planobject.c src/pl/plpython/plpy_planobject.h src/pl/plpython/plpy_plpymodule.c src/pl/plpython/plpy_plpymodule.h src/pl/plpython/plpy_procedure.c src/pl/plpython/plpy_procedure.h src/pl/plpython/plpy_resultobject.c src/pl/plpython/plpy_resultobject.h src/pl/plpython/plpy_spi.c src/pl/plpython/plpy_spi.h src/pl/plpython/plpy_subxactobject.c src/pl/plpython/plpy_subxactobject.h src/pl/plpython/plpy_typeio.c src/pl/plpython/plpy_typeio.h src/pl/plpython/plpy_util.c src/pl/plpython/plpy_util.h src/pl/plpython/plpython.h src/pl/plpython/plpython3u--1.0.sql src/pl/plpython/plpython3u.control src/pl/plpython/plpython_system.h src/pl/plpython/po/LINGUAS src/pl/plpython/po/cs.po src/pl/plpython/po/de.po src/pl/plpython/po/el.po src/pl/plpython/po/es.po src/pl/plpython/po/fr.po src/pl/plpython/po/it.po src/pl/plpython/po/ja.po src/pl/plpython/po/ka.po src/pl/plpython/po/ko.po src/pl/plpython/po/meson.build src/pl/plpython/po/pl.po src/pl/plpython/po/pt_BR.po src/pl/plpython/po/ru.po src/pl/plpython/po/sv.po src/pl/plpython/po/tr.po src/pl/plpython/po/vi.po src/pl/plpython/po/zh_CN.po src/pl/plpython/po/zh_TW.po src/pl/plpython/sql/plpython_call.sql src/pl/plpython/sql/plpython_composite.sql src/pl/plpython/sql/plpython_do.sql src/pl/plpython/sql/plpython_drop.sql src/pl/plpython/sql/plpython_ereport.sql src/pl/plpython/sql/plpython_error.sql src/pl/plpython/sql/plpython_global.sql src/pl/plpython/sql/plpython_import.sql src/pl/plpython/sql/plpython_newline.sql src/pl/plpython/sql/plpython_params.sql src/pl/plpython/sql/plpython_populate.sql src/pl/plpython/sql/plpython_quote.sql src/pl/plpython/sql/plpython_record.sql src/pl/plpython/sql/plpython_schema.sql src/pl/plpython/sql/plpython_setof.sql src/pl/plpython/sql/plpython_spi.sql src/pl/plpython/sql/plpython_subtransaction.sql src/pl/plpython/sql/plpython_test.sql src/pl/plpython/sql/plpython_transaction.sql src/pl/plpython/sql/plpython_trigger.sql src/pl/plpython/sql/plpython_types.sql src/pl/plpython/sql/plpython_unicode.sql src/pl/plpython/sql/plpython_void.sql src/pl/tcl/.gitignore src/pl/tcl/Makefile src/pl/tcl/expected/pltcl_call.out src/pl/tcl/expected/pltcl_queries.out src/pl/tcl/expected/pltcl_setup.out src/pl/tcl/expected/pltcl_start_proc.out src/pl/tcl/expected/pltcl_subxact.out src/pl/tcl/expected/pltcl_transaction.out src/pl/tcl/expected/pltcl_trigger.out src/pl/tcl/expected/pltcl_unicode.out src/pl/tcl/generate-pltclerrcodes.pl src/pl/tcl/meson.build src/pl/tcl/nls.mk src/pl/tcl/pltcl--1.0.sql src/pl/tcl/pltcl.c src/pl/tcl/pltcl.control src/pl/tcl/pltclu--1.0.sql src/pl/tcl/pltclu.control src/pl/tcl/po/LINGUAS src/pl/tcl/po/cs.po src/pl/tcl/po/de.po src/pl/tcl/po/el.po src/pl/tcl/po/es.po src/pl/tcl/po/fr.po src/pl/tcl/po/it.po src/pl/tcl/po/ja.po src/pl/tcl/po/ka.po src/pl/tcl/po/ko.po src/pl/tcl/po/meson.build src/pl/tcl/po/pl.po src/pl/tcl/po/pt_BR.po src/pl/tcl/po/ro.po src/pl/tcl/po/ru.po src/pl/tcl/po/sv.po src/pl/tcl/po/tr.po src/pl/tcl/po/vi.po src/pl/tcl/po/zh_CN.po src/pl/tcl/po/zh_TW.po src/pl/tcl/sql/pltcl_call.sql src/pl/tcl/sql/pltcl_queries.sql src/pl/tcl/sql/pltcl_setup.sql src/pl/tcl/sql/pltcl_start_proc.sql src/pl/tcl/sql/pltcl_subxact.sql src/pl/tcl/sql/pltcl_transaction.sql src/pl/tcl/sql/pltcl_trigger.sql src/pl/tcl/sql/pltcl_unicode.sql src/port/.gitignore src/port/Makefile src/port/README src/port/bsearch_arg.c src/port/chklocale.c src/port/dirent.c src/port/dirmod.c src/port/explicit_bzero.c src/port/getopt.c src/port/getopt_long.c src/port/getpeereid.c src/port/inet_aton.c src/port/inet_net_ntop.c src/port/kill.c src/port/meson.build src/port/mkdtemp.c src/port/noblock.c src/port/open.c src/port/path.c src/port/pg_bitutils.c src/port/pg_crc32c_armv8.c src/port/pg_crc32c_armv8_choose.c src/port/pg_crc32c_loongarch.c src/port/pg_crc32c_sb8.c src/port/pg_crc32c_sse42.c src/port/pg_crc32c_sse42_choose.c src/port/pg_localeconv_r.c src/port/pg_numa.c src/port/pg_popcount_aarch64.c src/port/pg_popcount_avx512.c src/port/pg_strong_random.c src/port/pgcheckdir.c src/port/pgmkdirp.c src/port/pgsleep.c src/port/pgstrcasecmp.c src/port/pgstrsignal.c src/port/pqsignal.c src/port/pthread-win32.h src/port/pthread_barrier_wait.c src/port/qsort.c src/port/qsort_arg.c src/port/quotes.c src/port/snprintf.c src/port/strerror.c src/port/strlcat.c src/port/strlcpy.c src/port/strnlen.c src/port/strsep.c src/port/strtof.c src/port/system.c src/port/tar.c src/port/timingsafe_bcmp.c src/port/win32.ico src/port/win32common.c src/port/win32dlopen.c src/port/win32env.c src/port/win32error.c src/port/win32fdatasync.c src/port/win32fseek.c src/port/win32gai_strerror.c src/port/win32getrusage.c src/port/win32gettimeofday.c src/port/win32link.c src/port/win32ntdll.c src/port/win32pread.c src/port/win32pwrite.c src/port/win32security.c src/port/win32setlocale.c src/port/win32stat.c src/template/cygwin src/template/darwin src/template/freebsd src/template/linux src/template/netbsd src/template/openbsd src/template/solaris src/template/win32 src/test/Makefile src/test/README src/test/authentication/.gitignore src/test/authentication/Makefile src/test/authentication/README src/test/authentication/meson.build src/test/authentication/t/001_password.pl src/test/authentication/t/002_saslprep.pl src/test/authentication/t/003_peer.pl src/test/authentication/t/004_file_inclusion.pl src/test/authentication/t/005_sspi.pl src/test/authentication/t/006_login_trigger.pl src/test/authentication/t/007_pre_auth.pl src/test/examples/.gitignore src/test/examples/Makefile src/test/examples/testlibpq.c src/test/examples/testlibpq2.c src/test/examples/testlibpq2.sql src/test/examples/testlibpq3.c src/test/examples/testlibpq3.sql src/test/examples/testlibpq4.c src/test/examples/testlo.c src/test/examples/testlo64.c src/test/icu/.gitignore src/test/icu/Makefile src/test/icu/README src/test/icu/meson.build src/test/icu/t/010_database.pl src/test/isolation/.gitignore src/test/isolation/Makefile src/test/isolation/README src/test/isolation/expected/aborted-keyrevoke.out src/test/isolation/expected/alter-table-1.out src/test/isolation/expected/alter-table-2.out src/test/isolation/expected/alter-table-3.out src/test/isolation/expected/alter-table-4.out src/test/isolation/expected/async-notify.out src/test/isolation/expected/classroom-scheduling.out src/test/isolation/expected/cluster-conflict-partition.out src/test/isolation/expected/cluster-conflict.out src/test/isolation/expected/create-trigger.out src/test/isolation/expected/deadlock-hard.out src/test/isolation/expected/deadlock-parallel.out src/test/isolation/expected/deadlock-simple.out src/test/isolation/expected/deadlock-soft-2.out src/test/isolation/expected/deadlock-soft.out src/test/isolation/expected/delete-abort-savept-2.out src/test/isolation/expected/delete-abort-savept.out src/test/isolation/expected/detach-partition-concurrently-1.out src/test/isolation/expected/detach-partition-concurrently-2.out src/test/isolation/expected/detach-partition-concurrently-3.out src/test/isolation/expected/detach-partition-concurrently-4.out src/test/isolation/expected/drop-index-concurrently-1.out src/test/isolation/expected/drop-index-concurrently-1_2.out src/test/isolation/expected/eval-plan-qual-trigger.out src/test/isolation/expected/eval-plan-qual.out src/test/isolation/expected/fk-contention.out src/test/isolation/expected/fk-deadlock.out src/test/isolation/expected/fk-deadlock2.out src/test/isolation/expected/fk-deadlock2_1.out src/test/isolation/expected/fk-deadlock2_2.out src/test/isolation/expected/fk-deadlock_1.out src/test/isolation/expected/fk-partitioned-1.out src/test/isolation/expected/fk-partitioned-2.out src/test/isolation/expected/fk-snapshot.out src/test/isolation/expected/freeze-the-dead.out src/test/isolation/expected/horizons.out src/test/isolation/expected/index-only-bitmapscan.out src/test/isolation/expected/index-only-scan.out src/test/isolation/expected/inherit-temp.out src/test/isolation/expected/inplace-inval.out src/test/isolation/expected/insert-conflict-do-nothing-2.out src/test/isolation/expected/insert-conflict-do-nothing.out src/test/isolation/expected/insert-conflict-do-update-2.out src/test/isolation/expected/insert-conflict-do-update-3.out src/test/isolation/expected/insert-conflict-do-update-4.out src/test/isolation/expected/insert-conflict-do-update.out src/test/isolation/expected/insert-conflict-specconflict.out src/test/isolation/expected/intra-grant-inplace-db.out src/test/isolation/expected/intra-grant-inplace.out src/test/isolation/expected/lock-committed-keyupdate.out src/test/isolation/expected/lock-committed-update.out src/test/isolation/expected/lock-nowait.out src/test/isolation/expected/lock-update-delete.out src/test/isolation/expected/lock-update-delete_1.out src/test/isolation/expected/lock-update-traversal.out src/test/isolation/expected/matview-write-skew.out src/test/isolation/expected/merge-delete.out src/test/isolation/expected/merge-insert-update.out src/test/isolation/expected/merge-join.out src/test/isolation/expected/merge-match-recheck.out src/test/isolation/expected/merge-update.out src/test/isolation/expected/multiple-cic.out src/test/isolation/expected/multiple-row-versions.out src/test/isolation/expected/multixact-no-deadlock.out src/test/isolation/expected/multixact-no-forget.out src/test/isolation/expected/multixact-no-forget_1.out src/test/isolation/expected/nowait-2.out src/test/isolation/expected/nowait-3.out src/test/isolation/expected/nowait-4.out src/test/isolation/expected/nowait-4_1.out src/test/isolation/expected/nowait-5.out src/test/isolation/expected/nowait.out src/test/isolation/expected/partial-index.out src/test/isolation/expected/partition-concurrent-attach.out src/test/isolation/expected/partition-drop-index-locking.out src/test/isolation/expected/partition-key-update-1.out src/test/isolation/expected/partition-key-update-2.out src/test/isolation/expected/partition-key-update-3.out src/test/isolation/expected/partition-key-update-4.out src/test/isolation/expected/plpgsql-toast.out src/test/isolation/expected/predicate-gin.out src/test/isolation/expected/predicate-gist.out src/test/isolation/expected/predicate-hash.out src/test/isolation/expected/predicate-lock-hot-tuple.out src/test/isolation/expected/prepared-transactions-cic.out src/test/isolation/expected/prepared-transactions.out src/test/isolation/expected/project-manager.out src/test/isolation/expected/propagate-lock-delete.out src/test/isolation/expected/read-only-anomaly-2.out src/test/isolation/expected/read-only-anomaly-3.out src/test/isolation/expected/read-only-anomaly.out src/test/isolation/expected/read-write-unique-2.out src/test/isolation/expected/read-write-unique-3.out src/test/isolation/expected/read-write-unique-4.out src/test/isolation/expected/read-write-unique.out src/test/isolation/expected/receipt-report.out src/test/isolation/expected/referential-integrity.out src/test/isolation/expected/reindex-concurrently-toast.out src/test/isolation/expected/reindex-concurrently.out src/test/isolation/expected/reindex-schema.out src/test/isolation/expected/ri-trigger.out src/test/isolation/expected/sequence-ddl.out src/test/isolation/expected/serializable-parallel-2.out src/test/isolation/expected/serializable-parallel-3.out src/test/isolation/expected/serializable-parallel.out src/test/isolation/expected/simple-write-skew.out src/test/isolation/expected/skip-locked-2.out src/test/isolation/expected/skip-locked-3.out src/test/isolation/expected/skip-locked-4.out src/test/isolation/expected/skip-locked-4_1.out src/test/isolation/expected/skip-locked.out src/test/isolation/expected/stats.out src/test/isolation/expected/stats_1.out src/test/isolation/expected/subxid-overflow.out src/test/isolation/expected/temp-schema-cleanup.out src/test/isolation/expected/temporal-range-integrity.out src/test/isolation/expected/timeouts.out src/test/isolation/expected/total-cash.out src/test/isolation/expected/truncate-conflict.out src/test/isolation/expected/tuplelock-conflict.out src/test/isolation/expected/tuplelock-partition.out src/test/isolation/expected/tuplelock-update.out src/test/isolation/expected/tuplelock-upgrade-no-deadlock.out src/test/isolation/expected/two-ids.out src/test/isolation/expected/update-conflict-out.out src/test/isolation/expected/update-locked-tuple.out src/test/isolation/expected/vacuum-concurrent-drop.out src/test/isolation/expected/vacuum-conflict.out src/test/isolation/expected/vacuum-no-cleanup-lock.out src/test/isolation/expected/vacuum-skip-locked.out src/test/isolation/isolation_main.c src/test/isolation/isolation_schedule src/test/isolation/isolationtester.c src/test/isolation/isolationtester.h src/test/isolation/meson.build src/test/isolation/specparse.y src/test/isolation/specs/aborted-keyrevoke.spec src/test/isolation/specs/alter-table-1.spec src/test/isolation/specs/alter-table-2.spec src/test/isolation/specs/alter-table-3.spec src/test/isolation/specs/alter-table-4.spec src/test/isolation/specs/async-notify.spec src/test/isolation/specs/classroom-scheduling.spec src/test/isolation/specs/cluster-conflict-partition.spec src/test/isolation/specs/cluster-conflict.spec src/test/isolation/specs/create-trigger.spec src/test/isolation/specs/deadlock-hard.spec src/test/isolation/specs/deadlock-parallel.spec src/test/isolation/specs/deadlock-simple.spec src/test/isolation/specs/deadlock-soft-2.spec src/test/isolation/specs/deadlock-soft.spec src/test/isolation/specs/delete-abort-savept-2.spec src/test/isolation/specs/delete-abort-savept.spec src/test/isolation/specs/detach-partition-concurrently-1.spec src/test/isolation/specs/detach-partition-concurrently-2.spec src/test/isolation/specs/detach-partition-concurrently-3.spec src/test/isolation/specs/detach-partition-concurrently-4.spec src/test/isolation/specs/drop-index-concurrently-1.spec src/test/isolation/specs/eval-plan-qual-trigger.spec src/test/isolation/specs/eval-plan-qual.spec src/test/isolation/specs/fk-contention.spec src/test/isolation/specs/fk-deadlock.spec src/test/isolation/specs/fk-deadlock2.spec src/test/isolation/specs/fk-partitioned-1.spec src/test/isolation/specs/fk-partitioned-2.spec src/test/isolation/specs/fk-snapshot.spec src/test/isolation/specs/freeze-the-dead.spec src/test/isolation/specs/horizons.spec src/test/isolation/specs/index-only-bitmapscan.spec src/test/isolation/specs/index-only-scan.spec src/test/isolation/specs/inherit-temp.spec src/test/isolation/specs/inplace-inval.spec src/test/isolation/specs/insert-conflict-do-nothing-2.spec src/test/isolation/specs/insert-conflict-do-nothing.spec src/test/isolation/specs/insert-conflict-do-update-2.spec src/test/isolation/specs/insert-conflict-do-update-3.spec src/test/isolation/specs/insert-conflict-do-update-4.spec src/test/isolation/specs/insert-conflict-do-update.spec src/test/isolation/specs/insert-conflict-specconflict.spec src/test/isolation/specs/intra-grant-inplace-db.spec src/test/isolation/specs/intra-grant-inplace.spec src/test/isolation/specs/lock-committed-keyupdate.spec src/test/isolation/specs/lock-committed-update.spec src/test/isolation/specs/lock-nowait.spec src/test/isolation/specs/lock-update-delete.spec src/test/isolation/specs/lock-update-traversal.spec src/test/isolation/specs/matview-write-skew.spec src/test/isolation/specs/merge-delete.spec src/test/isolation/specs/merge-insert-update.spec src/test/isolation/specs/merge-join.spec src/test/isolation/specs/merge-match-recheck.spec src/test/isolation/specs/merge-update.spec src/test/isolation/specs/multiple-cic.spec src/test/isolation/specs/multiple-row-versions.spec src/test/isolation/specs/multixact-no-deadlock.spec src/test/isolation/specs/multixact-no-forget.spec src/test/isolation/specs/nowait-2.spec src/test/isolation/specs/nowait-3.spec src/test/isolation/specs/nowait-4.spec src/test/isolation/specs/nowait-5.spec src/test/isolation/specs/nowait.spec src/test/isolation/specs/partial-index.spec src/test/isolation/specs/partition-concurrent-attach.spec src/test/isolation/specs/partition-drop-index-locking.spec src/test/isolation/specs/partition-key-update-1.spec src/test/isolation/specs/partition-key-update-2.spec src/test/isolation/specs/partition-key-update-3.spec src/test/isolation/specs/partition-key-update-4.spec src/test/isolation/specs/plpgsql-toast.spec src/test/isolation/specs/predicate-gin.spec src/test/isolation/specs/predicate-gist.spec src/test/isolation/specs/predicate-hash.spec src/test/isolation/specs/predicate-lock-hot-tuple.spec src/test/isolation/specs/prepared-transactions-cic.spec src/test/isolation/specs/prepared-transactions.spec src/test/isolation/specs/project-manager.spec src/test/isolation/specs/propagate-lock-delete.spec src/test/isolation/specs/read-only-anomaly-2.spec src/test/isolation/specs/read-only-anomaly-3.spec src/test/isolation/specs/read-only-anomaly.spec src/test/isolation/specs/read-write-unique-2.spec src/test/isolation/specs/read-write-unique-3.spec src/test/isolation/specs/read-write-unique-4.spec src/test/isolation/specs/read-write-unique.spec src/test/isolation/specs/receipt-report.spec src/test/isolation/specs/referential-integrity.spec src/test/isolation/specs/reindex-concurrently-toast.spec src/test/isolation/specs/reindex-concurrently.spec src/test/isolation/specs/reindex-schema.spec src/test/isolation/specs/ri-trigger.spec src/test/isolation/specs/sequence-ddl.spec src/test/isolation/specs/serializable-parallel-2.spec src/test/isolation/specs/serializable-parallel-3.spec src/test/isolation/specs/serializable-parallel.spec src/test/isolation/specs/simple-write-skew.spec src/test/isolation/specs/skip-locked-2.spec src/test/isolation/specs/skip-locked-3.spec src/test/isolation/specs/skip-locked-4.spec src/test/isolation/specs/skip-locked.spec src/test/isolation/specs/stats.spec src/test/isolation/specs/subxid-overflow.spec src/test/isolation/specs/temp-schema-cleanup.spec src/test/isolation/specs/temporal-range-integrity.spec src/test/isolation/specs/timeouts.spec src/test/isolation/specs/total-cash.spec src/test/isolation/specs/truncate-conflict.spec src/test/isolation/specs/tuplelock-conflict.spec src/test/isolation/specs/tuplelock-partition.spec src/test/isolation/specs/tuplelock-update.spec src/test/isolation/specs/tuplelock-upgrade-no-deadlock.spec src/test/isolation/specs/two-ids.spec src/test/isolation/specs/update-conflict-out.spec src/test/isolation/specs/update-locked-tuple.spec src/test/isolation/specs/vacuum-concurrent-drop.spec src/test/isolation/specs/vacuum-conflict.spec src/test/isolation/specs/vacuum-no-cleanup-lock.spec src/test/isolation/specs/vacuum-skip-locked.spec src/test/isolation/specscanner.l src/test/kerberos/.gitignore src/test/kerberos/Makefile src/test/kerberos/README src/test/kerberos/meson.build src/test/kerberos/t/001_auth.pl src/test/ldap/.gitignore src/test/ldap/LdapServer.pm src/test/ldap/Makefile src/test/ldap/README src/test/ldap/authdata.ldif src/test/ldap/meson.build src/test/ldap/t/001_auth.pl src/test/ldap/t/002_bindpasswd.pl src/test/locale/.gitignore src/test/locale/Makefile src/test/locale/README src/test/locale/de_DE.ISO8859-1/Makefile src/test/locale/de_DE.ISO8859-1/README src/test/locale/de_DE.ISO8859-1/expected/de-ctype.out src/test/locale/de_DE.ISO8859-1/expected/test-de-char.sql.out src/test/locale/de_DE.ISO8859-1/expected/test-de-select.sql.out src/test/locale/de_DE.ISO8859-1/expected/test-de-sort.out src/test/locale/de_DE.ISO8859-1/expected/test-de-text.sql.out src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-char.sql.out src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-text.sql.out src/test/locale/de_DE.ISO8859-1/expected/test-de-upper-varchar.sql.out src/test/locale/de_DE.ISO8859-1/expected/test-de-varchar.sql.out src/test/locale/de_DE.ISO8859-1/runall src/test/locale/de_DE.ISO8859-1/test-de-select.sql.in src/test/locale/de_DE.ISO8859-1/test-de-sort.in src/test/locale/de_DE.ISO8859-1/test-de-upper.sql.in src/test/locale/de_DE.ISO8859-1/test-de.sql.in src/test/locale/gr_GR.ISO8859-7/Makefile src/test/locale/gr_GR.ISO8859-7/README src/test/locale/gr_GR.ISO8859-7/expected/gr-ctype.out src/test/locale/gr_GR.ISO8859-7/expected/test-gr-char.sql.out src/test/locale/gr_GR.ISO8859-7/expected/test-gr-select.sql.out src/test/locale/gr_GR.ISO8859-7/expected/test-gr-sort.out src/test/locale/gr_GR.ISO8859-7/expected/test-gr-text.sql.out src/test/locale/gr_GR.ISO8859-7/expected/test-gr-varchar.sql.out src/test/locale/gr_GR.ISO8859-7/runall src/test/locale/gr_GR.ISO8859-7/test-gr-select.sql.in src/test/locale/gr_GR.ISO8859-7/test-gr-sort.in src/test/locale/gr_GR.ISO8859-7/test-gr.sql.in src/test/locale/koi8-r/Makefile src/test/locale/koi8-r/expected/koi8-ctype.out src/test/locale/koi8-r/expected/test-koi8-char.sql.out src/test/locale/koi8-r/expected/test-koi8-select.sql.out src/test/locale/koi8-r/expected/test-koi8-sort.out src/test/locale/koi8-r/expected/test-koi8-text.sql.out src/test/locale/koi8-r/expected/test-koi8-varchar.sql.out src/test/locale/koi8-r/runall src/test/locale/koi8-r/test-koi8-select.sql.in src/test/locale/koi8-r/test-koi8-sort.in src/test/locale/koi8-r/test-koi8.sql.in src/test/locale/koi8-to-win1251/Makefile src/test/locale/koi8-to-win1251/README src/test/locale/koi8-to-win1251/expected/test-koi8-char.sql.out src/test/locale/koi8-to-win1251/expected/test-koi8-select.sql.out src/test/locale/koi8-to-win1251/expected/test-koi8-sort.out src/test/locale/koi8-to-win1251/expected/test-koi8-text.sql.out src/test/locale/koi8-to-win1251/expected/test-koi8-varchar.sql.out src/test/locale/koi8-to-win1251/runall src/test/locale/koi8-to-win1251/test-koi8-select.sql.in src/test/locale/koi8-to-win1251/test-koi8-sort.in src/test/locale/koi8-to-win1251/test-koi8.sql.in src/test/locale/sort-test.pl src/test/locale/sort-test.py src/test/locale/test-ctype.c src/test/mb/README src/test/mb/expected/big5.out src/test/mb/expected/euc_cn.out src/test/mb/expected/euc_jp.out src/test/mb/expected/euc_kr.out src/test/mb/expected/euc_tw.out src/test/mb/expected/gb18030.out src/test/mb/expected/mule_internal.out src/test/mb/expected/sjis.out src/test/mb/expected/utf8.out src/test/mb/mbregress.sh src/test/mb/sql/big5.sql src/test/mb/sql/euc_cn.sql src/test/mb/sql/euc_jp.sql src/test/mb/sql/euc_kr.sql src/test/mb/sql/euc_tw.sql src/test/mb/sql/gb18030.sql src/test/mb/sql/mule_internal.sql src/test/mb/sql/sjis.sql src/test/mb/sql/utf8.sql src/test/meson.build src/test/modules/Makefile src/test/modules/README src/test/modules/brin/.gitignore src/test/modules/brin/Makefile src/test/modules/brin/expected/summarization-and-inprogress-insertion.out src/test/modules/brin/meson.build src/test/modules/brin/specs/summarization-and-inprogress-insertion.spec src/test/modules/brin/t/01_workitems.pl src/test/modules/brin/t/02_wal_consistency.pl src/test/modules/commit_ts/.gitignore src/test/modules/commit_ts/Makefile src/test/modules/commit_ts/commit_ts.conf src/test/modules/commit_ts/expected/commit_timestamp.out src/test/modules/commit_ts/expected/commit_timestamp_1.out src/test/modules/commit_ts/meson.build src/test/modules/commit_ts/sql/commit_timestamp.sql src/test/modules/commit_ts/t/001_base.pl src/test/modules/commit_ts/t/002_standby.pl src/test/modules/commit_ts/t/003_standby_2.pl src/test/modules/commit_ts/t/004_restart.pl src/test/modules/delay_execution/.gitignore src/test/modules/delay_execution/Makefile src/test/modules/delay_execution/delay_execution.c src/test/modules/delay_execution/expected/partition-addition.out src/test/modules/delay_execution/expected/partition-removal-1.out src/test/modules/delay_execution/meson.build src/test/modules/delay_execution/specs/partition-addition.spec src/test/modules/delay_execution/specs/partition-removal-1.spec src/test/modules/dummy_index_am/.gitignore src/test/modules/dummy_index_am/Makefile src/test/modules/dummy_index_am/README src/test/modules/dummy_index_am/dummy_index_am--1.0.sql src/test/modules/dummy_index_am/dummy_index_am.c src/test/modules/dummy_index_am/dummy_index_am.control src/test/modules/dummy_index_am/expected/reloptions.out src/test/modules/dummy_index_am/meson.build src/test/modules/dummy_index_am/sql/reloptions.sql src/test/modules/dummy_seclabel/.gitignore src/test/modules/dummy_seclabel/Makefile src/test/modules/dummy_seclabel/README src/test/modules/dummy_seclabel/dummy_seclabel--1.0.sql src/test/modules/dummy_seclabel/dummy_seclabel.c src/test/modules/dummy_seclabel/dummy_seclabel.control src/test/modules/dummy_seclabel/expected/dummy_seclabel.out src/test/modules/dummy_seclabel/meson.build src/test/modules/dummy_seclabel/sql/dummy_seclabel.sql src/test/modules/gin/.gitignore src/test/modules/gin/Makefile src/test/modules/gin/expected/gin_incomplete_splits.out src/test/modules/gin/meson.build src/test/modules/gin/sql/gin_incomplete_splits.sql src/test/modules/injection_points/.gitignore src/test/modules/injection_points/Makefile src/test/modules/injection_points/expected/basic.out src/test/modules/injection_points/expected/hashagg.out src/test/modules/injection_points/expected/heap_lock_update.out src/test/modules/injection_points/expected/injection_points.out src/test/modules/injection_points/expected/inplace.out src/test/modules/injection_points/expected/reindex_conc.out src/test/modules/injection_points/expected/syscache-update-pruned.out src/test/modules/injection_points/expected/syscache-update-pruned_1.out src/test/modules/injection_points/expected/vacuum.out src/test/modules/injection_points/injection_points--1.0.sql src/test/modules/injection_points/injection_points.c src/test/modules/injection_points/injection_points.control src/test/modules/injection_points/injection_stats.c src/test/modules/injection_points/injection_stats.h src/test/modules/injection_points/injection_stats_fixed.c src/test/modules/injection_points/meson.build src/test/modules/injection_points/regress_injection.c src/test/modules/injection_points/specs/basic.spec src/test/modules/injection_points/specs/heap_lock_update.spec src/test/modules/injection_points/specs/inplace.spec src/test/modules/injection_points/specs/syscache-update-pruned.spec src/test/modules/injection_points/sql/hashagg.sql src/test/modules/injection_points/sql/injection_points.sql src/test/modules/injection_points/sql/reindex_conc.sql src/test/modules/injection_points/sql/vacuum.sql src/test/modules/injection_points/t/001_stats.pl src/test/modules/ldap_password_func/.gitignore src/test/modules/ldap_password_func/Makefile src/test/modules/ldap_password_func/ldap_password_func.c src/test/modules/ldap_password_func/meson.build src/test/modules/ldap_password_func/t/001_mutated_bindpasswd.pl src/test/modules/libpq_pipeline/.gitignore src/test/modules/libpq_pipeline/Makefile src/test/modules/libpq_pipeline/README src/test/modules/libpq_pipeline/libpq_pipeline.c src/test/modules/libpq_pipeline/meson.build src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl src/test/modules/libpq_pipeline/traces/disallowed_in_pipeline.trace src/test/modules/libpq_pipeline/traces/multi_pipelines.trace src/test/modules/libpq_pipeline/traces/nosync.trace src/test/modules/libpq_pipeline/traces/pipeline_abort.trace src/test/modules/libpq_pipeline/traces/pipeline_idle.trace src/test/modules/libpq_pipeline/traces/prepared.trace src/test/modules/libpq_pipeline/traces/simple_pipeline.trace src/test/modules/libpq_pipeline/traces/singlerow.trace src/test/modules/libpq_pipeline/traces/transaction.trace src/test/modules/meson.build src/test/modules/oauth_validator/.gitignore src/test/modules/oauth_validator/Makefile src/test/modules/oauth_validator/README src/test/modules/oauth_validator/fail_validator.c src/test/modules/oauth_validator/magic_validator.c src/test/modules/oauth_validator/meson.build src/test/modules/oauth_validator/oauth_hook_client.c src/test/modules/oauth_validator/t/001_server.pl src/test/modules/oauth_validator/t/002_client.pl src/test/modules/oauth_validator/t/OAuth/Server.pm src/test/modules/oauth_validator/t/oauth_server.py src/test/modules/oauth_validator/validator.c src/test/modules/plsample/.gitignore src/test/modules/plsample/Makefile src/test/modules/plsample/README src/test/modules/plsample/expected/plsample.out src/test/modules/plsample/meson.build src/test/modules/plsample/plsample--1.0.sql src/test/modules/plsample/plsample.c src/test/modules/plsample/plsample.control src/test/modules/plsample/sql/plsample.sql src/test/modules/spgist_name_ops/.gitignore src/test/modules/spgist_name_ops/Makefile src/test/modules/spgist_name_ops/README src/test/modules/spgist_name_ops/expected/spgist_name_ops.out src/test/modules/spgist_name_ops/meson.build src/test/modules/spgist_name_ops/spgist_name_ops--1.0.sql src/test/modules/spgist_name_ops/spgist_name_ops.c src/test/modules/spgist_name_ops/spgist_name_ops.control src/test/modules/spgist_name_ops/sql/spgist_name_ops.sql src/test/modules/ssl_passphrase_callback/.gitignore src/test/modules/ssl_passphrase_callback/Makefile src/test/modules/ssl_passphrase_callback/meson.build src/test/modules/ssl_passphrase_callback/server.crt src/test/modules/ssl_passphrase_callback/server.key src/test/modules/ssl_passphrase_callback/ssl_passphrase_func.c src/test/modules/ssl_passphrase_callback/t/001_testfunc.pl src/test/modules/test_aio/.gitignore src/test/modules/test_aio/Makefile src/test/modules/test_aio/meson.build src/test/modules/test_aio/t/001_aio.pl src/test/modules/test_aio/t/002_io_workers.pl src/test/modules/test_aio/test_aio--1.0.sql src/test/modules/test_aio/test_aio.c src/test/modules/test_aio/test_aio.control src/test/modules/test_bloomfilter/.gitignore src/test/modules/test_bloomfilter/Makefile src/test/modules/test_bloomfilter/README src/test/modules/test_bloomfilter/expected/test_bloomfilter.out src/test/modules/test_bloomfilter/meson.build src/test/modules/test_bloomfilter/sql/test_bloomfilter.sql src/test/modules/test_bloomfilter/test_bloomfilter--1.0.sql src/test/modules/test_bloomfilter/test_bloomfilter.c src/test/modules/test_bloomfilter/test_bloomfilter.control src/test/modules/test_cloexec/.gitignore src/test/modules/test_cloexec/Makefile src/test/modules/test_cloexec/meson.build src/test/modules/test_cloexec/t/001_cloexec.pl src/test/modules/test_cloexec/test_cloexec.c src/test/modules/test_copy_callbacks/.gitignore src/test/modules/test_copy_callbacks/Makefile src/test/modules/test_copy_callbacks/expected/test_copy_callbacks.out src/test/modules/test_copy_callbacks/meson.build src/test/modules/test_copy_callbacks/sql/test_copy_callbacks.sql src/test/modules/test_copy_callbacks/test_copy_callbacks--1.0.sql src/test/modules/test_copy_callbacks/test_copy_callbacks.c src/test/modules/test_copy_callbacks/test_copy_callbacks.control src/test/modules/test_custom_rmgrs/.gitignore src/test/modules/test_custom_rmgrs/Makefile src/test/modules/test_custom_rmgrs/meson.build src/test/modules/test_custom_rmgrs/t/001_basic.pl src/test/modules/test_custom_rmgrs/test_custom_rmgrs--1.0.sql src/test/modules/test_custom_rmgrs/test_custom_rmgrs.c src/test/modules/test_custom_rmgrs/test_custom_rmgrs.control src/test/modules/test_ddl_deparse/.gitignore src/test/modules/test_ddl_deparse/Makefile src/test/modules/test_ddl_deparse/README src/test/modules/test_ddl_deparse/expected/alter_extension.out src/test/modules/test_ddl_deparse/expected/alter_function.out src/test/modules/test_ddl_deparse/expected/alter_sequence.out src/test/modules/test_ddl_deparse/expected/alter_table.out src/test/modules/test_ddl_deparse/expected/alter_ts_config.out src/test/modules/test_ddl_deparse/expected/alter_type_enum.out src/test/modules/test_ddl_deparse/expected/comment_on.out src/test/modules/test_ddl_deparse/expected/create_conversion.out src/test/modules/test_ddl_deparse/expected/create_domain.out src/test/modules/test_ddl_deparse/expected/create_extension.out src/test/modules/test_ddl_deparse/expected/create_function.out src/test/modules/test_ddl_deparse/expected/create_operator.out src/test/modules/test_ddl_deparse/expected/create_rule.out src/test/modules/test_ddl_deparse/expected/create_schema.out src/test/modules/test_ddl_deparse/expected/create_sequence_1.out src/test/modules/test_ddl_deparse/expected/create_table.out src/test/modules/test_ddl_deparse/expected/create_transform.out src/test/modules/test_ddl_deparse/expected/create_trigger.out src/test/modules/test_ddl_deparse/expected/create_type.out src/test/modules/test_ddl_deparse/expected/create_view.out src/test/modules/test_ddl_deparse/expected/defprivs.out src/test/modules/test_ddl_deparse/expected/matviews.out src/test/modules/test_ddl_deparse/expected/opfamily.out src/test/modules/test_ddl_deparse/expected/test_ddl_deparse.out src/test/modules/test_ddl_deparse/meson.build src/test/modules/test_ddl_deparse/sql/alter_function.sql src/test/modules/test_ddl_deparse/sql/alter_sequence.sql src/test/modules/test_ddl_deparse/sql/alter_table.sql src/test/modules/test_ddl_deparse/sql/alter_ts_config.sql src/test/modules/test_ddl_deparse/sql/alter_type_enum.sql src/test/modules/test_ddl_deparse/sql/comment_on.sql src/test/modules/test_ddl_deparse/sql/create_conversion.sql src/test/modules/test_ddl_deparse/sql/create_domain.sql src/test/modules/test_ddl_deparse/sql/create_extension.sql src/test/modules/test_ddl_deparse/sql/create_rule.sql src/test/modules/test_ddl_deparse/sql/create_schema.sql src/test/modules/test_ddl_deparse/sql/create_sequence_1.sql src/test/modules/test_ddl_deparse/sql/create_table.sql src/test/modules/test_ddl_deparse/sql/create_transform.sql src/test/modules/test_ddl_deparse/sql/create_trigger.sql src/test/modules/test_ddl_deparse/sql/create_type.sql src/test/modules/test_ddl_deparse/sql/create_view.sql src/test/modules/test_ddl_deparse/sql/defprivs.sql src/test/modules/test_ddl_deparse/sql/matviews.sql src/test/modules/test_ddl_deparse/sql/opfamily.sql src/test/modules/test_ddl_deparse/sql/test_ddl_deparse.sql src/test/modules/test_ddl_deparse/test_ddl_deparse--1.0.sql src/test/modules/test_ddl_deparse/test_ddl_deparse.c src/test/modules/test_ddl_deparse/test_ddl_deparse.control src/test/modules/test_dsa/.gitignore src/test/modules/test_dsa/Makefile src/test/modules/test_dsa/expected/test_dsa.out src/test/modules/test_dsa/meson.build src/test/modules/test_dsa/sql/test_dsa.sql src/test/modules/test_dsa/test_dsa--1.0.sql src/test/modules/test_dsa/test_dsa.c src/test/modules/test_dsa/test_dsa.control src/test/modules/test_dsm_registry/.gitignore src/test/modules/test_dsm_registry/Makefile src/test/modules/test_dsm_registry/expected/test_dsm_registry.out src/test/modules/test_dsm_registry/meson.build src/test/modules/test_dsm_registry/sql/test_dsm_registry.sql src/test/modules/test_dsm_registry/test_dsm_registry--1.0.sql src/test/modules/test_dsm_registry/test_dsm_registry.c src/test/modules/test_dsm_registry/test_dsm_registry.control src/test/modules/test_escape/.gitignore src/test/modules/test_escape/Makefile src/test/modules/test_escape/meson.build src/test/modules/test_escape/t/001_test_escape.pl src/test/modules/test_escape/test_escape.c src/test/modules/test_extensions/.gitignore src/test/modules/test_extensions/Makefile src/test/modules/test_extensions/expected/test_extdepend.out src/test/modules/test_extensions/expected/test_extensions.out src/test/modules/test_extensions/meson.build src/test/modules/test_extensions/sql/test_extdepend.sql src/test/modules/test_extensions/sql/test_extensions.sql src/test/modules/test_extensions/t/001_extension_control_path.pl src/test/modules/test_extensions/test_ext1--1.0.sql src/test/modules/test_extensions/test_ext1.control src/test/modules/test_extensions/test_ext2--1.0.sql src/test/modules/test_extensions/test_ext2.control src/test/modules/test_extensions/test_ext3--1.0.sql src/test/modules/test_extensions/test_ext3.control src/test/modules/test_extensions/test_ext4--1.0.sql src/test/modules/test_extensions/test_ext4.control src/test/modules/test_extensions/test_ext5--1.0.sql src/test/modules/test_extensions/test_ext5.control src/test/modules/test_extensions/test_ext6--1.0.sql src/test/modules/test_extensions/test_ext6.control src/test/modules/test_extensions/test_ext7--1.0--2.0.sql src/test/modules/test_extensions/test_ext7--1.0.sql src/test/modules/test_extensions/test_ext7--2.0--2.1bad.sql src/test/modules/test_extensions/test_ext7--2.0--2.2bad.sql src/test/modules/test_extensions/test_ext7.control src/test/modules/test_extensions/test_ext8--1.0.sql src/test/modules/test_extensions/test_ext8.control src/test/modules/test_extensions/test_ext9--1.0.sql src/test/modules/test_extensions/test_ext9.control src/test/modules/test_extensions/test_ext_cine--1.0--1.1.sql src/test/modules/test_extensions/test_ext_cine--1.0.sql src/test/modules/test_extensions/test_ext_cine.control src/test/modules/test_extensions/test_ext_cor--1.0.sql src/test/modules/test_extensions/test_ext_cor.control src/test/modules/test_extensions/test_ext_cyclic1--1.0.sql src/test/modules/test_extensions/test_ext_cyclic1.control src/test/modules/test_extensions/test_ext_cyclic2--1.0.sql src/test/modules/test_extensions/test_ext_cyclic2.control src/test/modules/test_extensions/test_ext_evttrig--1.0--2.0.sql src/test/modules/test_extensions/test_ext_evttrig--1.0.sql src/test/modules/test_extensions/test_ext_evttrig.control src/test/modules/test_extensions/test_ext_extschema--1.0.sql src/test/modules/test_extensions/test_ext_extschema.control src/test/modules/test_extensions/test_ext_req_schema1--1.0.sql src/test/modules/test_extensions/test_ext_req_schema1.control src/test/modules/test_extensions/test_ext_req_schema2--1.0.sql src/test/modules/test_extensions/test_ext_req_schema2.control src/test/modules/test_extensions/test_ext_req_schema3--1.0.sql src/test/modules/test_extensions/test_ext_req_schema3.control src/test/modules/test_extensions/test_ext_set_schema--1.0.sql src/test/modules/test_extensions/test_ext_set_schema.control src/test/modules/test_ginpostinglist/.gitignore src/test/modules/test_ginpostinglist/Makefile src/test/modules/test_ginpostinglist/README src/test/modules/test_ginpostinglist/expected/test_ginpostinglist.out src/test/modules/test_ginpostinglist/meson.build src/test/modules/test_ginpostinglist/sql/test_ginpostinglist.sql src/test/modules/test_ginpostinglist/test_ginpostinglist--1.0.sql src/test/modules/test_ginpostinglist/test_ginpostinglist.c src/test/modules/test_ginpostinglist/test_ginpostinglist.control src/test/modules/test_integerset/.gitignore src/test/modules/test_integerset/Makefile src/test/modules/test_integerset/README src/test/modules/test_integerset/expected/test_integerset.out src/test/modules/test_integerset/meson.build src/test/modules/test_integerset/sql/test_integerset.sql src/test/modules/test_integerset/test_integerset--1.0.sql src/test/modules/test_integerset/test_integerset.c src/test/modules/test_integerset/test_integerset.control src/test/modules/test_json_parser/.gitignore src/test/modules/test_json_parser/Makefile src/test/modules/test_json_parser/README src/test/modules/test_json_parser/meson.build src/test/modules/test_json_parser/t/001_test_json_parser_incremental.pl src/test/modules/test_json_parser/t/002_inline.pl src/test/modules/test_json_parser/t/003_test_semantic.pl src/test/modules/test_json_parser/t/004_test_parser_perf.pl src/test/modules/test_json_parser/test_json_parser_incremental.c src/test/modules/test_json_parser/test_json_parser_perf.c src/test/modules/test_json_parser/tiny.json src/test/modules/test_json_parser/tiny.out src/test/modules/test_lfind/.gitignore src/test/modules/test_lfind/Makefile src/test/modules/test_lfind/expected/test_lfind.out src/test/modules/test_lfind/meson.build src/test/modules/test_lfind/sql/test_lfind.sql src/test/modules/test_lfind/test_lfind--1.0.sql src/test/modules/test_lfind/test_lfind.c src/test/modules/test_lfind/test_lfind.control src/test/modules/test_misc/.gitignore src/test/modules/test_misc/Makefile src/test/modules/test_misc/README src/test/modules/test_misc/meson.build src/test/modules/test_misc/t/001_constraint_validation.pl src/test/modules/test_misc/t/002_tablespace.pl src/test/modules/test_misc/t/003_check_guc.pl src/test/modules/test_misc/t/004_io_direct.pl src/test/modules/test_misc/t/005_timeouts.pl src/test/modules/test_misc/t/006_signal_autovacuum.pl src/test/modules/test_misc/t/007_catcache_inval.pl src/test/modules/test_misc/t/008_replslot_single_user.pl src/test/modules/test_oat_hooks/.gitignore src/test/modules/test_oat_hooks/Makefile src/test/modules/test_oat_hooks/README src/test/modules/test_oat_hooks/expected/alter_table.out src/test/modules/test_oat_hooks/expected/test_oat_hooks.out src/test/modules/test_oat_hooks/meson.build src/test/modules/test_oat_hooks/sql/alter_table.sql src/test/modules/test_oat_hooks/sql/test_oat_hooks.sql src/test/modules/test_oat_hooks/test_oat_hooks.c src/test/modules/test_parser/.gitignore src/test/modules/test_parser/Makefile src/test/modules/test_parser/README src/test/modules/test_parser/expected/test_parser.out src/test/modules/test_parser/meson.build src/test/modules/test_parser/sql/test_parser.sql src/test/modules/test_parser/test_parser--1.0.sql src/test/modules/test_parser/test_parser.c src/test/modules/test_parser/test_parser.control src/test/modules/test_pg_dump/.gitignore src/test/modules/test_pg_dump/Makefile src/test/modules/test_pg_dump/README src/test/modules/test_pg_dump/expected/test_pg_dump.out src/test/modules/test_pg_dump/meson.build src/test/modules/test_pg_dump/sql/test_pg_dump.sql src/test/modules/test_pg_dump/t/001_base.pl src/test/modules/test_pg_dump/test_pg_dump--1.0.sql src/test/modules/test_pg_dump/test_pg_dump.control src/test/modules/test_predtest/.gitignore src/test/modules/test_predtest/Makefile src/test/modules/test_predtest/README src/test/modules/test_predtest/expected/test_predtest.out src/test/modules/test_predtest/meson.build src/test/modules/test_predtest/sql/test_predtest.sql src/test/modules/test_predtest/test_predtest--1.0.sql src/test/modules/test_predtest/test_predtest.c src/test/modules/test_predtest/test_predtest.control src/test/modules/test_radixtree/.gitignore src/test/modules/test_radixtree/Makefile src/test/modules/test_radixtree/expected/test_radixtree.out src/test/modules/test_radixtree/meson.build src/test/modules/test_radixtree/sql/test_radixtree.sql src/test/modules/test_radixtree/test_radixtree--1.0.sql src/test/modules/test_radixtree/test_radixtree.c src/test/modules/test_radixtree/test_radixtree.control src/test/modules/test_rbtree/.gitignore src/test/modules/test_rbtree/Makefile src/test/modules/test_rbtree/README src/test/modules/test_rbtree/expected/test_rbtree.out src/test/modules/test_rbtree/meson.build src/test/modules/test_rbtree/sql/test_rbtree.sql src/test/modules/test_rbtree/test_rbtree--1.0.sql src/test/modules/test_rbtree/test_rbtree.c src/test/modules/test_rbtree/test_rbtree.control src/test/modules/test_regex/.gitignore src/test/modules/test_regex/Makefile src/test/modules/test_regex/README src/test/modules/test_regex/expected/test_regex.out src/test/modules/test_regex/expected/test_regex_utf8.out src/test/modules/test_regex/expected/test_regex_utf8_1.out src/test/modules/test_regex/meson.build src/test/modules/test_regex/sql/test_regex.sql src/test/modules/test_regex/sql/test_regex_utf8.sql src/test/modules/test_regex/test_regex--1.0.sql src/test/modules/test_regex/test_regex.c src/test/modules/test_regex/test_regex.control src/test/modules/test_resowner/.gitignore src/test/modules/test_resowner/Makefile src/test/modules/test_resowner/expected/test_resowner.out src/test/modules/test_resowner/meson.build src/test/modules/test_resowner/sql/test_resowner.sql src/test/modules/test_resowner/test_resowner--1.0.sql src/test/modules/test_resowner/test_resowner.control src/test/modules/test_resowner/test_resowner_basic.c src/test/modules/test_resowner/test_resowner_many.c src/test/modules/test_rls_hooks/.gitignore src/test/modules/test_rls_hooks/Makefile src/test/modules/test_rls_hooks/README src/test/modules/test_rls_hooks/expected/test_rls_hooks.out src/test/modules/test_rls_hooks/meson.build src/test/modules/test_rls_hooks/sql/test_rls_hooks.sql src/test/modules/test_rls_hooks/test_rls_hooks.c src/test/modules/test_rls_hooks/test_rls_hooks.h src/test/modules/test_shm_mq/.gitignore src/test/modules/test_shm_mq/Makefile src/test/modules/test_shm_mq/README src/test/modules/test_shm_mq/expected/test_shm_mq.out src/test/modules/test_shm_mq/meson.build src/test/modules/test_shm_mq/setup.c src/test/modules/test_shm_mq/sql/test_shm_mq.sql src/test/modules/test_shm_mq/test.c src/test/modules/test_shm_mq/test_shm_mq--1.0.sql src/test/modules/test_shm_mq/test_shm_mq.control src/test/modules/test_shm_mq/test_shm_mq.h src/test/modules/test_shm_mq/worker.c src/test/modules/test_slru/.gitignore src/test/modules/test_slru/Makefile src/test/modules/test_slru/expected/test_slru.out src/test/modules/test_slru/meson.build src/test/modules/test_slru/sql/test_slru.sql src/test/modules/test_slru/t/001_multixact.pl src/test/modules/test_slru/test_multixact.c src/test/modules/test_slru/test_slru--1.0.sql src/test/modules/test_slru/test_slru.c src/test/modules/test_slru/test_slru.conf src/test/modules/test_slru/test_slru.control src/test/modules/test_tidstore/.gitignore src/test/modules/test_tidstore/Makefile src/test/modules/test_tidstore/expected/test_tidstore.out src/test/modules/test_tidstore/meson.build src/test/modules/test_tidstore/sql/test_tidstore.sql src/test/modules/test_tidstore/test_tidstore--1.0.sql src/test/modules/test_tidstore/test_tidstore.c src/test/modules/test_tidstore/test_tidstore.control src/test/modules/typcache/.gitignore src/test/modules/typcache/Makefile src/test/modules/typcache/expected/typcache_rel_type_cache.out src/test/modules/typcache/meson.build src/test/modules/typcache/sql/typcache_rel_type_cache.sql src/test/modules/unsafe_tests/.gitignore src/test/modules/unsafe_tests/Makefile src/test/modules/unsafe_tests/README src/test/modules/unsafe_tests/expected/alter_system_table.out src/test/modules/unsafe_tests/expected/guc_privs.out src/test/modules/unsafe_tests/expected/rolenames.out src/test/modules/unsafe_tests/expected/setconfig.out src/test/modules/unsafe_tests/meson.build src/test/modules/unsafe_tests/sql/alter_system_table.sql src/test/modules/unsafe_tests/sql/guc_privs.sql src/test/modules/unsafe_tests/sql/rolenames.sql src/test/modules/unsafe_tests/sql/setconfig.sql src/test/modules/worker_spi/.gitignore src/test/modules/worker_spi/Makefile src/test/modules/worker_spi/meson.build src/test/modules/worker_spi/t/001_worker_spi.pl src/test/modules/worker_spi/worker_spi--1.0.sql src/test/modules/worker_spi/worker_spi.c src/test/modules/worker_spi/worker_spi.control src/test/modules/xid_wraparound/.gitignore src/test/modules/xid_wraparound/Makefile src/test/modules/xid_wraparound/README src/test/modules/xid_wraparound/meson.build src/test/modules/xid_wraparound/t/001_emergency_vacuum.pl src/test/modules/xid_wraparound/t/002_limits.pl src/test/modules/xid_wraparound/t/003_wraparounds.pl src/test/modules/xid_wraparound/t/004_notify_freeze.pl src/test/modules/xid_wraparound/xid_wraparound--1.0.sql src/test/modules/xid_wraparound/xid_wraparound.c src/test/modules/xid_wraparound/xid_wraparound.control src/test/perl/Makefile src/test/perl/PostgreSQL/Test/AdjustDump.pm src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm src/test/perl/PostgreSQL/Test/BackgroundPsql.pm src/test/perl/PostgreSQL/Test/Cluster.pm src/test/perl/PostgreSQL/Test/Kerberos.pm src/test/perl/PostgreSQL/Test/RecursiveCopy.pm src/test/perl/PostgreSQL/Test/SimpleTee.pm src/test/perl/PostgreSQL/Test/Utils.pm src/test/perl/PostgreSQL/Version.pm src/test/perl/README src/test/perl/meson.build src/test/postmaster/.gitignore src/test/postmaster/Makefile src/test/postmaster/README src/test/postmaster/meson.build src/test/postmaster/t/001_basic.pl src/test/postmaster/t/002_connection_limits.pl src/test/postmaster/t/003_start_stop.pl src/test/recovery/.gitignore src/test/recovery/Makefile src/test/recovery/README src/test/recovery/meson.build src/test/recovery/t/001_stream_rep.pl src/test/recovery/t/002_archiving.pl src/test/recovery/t/003_recovery_targets.pl src/test/recovery/t/004_timeline_switch.pl src/test/recovery/t/005_replay_delay.pl src/test/recovery/t/006_logical_decoding.pl src/test/recovery/t/007_sync_rep.pl src/test/recovery/t/008_fsm_truncation.pl src/test/recovery/t/009_twophase.pl src/test/recovery/t/010_logical_decoding_timelines.pl src/test/recovery/t/012_subtransactions.pl src/test/recovery/t/013_crash_restart.pl src/test/recovery/t/014_unlogged_reinit.pl src/test/recovery/t/015_promotion_pages.pl src/test/recovery/t/016_min_consistency.pl src/test/recovery/t/017_shm.pl src/test/recovery/t/018_wal_optimize.pl src/test/recovery/t/019_replslot_limit.pl src/test/recovery/t/020_archive_status.pl src/test/recovery/t/021_row_visibility.pl src/test/recovery/t/022_crash_temp_files.pl src/test/recovery/t/023_pitr_prepared_xact.pl src/test/recovery/t/024_archive_recovery.pl src/test/recovery/t/025_stuck_on_old_timeline.pl src/test/recovery/t/026_overwrite_contrecord.pl src/test/recovery/t/027_stream_regress.pl src/test/recovery/t/028_pitr_timelines.pl src/test/recovery/t/029_stats_restart.pl src/test/recovery/t/030_stats_cleanup_replica.pl src/test/recovery/t/031_recovery_conflict.pl src/test/recovery/t/032_relfilenode_reuse.pl src/test/recovery/t/033_replay_tsp_drops.pl src/test/recovery/t/034_create_database.pl src/test/recovery/t/035_standby_logical_decoding.pl src/test/recovery/t/036_truncated_dropped.pl src/test/recovery/t/037_invalid_database.pl src/test/recovery/t/038_save_logical_slots_shutdown.pl src/test/recovery/t/039_end_of_wal.pl src/test/recovery/t/040_standby_failover_slots_sync.pl src/test/recovery/t/041_checkpoint_at_promote.pl src/test/recovery/t/042_low_level_backup.pl src/test/recovery/t/043_no_contrecord_switch.pl src/test/recovery/t/044_invalidate_inactive_slots.pl src/test/recovery/t/045_archive_restartpoint.pl src/test/recovery/t/046_checkpoint_logical_slot.pl src/test/recovery/t/047_checkpoint_physical_slot.pl src/test/recovery/t/048_vacuum_horizon_floor.pl src/test/recovery/t/cp_history_files src/test/regress/.gitignore src/test/regress/GNUmakefile src/test/regress/Makefile src/test/regress/README src/test/regress/data/agg.data src/test/regress/data/array.data src/test/regress/data/constrf.data src/test/regress/data/constro.data src/test/regress/data/dept.data src/test/regress/data/desc.data src/test/regress/data/emp.data src/test/regress/data/hash.data src/test/regress/data/jsonb.data src/test/regress/data/onek.data src/test/regress/data/person.data src/test/regress/data/real_city.data src/test/regress/data/rect.data src/test/regress/data/streets.data src/test/regress/data/stud_emp.data src/test/regress/data/student.data src/test/regress/data/tenk.data src/test/regress/data/tsearch.data src/test/regress/expected/advisory_lock.out src/test/regress/expected/aggregates.out src/test/regress/expected/alter_generic.out src/test/regress/expected/alter_operator.out src/test/regress/expected/alter_table.out src/test/regress/expected/amutils.out src/test/regress/expected/arrays.out src/test/regress/expected/async.out src/test/regress/expected/bit.out src/test/regress/expected/bitmapops.out src/test/regress/expected/boolean.out src/test/regress/expected/box.out src/test/regress/expected/brin.out src/test/regress/expected/brin_bloom.out src/test/regress/expected/brin_multi.out src/test/regress/expected/btree_index.out src/test/regress/expected/case.out src/test/regress/expected/char.out src/test/regress/expected/char_1.out src/test/regress/expected/char_2.out src/test/regress/expected/circle.out src/test/regress/expected/cluster.out src/test/regress/expected/collate.icu.utf8.out src/test/regress/expected/collate.icu.utf8_1.out src/test/regress/expected/collate.linux.utf8.out src/test/regress/expected/collate.linux.utf8_1.out src/test/regress/expected/collate.out src/test/regress/expected/collate.utf8.out src/test/regress/expected/collate.utf8_1.out src/test/regress/expected/collate.windows.win1252.out src/test/regress/expected/collate.windows.win1252_1.out src/test/regress/expected/combocid.out src/test/regress/expected/comments.out src/test/regress/expected/compression.out src/test/regress/expected/compression_1.out src/test/regress/expected/constraints.out src/test/regress/expected/conversion.out src/test/regress/expected/copy.out src/test/regress/expected/copy2.out src/test/regress/expected/copydml.out src/test/regress/expected/copyencoding.out src/test/regress/expected/copyencoding_1.out src/test/regress/expected/copyselect.out src/test/regress/expected/create_aggregate.out src/test/regress/expected/create_am.out src/test/regress/expected/create_cast.out src/test/regress/expected/create_function_c.out src/test/regress/expected/create_function_sql.out src/test/regress/expected/create_index.out src/test/regress/expected/create_index_spgist.out src/test/regress/expected/create_misc.out src/test/regress/expected/create_operator.out src/test/regress/expected/create_procedure.out src/test/regress/expected/create_role.out src/test/regress/expected/create_schema.out src/test/regress/expected/create_table.out src/test/regress/expected/create_table_like.out src/test/regress/expected/create_type.out src/test/regress/expected/create_view.out src/test/regress/expected/database.out src/test/regress/expected/date.out src/test/regress/expected/dbms_describe.out src/test/regress/expected/dbsize.out src/test/regress/expected/delete.out src/test/regress/expected/dependency.out src/test/regress/expected/domain.out src/test/regress/expected/drop_if_exists.out src/test/regress/expected/drop_operator.out src/test/regress/expected/encoding.out src/test/regress/expected/encoding_1.out src/test/regress/expected/enum.out src/test/regress/expected/equivclass.out src/test/regress/expected/errors.out src/test/regress/expected/euc_kr.out src/test/regress/expected/euc_kr_1.out src/test/regress/expected/event_trigger.out src/test/regress/expected/event_trigger_login.out src/test/regress/expected/explain.out src/test/regress/expected/expressions.out src/test/regress/expected/fast_default.out src/test/regress/expected/float4-misrounded-input.out src/test/regress/expected/float4.out src/test/regress/expected/float8.out src/test/regress/expected/foreign_data.out src/test/regress/expected/foreign_key.out src/test/regress/expected/functional_deps.out src/test/regress/expected/generated_stored.out src/test/regress/expected/generated_virtual.out src/test/regress/expected/geometry.out src/test/regress/expected/gin.out src/test/regress/expected/gist.out src/test/regress/expected/groupingsets.out src/test/regress/expected/guc.out src/test/regress/expected/hash_func.out src/test/regress/expected/hash_index.out src/test/regress/expected/hash_part.out src/test/regress/expected/horology.out src/test/regress/expected/identity.out src/test/regress/expected/incremental_sort.out src/test/regress/expected/index_including.out src/test/regress/expected/index_including_gist.out src/test/regress/expected/indexing.out src/test/regress/expected/indirect_toast.out src/test/regress/expected/inet.out src/test/regress/expected/infinite_recurse.out src/test/regress/expected/infinite_recurse_1.out src/test/regress/expected/inherit.out src/test/regress/expected/init_privs.out src/test/regress/expected/insert.out src/test/regress/expected/insert_conflict.out src/test/regress/expected/int2.out src/test/regress/expected/int4.out src/test/regress/expected/int8.out src/test/regress/expected/interval.out src/test/regress/expected/join.out src/test/regress/expected/join_hash.out src/test/regress/expected/json.out src/test/regress/expected/json_encoding.out src/test/regress/expected/json_encoding_1.out src/test/regress/expected/json_encoding_2.out src/test/regress/expected/jsonb.out src/test/regress/expected/jsonb_jsonpath.out src/test/regress/expected/jsonpath.out src/test/regress/expected/jsonpath_encoding.out src/test/regress/expected/jsonpath_encoding_1.out src/test/regress/expected/jsonpath_encoding_2.out src/test/regress/expected/largeobject.out src/test/regress/expected/largeobject_1.out src/test/regress/expected/limit.out src/test/regress/expected/line.out src/test/regress/expected/lock.out src/test/regress/expected/lseg.out src/test/regress/expected/macaddr.out src/test/regress/expected/macaddr8.out src/test/regress/expected/maintain_every.out src/test/regress/expected/matview.out src/test/regress/expected/md5.out src/test/regress/expected/md5_1.out src/test/regress/expected/md5_2.out src/test/regress/expected/memoize.out src/test/regress/expected/merge.out src/test/regress/expected/misc.out src/test/regress/expected/misc_functions.out src/test/regress/expected/misc_sanity.out src/test/regress/expected/money.out src/test/regress/expected/multirangetypes.out src/test/regress/expected/mvcc.out src/test/regress/expected/name.out src/test/regress/expected/namespace.out src/test/regress/expected/numa.out src/test/regress/expected/numa_1.out src/test/regress/expected/numeric.out src/test/regress/expected/numeric_big.out src/test/regress/expected/numerology.out src/test/regress/expected/object_address.out src/test/regress/expected/oid.out src/test/regress/expected/oidjoins.out src/test/regress/expected/opr_sanity.out src/test/regress/expected/partition_aggregate.out src/test/regress/expected/partition_info.out src/test/regress/expected/partition_join.out src/test/regress/expected/partition_prune.out src/test/regress/expected/password.out src/test/regress/expected/password_1.out src/test/regress/expected/password_2.out src/test/regress/expected/path.out src/test/regress/expected/pg_lsn.out src/test/regress/expected/plancache.out src/test/regress/expected/plpgsql.out src/test/regress/expected/point.out src/test/regress/expected/polygon.out src/test/regress/expected/polymorphism.out src/test/regress/expected/portals.out src/test/regress/expected/portals_p2.out src/test/regress/expected/predicate.out src/test/regress/expected/prepare.out src/test/regress/expected/prepared_xacts.out src/test/regress/expected/prepared_xacts_1.out src/test/regress/expected/privileges.out src/test/regress/expected/psql.out src/test/regress/expected/psql_crosstab.out src/test/regress/expected/psql_pipeline.out src/test/regress/expected/publication.out src/test/regress/expected/random.out src/test/regress/expected/rangefuncs.out src/test/regress/expected/rangetypes.out src/test/regress/expected/regex.out src/test/regress/expected/regproc.out src/test/regress/expected/reindex_catalog.out src/test/regress/expected/reloptions.out src/test/regress/expected/replica_identity.out src/test/regress/expected/returning.out src/test/regress/expected/roleattributes.out src/test/regress/expected/rowsecurity.out src/test/regress/expected/rowtypes.out src/test/regress/expected/rules.out src/test/regress/expected/sanity_check.out src/test/regress/expected/security_label.out src/test/regress/expected/select.out src/test/regress/expected/select_distinct.out src/test/regress/expected/select_distinct_on.out src/test/regress/expected/select_having.out src/test/regress/expected/select_having_1.out src/test/regress/expected/select_having_2.out src/test/regress/expected/select_implicit.out src/test/regress/expected/select_implicit_1.out src/test/regress/expected/select_implicit_2.out src/test/regress/expected/select_into.out src/test/regress/expected/select_parallel.out src/test/regress/expected/select_views.out src/test/regress/expected/sequence.out src/test/regress/expected/spgist.out src/test/regress/expected/sqljson.out src/test/regress/expected/sqljson_jsontable.out src/test/regress/expected/sqljson_queryfuncs.out src/test/regress/expected/stats.out src/test/regress/expected/stats_ext.out src/test/regress/expected/stats_import.out src/test/regress/expected/strings.out src/test/regress/expected/subscription.out src/test/regress/expected/subselect.out src/test/regress/expected/sysviews.out src/test/regress/expected/tablesample.out src/test/regress/expected/tablespace.out src/test/regress/expected/temp.out src/test/regress/expected/test_setup.out src/test/regress/expected/text.out src/test/regress/expected/tid.out src/test/regress/expected/tidrangescan.out src/test/regress/expected/tidscan.out src/test/regress/expected/time.out src/test/regress/expected/timestamp.out src/test/regress/expected/timestamptz.out src/test/regress/expected/timetz.out src/test/regress/expected/transactions.out src/test/regress/expected/triggers.out src/test/regress/expected/truncate.out src/test/regress/expected/tsdicts.out src/test/regress/expected/tsearch.out src/test/regress/expected/tsrf.out src/test/regress/expected/tstypes.out src/test/regress/expected/tuplesort.out src/test/regress/expected/txid.out src/test/regress/expected/type_sanity.out src/test/regress/expected/typed_table.out src/test/regress/expected/unicode.out src/test/regress/expected/unicode_1.out src/test/regress/expected/union.out src/test/regress/expected/updatable_views.out src/test/regress/expected/update.out src/test/regress/expected/utl_compress.out src/test/regress/expected/utl_compress1.out src/test/regress/expected/utl_file.out src/test/regress/expected/utl_http.out src/test/regress/expected/utl_raw.out src/test/regress/expected/utl_ref.out src/test/regress/expected/uuid.out src/test/regress/expected/vacuum.out src/test/regress/expected/vacuum_parallel.out src/test/regress/expected/varchar.out src/test/regress/expected/varchar_1.out src/test/regress/expected/varchar_2.out src/test/regress/expected/window.out src/test/regress/expected/with.out src/test/regress/expected/without_overlaps.out src/test/regress/expected/write_parallel.out src/test/regress/expected/xid.out src/test/regress/expected/xml.out src/test/regress/expected/xml_1.out src/test/regress/expected/xml_2.out src/test/regress/expected/xmlmap.out src/test/regress/expected/xmlmap_1.out src/test/regress/meson.build src/test/regress/parallel_schedule src/test/regress/pg_regress.c src/test/regress/pg_regress.h src/test/regress/pg_regress_main.c src/test/regress/regress.c src/test/regress/regressplans.sh src/test/regress/resultmap src/test/regress/sql/advisory_lock.sql src/test/regress/sql/aggregates.sql src/test/regress/sql/alter_generic.sql src/test/regress/sql/alter_operator.sql src/test/regress/sql/alter_table.sql src/test/regress/sql/amutils.sql src/test/regress/sql/arrays.sql src/test/regress/sql/async.sql src/test/regress/sql/bit.sql src/test/regress/sql/bitmapops.sql src/test/regress/sql/boolean.sql src/test/regress/sql/box.sql src/test/regress/sql/brin.sql src/test/regress/sql/brin_bloom.sql src/test/regress/sql/brin_multi.sql src/test/regress/sql/btree_index.sql src/test/regress/sql/case.sql src/test/regress/sql/char.sql src/test/regress/sql/circle.sql src/test/regress/sql/cluster.sql src/test/regress/sql/collate.icu.utf8.sql src/test/regress/sql/collate.linux.utf8.sql src/test/regress/sql/collate.sql src/test/regress/sql/collate.utf8.sql src/test/regress/sql/collate.windows.win1252.sql src/test/regress/sql/combocid.sql src/test/regress/sql/comments.sql src/test/regress/sql/compression.sql src/test/regress/sql/constraints.sql src/test/regress/sql/conversion.sql src/test/regress/sql/copy.sql src/test/regress/sql/copy2.sql src/test/regress/sql/copydml.sql src/test/regress/sql/copyencoding.sql src/test/regress/sql/copyselect.sql src/test/regress/sql/create_aggregate.sql src/test/regress/sql/create_am.sql src/test/regress/sql/create_cast.sql src/test/regress/sql/create_function_c.sql src/test/regress/sql/create_function_sql.sql src/test/regress/sql/create_index.sql src/test/regress/sql/create_index_spgist.sql src/test/regress/sql/create_misc.sql src/test/regress/sql/create_operator.sql src/test/regress/sql/create_procedure.sql src/test/regress/sql/create_role.sql src/test/regress/sql/create_schema.sql src/test/regress/sql/create_table.sql src/test/regress/sql/create_table_like.sql src/test/regress/sql/create_type.sql src/test/regress/sql/create_view.sql src/test/regress/sql/database.sql src/test/regress/sql/date.sql src/test/regress/sql/dbms_describe.sql src/test/regress/sql/dbsize.sql src/test/regress/sql/delete.sql src/test/regress/sql/dependency.sql src/test/regress/sql/domain.sql src/test/regress/sql/drop_if_exists.sql src/test/regress/sql/drop_operator.sql src/test/regress/sql/encoding.sql src/test/regress/sql/enum.sql src/test/regress/sql/equivclass.sql src/test/regress/sql/errors.sql src/test/regress/sql/euc_kr.sql src/test/regress/sql/event_trigger.sql src/test/regress/sql/event_trigger_login.sql src/test/regress/sql/explain.sql src/test/regress/sql/expressions.sql src/test/regress/sql/fast_default.sql src/test/regress/sql/float4.sql src/test/regress/sql/float8.sql src/test/regress/sql/foreign_data.sql src/test/regress/sql/foreign_key.sql src/test/regress/sql/functional_deps.sql src/test/regress/sql/generated_stored.sql src/test/regress/sql/generated_virtual.sql src/test/regress/sql/geometry.sql src/test/regress/sql/gin.sql src/test/regress/sql/gist.sql src/test/regress/sql/groupingsets.sql src/test/regress/sql/guc.sql src/test/regress/sql/hash_func.sql src/test/regress/sql/hash_index.sql src/test/regress/sql/hash_part.sql src/test/regress/sql/horology.sql src/test/regress/sql/identity.sql src/test/regress/sql/incremental_sort.sql src/test/regress/sql/index_including.sql src/test/regress/sql/index_including_gist.sql src/test/regress/sql/indexing.sql src/test/regress/sql/indirect_toast.sql src/test/regress/sql/inet.sql src/test/regress/sql/infinite_recurse.sql src/test/regress/sql/inherit.sql src/test/regress/sql/init_privs.sql src/test/regress/sql/insert.sql src/test/regress/sql/insert_conflict.sql src/test/regress/sql/int2.sql src/test/regress/sql/int4.sql src/test/regress/sql/int8.sql src/test/regress/sql/interval.sql src/test/regress/sql/join.sql src/test/regress/sql/join_hash.sql src/test/regress/sql/json.sql src/test/regress/sql/json_encoding.sql src/test/regress/sql/jsonb.sql src/test/regress/sql/jsonb_jsonpath.sql src/test/regress/sql/jsonpath.sql src/test/regress/sql/jsonpath_encoding.sql src/test/regress/sql/largeobject.sql src/test/regress/sql/limit.sql src/test/regress/sql/line.sql src/test/regress/sql/lock.sql src/test/regress/sql/lseg.sql src/test/regress/sql/macaddr.sql src/test/regress/sql/macaddr8.sql src/test/regress/sql/maintain_every.sql src/test/regress/sql/matview.sql src/test/regress/sql/md5.sql src/test/regress/sql/memoize.sql src/test/regress/sql/merge.sql src/test/regress/sql/misc.sql src/test/regress/sql/misc_functions.sql src/test/regress/sql/misc_sanity.sql src/test/regress/sql/money.sql src/test/regress/sql/multirangetypes.sql src/test/regress/sql/mvcc.sql src/test/regress/sql/name.sql src/test/regress/sql/namespace.sql src/test/regress/sql/numa.sql src/test/regress/sql/numeric.sql src/test/regress/sql/numeric_big.sql src/test/regress/sql/numerology.sql src/test/regress/sql/object_address.sql src/test/regress/sql/oid.sql src/test/regress/sql/oidjoins.sql src/test/regress/sql/opr_sanity.sql src/test/regress/sql/partition_aggregate.sql src/test/regress/sql/partition_info.sql src/test/regress/sql/partition_join.sql src/test/regress/sql/partition_prune.sql src/test/regress/sql/password.sql src/test/regress/sql/path.sql src/test/regress/sql/pg_lsn.sql src/test/regress/sql/plancache.sql src/test/regress/sql/plpgsql.sql src/test/regress/sql/point.sql src/test/regress/sql/polygon.sql src/test/regress/sql/polymorphism.sql src/test/regress/sql/portals.sql src/test/regress/sql/portals_p2.sql src/test/regress/sql/predicate.sql src/test/regress/sql/prepare.sql src/test/regress/sql/prepared_xacts.sql src/test/regress/sql/privileges.sql src/test/regress/sql/psql.sql src/test/regress/sql/psql_crosstab.sql src/test/regress/sql/psql_pipeline.sql src/test/regress/sql/publication.sql src/test/regress/sql/random.sql src/test/regress/sql/rangefuncs.sql src/test/regress/sql/rangetypes.sql src/test/regress/sql/regex.sql src/test/regress/sql/regproc.sql src/test/regress/sql/reindex_catalog.sql src/test/regress/sql/reloptions.sql src/test/regress/sql/replica_identity.sql src/test/regress/sql/returning.sql src/test/regress/sql/roleattributes.sql src/test/regress/sql/rowsecurity.sql src/test/regress/sql/rowtypes.sql src/test/regress/sql/rules.sql src/test/regress/sql/sanity_check.sql src/test/regress/sql/security_label.sql src/test/regress/sql/select.sql src/test/regress/sql/select_distinct.sql src/test/regress/sql/select_distinct_on.sql src/test/regress/sql/select_having.sql src/test/regress/sql/select_implicit.sql src/test/regress/sql/select_into.sql src/test/regress/sql/select_parallel.sql src/test/regress/sql/select_views.sql src/test/regress/sql/sequence.sql src/test/regress/sql/spgist.sql src/test/regress/sql/sqljson.sql src/test/regress/sql/sqljson_jsontable.sql src/test/regress/sql/sqljson_queryfuncs.sql src/test/regress/sql/stats.sql src/test/regress/sql/stats_ext.sql src/test/regress/sql/stats_import.sql src/test/regress/sql/strings.sql src/test/regress/sql/subscription.sql src/test/regress/sql/subselect.sql src/test/regress/sql/sysviews.sql src/test/regress/sql/tablesample.sql src/test/regress/sql/tablespace.sql src/test/regress/sql/temp.sql src/test/regress/sql/test_setup.sql src/test/regress/sql/text.sql src/test/regress/sql/tid.sql src/test/regress/sql/tidrangescan.sql src/test/regress/sql/tidscan.sql src/test/regress/sql/time.sql src/test/regress/sql/timestamp.sql src/test/regress/sql/timestamptz.sql src/test/regress/sql/timetz.sql src/test/regress/sql/transactions.sql src/test/regress/sql/triggers.sql src/test/regress/sql/truncate.sql src/test/regress/sql/tsdicts.sql src/test/regress/sql/tsearch.sql src/test/regress/sql/tsrf.sql src/test/regress/sql/tstypes.sql src/test/regress/sql/tuplesort.sql src/test/regress/sql/txid.sql src/test/regress/sql/type_sanity.sql src/test/regress/sql/typed_table.sql src/test/regress/sql/unicode.sql src/test/regress/sql/union.sql src/test/regress/sql/updatable_views.sql src/test/regress/sql/update.sql src/test/regress/sql/utl_compress.sql src/test/regress/sql/utl_compress1.sql src/test/regress/sql/utl_file.sql src/test/regress/sql/utl_http.sql src/test/regress/sql/utl_mail.sql src/test/regress/sql/utl_raw.sql src/test/regress/sql/utl_ref.sql src/test/regress/sql/utl_smtp.sql src/test/regress/sql/utl_tcp.sql src/test/regress/sql/uuid.sql src/test/regress/sql/vacuum.sql src/test/regress/sql/vacuum_parallel.sql src/test/regress/sql/varchar.sql src/test/regress/sql/window.sql src/test/regress/sql/with.sql src/test/regress/sql/without_overlaps.sql src/test/regress/sql/write_parallel.sql src/test/regress/sql/xid.sql src/test/regress/sql/xml.sql src/test/regress/sql/xmlmap.sql src/test/ssl/.gitignore src/test/ssl/Makefile src/test/ssl/README src/test/ssl/conf/cas.config src/test/ssl/conf/client-dn.config src/test/ssl/conf/client-long.config src/test/ssl/conf/client-revoked-utf8.config src/test/ssl/conf/client-revoked.config src/test/ssl/conf/client.config src/test/ssl/conf/client_ca.config src/test/ssl/conf/client_ext.config src/test/ssl/conf/root_ca.config src/test/ssl/conf/server-cn-and-alt-names.config src/test/ssl/conf/server-cn-and-ip-alt-names.config src/test/ssl/conf/server-cn-only.config src/test/ssl/conf/server-ip-alt-names.config src/test/ssl/conf/server-ip-cn-and-alt-names.config src/test/ssl/conf/server-ip-cn-and-dns-alt-names.config src/test/ssl/conf/server-ip-cn-only.config src/test/ssl/conf/server-ip-in-dnsname.config src/test/ssl/conf/server-multiple-alt-names.config src/test/ssl/conf/server-no-names.config src/test/ssl/conf/server-revoked.config src/test/ssl/conf/server-rsapss.config src/test/ssl/conf/server-single-alt-name.config src/test/ssl/conf/server_ca.config src/test/ssl/meson.build src/test/ssl/ssl/.gitignore src/test/ssl/ssl/both-cas-1.crt src/test/ssl/ssl/both-cas-2.crt src/test/ssl/ssl/client+client_ca.crt src/test/ssl/ssl/client-crldir/9bb9e3c3.r0 src/test/ssl/ssl/client-der.key src/test/ssl/ssl/client-dn.crt src/test/ssl/ssl/client-dn.key src/test/ssl/ssl/client-encrypted-der.key src/test/ssl/ssl/client-encrypted-pem.key src/test/ssl/ssl/client-long.crt src/test/ssl/ssl/client-long.key src/test/ssl/ssl/client-revoked-utf8.crt src/test/ssl/ssl/client-revoked-utf8.key src/test/ssl/ssl/client-revoked.crt src/test/ssl/ssl/client-revoked.key src/test/ssl/ssl/client.crl src/test/ssl/ssl/client.crt src/test/ssl/ssl/client.key src/test/ssl/ssl/client_ca.crt src/test/ssl/ssl/client_ca.key src/test/ssl/ssl/client_ext.crt src/test/ssl/ssl/client_ext.key src/test/ssl/ssl/root+client-crldir/9bb9e3c3.r0 src/test/ssl/ssl/root+client-crldir/a3d11bff.r0 src/test/ssl/ssl/root+client.crl src/test/ssl/ssl/root+client_ca.crt src/test/ssl/ssl/root+server-crldir/a3d11bff.r0 src/test/ssl/ssl/root+server-crldir/a836cc2d.r0 src/test/ssl/ssl/root+server.crl src/test/ssl/ssl/root+server_ca.crt src/test/ssl/ssl/root.crl src/test/ssl/ssl/root_ca.crt src/test/ssl/ssl/root_ca.key src/test/ssl/ssl/server-cn-and-alt-names.crt src/test/ssl/ssl/server-cn-and-alt-names.key src/test/ssl/ssl/server-cn-and-ip-alt-names.crt src/test/ssl/ssl/server-cn-and-ip-alt-names.key src/test/ssl/ssl/server-cn-only+server_ca.crt src/test/ssl/ssl/server-cn-only.crt src/test/ssl/ssl/server-cn-only.key src/test/ssl/ssl/server-crldir/a836cc2d.r0 src/test/ssl/ssl/server-ip-alt-names.crt src/test/ssl/ssl/server-ip-alt-names.key src/test/ssl/ssl/server-ip-cn-and-alt-names.crt src/test/ssl/ssl/server-ip-cn-and-alt-names.key src/test/ssl/ssl/server-ip-cn-and-dns-alt-names.crt src/test/ssl/ssl/server-ip-cn-and-dns-alt-names.key src/test/ssl/ssl/server-ip-cn-only.crt src/test/ssl/ssl/server-ip-cn-only.key src/test/ssl/ssl/server-ip-in-dnsname.crt src/test/ssl/ssl/server-ip-in-dnsname.key src/test/ssl/ssl/server-multiple-alt-names.crt src/test/ssl/ssl/server-multiple-alt-names.key src/test/ssl/ssl/server-no-names.crt src/test/ssl/ssl/server-no-names.key src/test/ssl/ssl/server-password.key src/test/ssl/ssl/server-revoked.crt src/test/ssl/ssl/server-revoked.key src/test/ssl/ssl/server-rsapss.crt src/test/ssl/ssl/server-rsapss.key src/test/ssl/ssl/server-single-alt-name.crt src/test/ssl/ssl/server-single-alt-name.key src/test/ssl/ssl/server.crl src/test/ssl/ssl/server_ca.crt src/test/ssl/ssl/server_ca.key src/test/ssl/sslfiles.mk src/test/ssl/t/001_ssltests.pl src/test/ssl/t/002_scram.pl src/test/ssl/t/003_sslinfo.pl src/test/ssl/t/SSL/Backend/OpenSSL.pm src/test/ssl/t/SSL/Server.pm src/test/subscription/.gitignore src/test/subscription/Makefile src/test/subscription/README src/test/subscription/meson.build src/test/subscription/t/001_rep_changes.pl src/test/subscription/t/002_types.pl src/test/subscription/t/003_constraints.pl src/test/subscription/t/004_sync.pl src/test/subscription/t/005_encoding.pl src/test/subscription/t/006_rewrite.pl src/test/subscription/t/007_ddl.pl src/test/subscription/t/008_diff_schema.pl src/test/subscription/t/009_matviews.pl src/test/subscription/t/010_truncate.pl src/test/subscription/t/011_generated.pl src/test/subscription/t/012_collation.pl src/test/subscription/t/013_partition.pl src/test/subscription/t/014_binary.pl src/test/subscription/t/015_stream.pl src/test/subscription/t/016_stream_subxact.pl src/test/subscription/t/017_stream_ddl.pl src/test/subscription/t/018_stream_subxact_abort.pl src/test/subscription/t/019_stream_subxact_ddl_abort.pl src/test/subscription/t/020_messages.pl src/test/subscription/t/021_twophase.pl src/test/subscription/t/022_twophase_cascade.pl src/test/subscription/t/023_twophase_stream.pl src/test/subscription/t/024_add_drop_pub.pl src/test/subscription/t/025_rep_changes_for_schema.pl src/test/subscription/t/026_stats.pl src/test/subscription/t/027_nosuperuser.pl src/test/subscription/t/028_row_filter.pl src/test/subscription/t/029_on_error.pl src/test/subscription/t/030_origin.pl src/test/subscription/t/031_column_list.pl src/test/subscription/t/032_subscribe_use_index.pl src/test/subscription/t/033_run_as_table_owner.pl src/test/subscription/t/034_temporal.pl src/test/subscription/t/035_conflicts.pl src/test/subscription/t/100_bugs.pl src/timezone/.gitignore src/timezone/Makefile src/timezone/README src/timezone/data/tzdata.zi src/timezone/known_abbrevs.txt src/timezone/localtime.c src/timezone/meson.build src/timezone/pgtz.c src/timezone/pgtz.h src/timezone/private.h src/timezone/strftime.c src/timezone/tzfile.h src/timezone/tznames/Africa.txt src/timezone/tznames/America.txt src/timezone/tznames/Antarctica.txt src/timezone/tznames/Asia.txt src/timezone/tznames/Atlantic.txt src/timezone/tznames/Australia src/timezone/tznames/Australia.txt src/timezone/tznames/Default src/timezone/tznames/Etc.txt src/timezone/tznames/Europe.txt src/timezone/tznames/India src/timezone/tznames/Indian.txt src/timezone/tznames/Makefile src/timezone/tznames/Pacific.txt src/timezone/tznames/README src/timezone/tznames/meson.build src/timezone/zic.c src/tools/PerfectHash.pm src/tools/RELEASE_CHANGES src/tools/add_commit_links.pl src/tools/ccsym src/tools/check_bison_recursion.pl src/tools/ci/README src/tools/ci/ci_macports_packages.sh src/tools/ci/cores_backtrace.sh src/tools/ci/gcp_ram_disk.sh src/tools/ci/pg_ci_base.conf src/tools/codelines src/tools/copyright.pl src/tools/darwin_sysroot src/tools/editors/emacs.samples src/tools/editors/vim.samples src/tools/find_badmacros src/tools/find_meson src/tools/find_static src/tools/find_typedef src/tools/gen_export.pl src/tools/gen_keywordlist.pl src/tools/generate_editorconfig.py src/tools/git-external-diff src/tools/git_changelog src/tools/ifaddrs/.gitignore src/tools/ifaddrs/Makefile src/tools/ifaddrs/README src/tools/ifaddrs/test_ifaddrs.c src/tools/install_files src/tools/make_ctags src/tools/make_etags src/tools/make_mkid src/tools/mark_pgdllimport.pl src/tools/msvc_gendef.pl src/tools/perlcheck/find_perl_files src/tools/perlcheck/perlcriticrc src/tools/perlcheck/pgperlcritic src/tools/perlcheck/pgperlsyncheck src/tools/pg_bsd_indent/.gitignore src/tools/pg_bsd_indent/Makefile src/tools/pg_bsd_indent/README src/tools/pg_bsd_indent/args.c src/tools/pg_bsd_indent/err.c src/tools/pg_bsd_indent/err.h src/tools/pg_bsd_indent/indent.1 src/tools/pg_bsd_indent/indent.c src/tools/pg_bsd_indent/indent.h src/tools/pg_bsd_indent/indent_codes.h src/tools/pg_bsd_indent/indent_globs.h src/tools/pg_bsd_indent/io.c src/tools/pg_bsd_indent/lexi.c src/tools/pg_bsd_indent/meson.build src/tools/pg_bsd_indent/parse.c src/tools/pg_bsd_indent/pr_comment.c src/tools/pg_bsd_indent/t/001_pg_bsd_indent.pl src/tools/pg_bsd_indent/tests/binary.0 src/tools/pg_bsd_indent/tests/binary.0.stdout src/tools/pg_bsd_indent/tests/comments.0 src/tools/pg_bsd_indent/tests/comments.0.stdout src/tools/pg_bsd_indent/tests/comments.pro src/tools/pg_bsd_indent/tests/cppelsecom.0 src/tools/pg_bsd_indent/tests/cppelsecom.0.stdout src/tools/pg_bsd_indent/tests/declarations.0 src/tools/pg_bsd_indent/tests/declarations.0.stdout src/tools/pg_bsd_indent/tests/elsecomment.0 src/tools/pg_bsd_indent/tests/elsecomment.0.stdout src/tools/pg_bsd_indent/tests/elsecomment.pro src/tools/pg_bsd_indent/tests/enum.0 src/tools/pg_bsd_indent/tests/enum.0.stdout src/tools/pg_bsd_indent/tests/f_decls.0 src/tools/pg_bsd_indent/tests/f_decls.0.stdout src/tools/pg_bsd_indent/tests/float.0 src/tools/pg_bsd_indent/tests/float.0.stdout src/tools/pg_bsd_indent/tests/label.0 src/tools/pg_bsd_indent/tests/label.0.stdout src/tools/pg_bsd_indent/tests/label.pro src/tools/pg_bsd_indent/tests/list_head.0 src/tools/pg_bsd_indent/tests/list_head.0.stdout src/tools/pg_bsd_indent/tests/nsac.0 src/tools/pg_bsd_indent/tests/nsac.0.stdout src/tools/pg_bsd_indent/tests/nsac.pro src/tools/pg_bsd_indent/tests/offsetof.0 src/tools/pg_bsd_indent/tests/offsetof.0.stdout src/tools/pg_bsd_indent/tests/parens.0 src/tools/pg_bsd_indent/tests/parens.0.stdout src/tools/pg_bsd_indent/tests/parens.pro src/tools/pg_bsd_indent/tests/sac.0 src/tools/pg_bsd_indent/tests/sac.0.stdout src/tools/pg_bsd_indent/tests/sac.pro src/tools/pg_bsd_indent/tests/struct.0 src/tools/pg_bsd_indent/tests/struct.0.stdout src/tools/pg_bsd_indent/tests/surplusbad.0 src/tools/pg_bsd_indent/tests/surplusbad.0.stdout src/tools/pg_bsd_indent/tests/surplusbad.pro src/tools/pg_bsd_indent/tests/types_from_file.0 src/tools/pg_bsd_indent/tests/types_from_file.0.stdout src/tools/pg_bsd_indent/tests/types_from_file.list src/tools/pg_bsd_indent/tests/types_from_file.pro src/tools/pg_bsd_indent/tests/wchar.0 src/tools/pg_bsd_indent/tests/wchar.0.stdout src/tools/pgflex src/tools/pginclude/README src/tools/pginclude/headerscheck src/tools/pgindent/README src/tools/pgindent/exclude_file_patterns src/tools/pgindent/perltidyrc src/tools/pgindent/pgindent src/tools/pgindent/pgindent.man src/tools/pgindent/pgperltidy src/tools/pgindent/typedefs.list src/tools/pgtest src/tools/rcgen src/tools/testint128.c src/tools/testwrap src/tools/valgrind.supp src/tools/version_stamp.pl src/tools/win32tzlist.pl src/tutorial/.gitignore src/tutorial/Makefile src/tutorial/README src/tutorial/advanced.source src/tutorial/basics.source src/tutorial/complex.c src/tutorial/complex.source src/tutorial/funcs.c src/tutorial/funcs.source src/tutorial/syscat.source