postgresql/contrib/ltree
Tom Lane 0a20ff54f5 Split up guc.c for better build speed and ease of maintenance.
guc.c has grown to be one of our largest .c files, making it
a bottleneck for compilation.  It's also acquired a bunch of
knowledge that'd be better kept elsewhere, because of our not
very good habit of putting variable-specific check hooks here.
Hence, split it up along these lines:

* guc.c itself retains just the core GUC housekeeping mechanisms.
* New file guc_funcs.c contains the SET/SHOW interfaces and some
  SQL-accessible functions for GUC manipulation.
* New file guc_tables.c contains the data arrays that define the
  built-in GUC variables, along with some already-exported constant
  tables.
* GUC check/assign/show hook functions are moved to the variable's
  home module, whenever that's clearly identifiable.  A few hard-
  to-classify hooks ended up in commands/variable.c, which was
  already a home for miscellaneous GUC hook functions.

To avoid cluttering a lot more header files with #include "guc.h",
I also invented a new header file utils/guc_hooks.h and put all
the GUC hook functions' declarations there, regardless of their
originating module.  That allowed removal of #include "guc.h"
from some existing headers.  The fallout from that (hopefully
all caught here) demonstrates clearly why such inclusions are
best minimized: there are a lot of files that, for example,
were getting array.h at two or more levels of remove, despite
not having any connection at all to GUCs in themselves.

There is some very minor code beautification here, such as
renaming a couple of inconsistently-named hook functions
and improving some comments.  But mostly this just moves
code from point A to point B and deals with the ensuing
needs for #include adjustments and exporting a few functions
that previously weren't exported.

Patch by me, per a suggestion from Andres Freund; thanks also
to Michael Paquier for the idea to invent guc_funcs.c.

Discussion: https://postgr.es/m/587607.1662836699@sss.pgh.pa.us
2022-09-13 11:11:45 -04:00
..
data Add ltree data type to contrib, from Teodor Sigaev and Oleg Bartunov. 2002-07-30 16:40:34 +00:00
expected Clean up parsing of ltree and lquery some more. 2020-04-01 19:44:17 -04:00
sql Clean up parsing of ltree and lquery some more. 2020-04-01 19:44:17 -04:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Adjust MSVC build scripts to parse Makefiles for defines 2021-07-29 12:01:23 +12:00
_ltree_gist.c Split up guc.c for better build speed and ease of maintenance. 2022-09-13 11:11:45 -04:00
_ltree_op.c Split up guc.c for better build speed and ease of maintenance. 2022-09-13 11:11:45 -04:00
crc32.c Adjust MSVC build scripts to parse Makefiles for defines 2021-07-29 12:01:23 +12:00
crc32.h Add support for binary I/O of ltree, lquery, and ltxtquery types. 2020-04-01 17:31:29 -04:00
lquery_op.c Split up guc.c for better build speed and ease of maintenance. 2022-09-13 11:11:45 -04:00
ltree--1.0--1.1.sql Make contrib modules' installation scripts more secure. 2020-08-10 10:44:42 -04:00
ltree--1.1--1.2.sql Add support for binary I/O of ltree, lquery, and ltxtquery types. 2020-04-01 17:31:29 -04:00
ltree--1.1.sql Update extensions with GIN/GIST support for parallel query. 2016-06-14 13:34:37 -04:00
ltree.control Implement operator class parameters 2020-03-30 19:17:23 +03:00
ltree.h Mark all symbols exported from extension libraries PGDLLEXPORT. 2022-07-17 18:50:14 -07:00
ltree_gist.c Split up guc.c for better build speed and ease of maintenance. 2022-09-13 11:11:45 -04:00
ltree_io.c Clean up parsing of ltree and lquery some more. 2020-04-01 19:44:17 -04:00
ltree_op.c Clean up more code using "(expr) ? true : false" 2021-10-11 09:36:42 +09:00
ltreetest.sql Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
ltxtquery_io.c Remove extraneous blank lines before block-closing braces 2022-04-13 19:16:02 +02:00
ltxtquery_op.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00