postgresql/contrib/btree_gist
Andres Freund e6927270cd meson: Add initial version of meson based build system
Autoconf is showing its age, fewer and fewer contributors know how to wrangle
it. Recursive make has a lot of hard to resolve dependency issues and slow
incremental rebuilds. Our home-grown MSVC build system is hard to maintain for
developers not using Windows and runs tests serially. While these and other
issues could individually be addressed with incremental improvements, together
they seem best addressed by moving to a more modern build system.

After evaluating different build system choices, we chose to use meson, to a
good degree based on the adoption by other open source projects.

We decided that it's more realistic to commit a relatively early version of
the new build system and mature it in tree.

This commit adds an initial version of a meson based build system. It supports
building postgres on at least AIX, FreeBSD, Linux, macOS, NetBSD, OpenBSD,
Solaris and Windows (however only gcc is supported on aix, solaris). For
Windows/MSVC postgres can now be built with ninja (faster, particularly for
incremental builds) and msbuild (supporting the visual studio GUI, but
building slower).

Several aspects (e.g. Windows rc file generation, PGXS compatibility, LLVM
bitcode generation, documentation adjustments) are done in subsequent commits
requiring further review. Other aspects (e.g. not installing test-only
extensions) are not yet addressed.

When building on Windows with msbuild, builds are slower when using a visual
studio version older than 2019, because those versions do not support
MultiToolTask, required by meson for intra-target parallelism.

The plan is to remove the MSVC specific build system in src/tools/msvc soon
after reaching feature parity. However, we're not planning to remove the
autoconf/make build system in the near future. Likely we're going to keep at
least the parts required for PGXS to keep working around until all supported
versions build with meson.

Some initial help for postgres developers is at
https://wiki.postgresql.org/wiki/Meson

With contributions from Thomas Munro, John Naylor, Stone Tickle and others.

Author: Andres Freund <andres@anarazel.de>
Author: Nazir Bilal Yavuz <byavuz81@gmail.com>
Author: Peter Eisentraut <peter@eisentraut.org>
Reviewed-By: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/20211012083721.hvixq4pnh2pixr3j@alap3.anarazel.de
2022-09-21 22:37:17 -07:00
..
data Add btree_gist support for enum types. 2017-03-21 10:43:27 -04:00
expected Fix planner to consider matches to boolean columns in extension indexes. 2022-09-02 17:01:51 -04:00
sql Handle mixed returnable and non-returnable columns better in IOS. 2022-01-03 16:12:11 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Add bool GiST opclass to btree_gist 2021-11-06 17:00:43 +01:00
btree_bit.c Remove extraneous blank lines before block-closing braces 2022-04-13 19:16:02 +02:00
btree_bool.c Pre-beta mechanical code beautification. 2022-05-12 15:17:30 -04:00
btree_bytea.c Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
btree_cash.c Remove extraneous blank lines before block-closing braces 2022-04-13 19:16:02 +02:00
btree_date.c Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
btree_enum.c Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
btree_float4.c Remove extraneous blank lines before block-closing braces 2022-04-13 19:16:02 +02:00
btree_float8.c Remove extraneous blank lines before block-closing braces 2022-04-13 19:16:02 +02:00
btree_gist--1.0--1.1.sql Add index-only scan support to btree_gist. 2015-03-27 23:35:16 +02:00
btree_gist--1.1--1.2.sql Make contrib modules' installation scripts more secure. 2020-08-10 10:44:42 -04:00
btree_gist--1.2--1.3.sql Add uuid to the set of types supported by contrib/btree_gist. 2016-11-29 14:08:34 -05:00
btree_gist--1.2.sql Handle contrib's GIN/GIST support function signature changes honestly. 2016-06-09 16:44:25 -04:00
btree_gist--1.3--1.4.sql Add support for EUI-64 MAC addresses as macaddr8 2017-03-15 11:16:25 -04:00
btree_gist--1.4--1.5.sql Add btree_gist support for enum types. 2017-03-21 10:43:27 -04:00
btree_gist--1.5--1.6.sql Update btree_gist extension for parallel query 2020-07-20 13:59:50 +03:00
btree_gist--1.6--1.7.sql Fix gist_bool_ops to use gbtreekey2 2021-11-08 01:14:55 +01:00
btree_gist.c Create function prototype as part of PG_FUNCTION_INFO_V1 macro 2014-04-18 00:03:19 -04:00
btree_gist.control Add bool GiST opclass to btree_gist 2021-11-06 17:00:43 +01:00
btree_gist.h Add bool GiST opclass to btree_gist 2021-11-06 17:00:43 +01:00
btree_inet.c Remove extraneous blank lines before block-closing braces 2022-04-13 19:16:02 +02:00
btree_int2.c Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
btree_int4.c Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
btree_int8.c Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
btree_interval.c Remove extraneous blank lines before block-closing braces 2022-04-13 19:16:02 +02:00
btree_macaddr.c Remove extraneous blank lines before block-closing braces 2022-04-13 19:16:02 +02:00
btree_macaddr8.c Remove extraneous blank lines before block-closing braces 2022-04-13 19:16:02 +02:00
btree_numeric.c Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
btree_oid.c Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
btree_text.c Fix results of index-only scans on btree_gist char(N) indexes. 2022-01-08 14:54:39 -05:00
btree_time.c Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
btree_ts.c Remove extraneous blank lines before block-closing braces 2022-04-13 19:16:02 +02:00
btree_utils_num.c Fix incorrect uses of Datum conversion macros 2022-09-05 13:30:44 +02:00
btree_utils_num.h Improve performance of float overflow checks in btree_gist 2021-08-19 10:42:44 +09:00
btree_utils_var.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
btree_utils_var.h Make the order of the header file includes consistent. 2019-11-25 08:08:57 +05:30
btree_uuid.c Revert "Add sortsupport for gist_btree opclasses, for faster index builds." 2021-04-07 14:33:21 +03:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00