postgresql/src/backend
Thomas Munro 2b1f580ee2 Remove configure probes for symlink/readlink, and dead code.
symlink() and readlink() are in SUSv2 and all targeted Unix systems have
them.  We have partial emulation on Windows.  Code that raised runtime
errors on systems without it has been dead for years, so we can remove
that and also references to such systems in the documentation.

Define HAVE_READLINK and HAVE_SYMLINK macros on Unix.  Our Windows
replacement functions based on junction points can't be used for
relative paths or for non-directories, so the macros can be used to
check for full symlink support.  The places that deal with tablespaces
can just use symlink functions without checking the macros.  (If they
did check the macros, they'd need to provide an #else branch with a
runtime or compile time error, and it'd be dead code.)

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hGDEm4qYGEUX5B6fQ@mail.gmail.com
2022-08-05 09:22:56 +12:00
..
access Remove configure probes for symlink/readlink, and dead code. 2022-08-05 09:22:56 +12:00
bootstrap Process session_preload_libraries within InitPostgres's transaction. 2022-07-25 10:27:43 -04:00
catalog Move common catalog cache access routines to lsyscache.c 2022-08-02 10:47:22 +05:30
commands Remove configure probes for symlink/readlink, and dead code. 2022-08-05 09:22:56 +12:00
executor Fix check_exclusion_or_unique_constraint for UNIQUE NULLS NOT DISTINCT. 2022-08-04 14:16:26 -04:00
foreign Create routine able to set single-call SRFs for Materialize mode 2022-03-07 10:26:29 +09:00
jit Improve performance of ORDER BY / DISTINCT aggregates 2022-08-02 23:11:45 +12:00
lib Fix lock assertions in dshash.c. 2022-07-11 16:43:29 +12:00
libpq Log details for client certificate failures 2022-07-15 17:04:48 +02:00
main Remove support for Visual Studio 2013 2022-07-14 11:22:49 +09:00
nodes Fix incorrect tests for SRFs in relation_can_be_sorted_early(). 2022-08-03 17:33:42 -04:00
optimizer Fix incorrect tests for SRFs in relation_can_be_sorted_early(). 2022-08-03 17:33:42 -04:00
parser Improve performance of ORDER BY / DISTINCT aggregates 2022-08-02 23:11:45 +12:00
partitioning Have ExecFindPartition cache the last found partition 2022-08-02 09:55:27 +12:00
po NLS: Put list of available languages into LINGUAS files 2022-07-13 08:19:17 +02:00
port Emulate sigprocmask(), not sigsetmask(), on Windows. 2022-07-16 17:03:38 +12:00
postmaster Reduce overhead of renaming archive status files. 2022-07-26 16:00:18 +09:00
regex Remove redundant null pointer checks before free() 2022-07-03 11:47:15 +02:00
replication Remove configure probes for symlink/readlink, and dead code. 2022-08-05 09:22:56 +12:00
rewrite Replace many MemSet calls with struct initialization 2022-07-16 08:50:49 +02:00
snowball Move snowball_create.sql creation into perl file 2022-07-18 12:24:27 -07:00
statistics Invent qsort_interruptible(). 2022-07-12 16:30:36 -04:00
storage Remove configure probe and related tests for getrlimit. 2022-08-05 09:18:34 +12:00
tcop Remove configure probe and related tests for getrlimit. 2022-08-05 09:18:34 +12:00
tsearch Invent qsort_interruptible(). 2022-07-12 16:30:36 -04:00
utils Remove configure probes for symlink/readlink, and dead code. 2022-08-05 09:22:56 +12:00
.gitignore
Makefile Automatically generate node support functions 2022-07-09 08:53:59 +02:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk NLS: Put list of available languages into LINGUAS files 2022-07-13 08:19:17 +02:00