postgresql/src
Robert Haas a91e2fa941 Adapt hashfn.c and hashutils.h for frontend use.
hash_any() and its various variants are defined to return Datum,
which is a backend-only concept, but the underlying functions
actually want to return uint32 and uint64, and only return Datum
because it's convenient for callers who are using them to
implement a hash function for some SQL datatype.

However, changing these functions to return uint32 and uint64
seems like it might lead to programming errors or back-patching
difficulties, both because they are widely used and because
failure to use UInt{32,64}GetDatum() might not provoke a
compilation error. Instead, rename the existing functions as
well as changing the return type, and add static inline wrappers
for those callers that need the previous behavior.

Although this commit adapts hashutils.h and hashfn.c so that they
can be compiled as frontend code, it does not actually do
anything that would cause them to be so compiled. That is left
for another commit.

Patch by me, reviewed by Suraj Kharage and Mark Dilger.

Discussion: http://postgr.es/m/CA+TgmoaRiG4TXND8QuM6JXFRkM_1wL2ZNhzaUKsuec9-4yrkgw@mail.gmail.com
2020-02-24 17:27:15 +05:30
..
backend Adapt hashfn.c and hashutils.h for frontend use. 2020-02-24 17:27:15 +05:30
bin Add prefix checks in exclude lists for pg_rewind, pg_checksums and base backups 2020-02-24 18:13:25 +09:00
common Fix typo 2020-02-19 21:08:47 +01:00
fe_utils Fix bug in pg_basebackup -F plain -R. 2020-02-12 09:08:22 +09:00
include Adapt hashfn.c and hashutils.h for frontend use. 2020-02-24 17:27:15 +05:30
interfaces Fix compiler warnings on 64-bit Windows 2020-02-21 19:58:39 +01:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Remove support for upgrading extensions from "unpackaged" state. 2020-02-19 16:59:14 -05:00
port Assume that we have rint(). 2020-02-21 14:30:47 -05:00
template Fix compiler warning for ppoll() on Cygwin 2019-12-22 23:20:00 +01:00
test Simplify FK-to-partitioned regression test query 2020-02-20 14:14:20 -03:00
timezone Require stdint.h 2020-02-21 09:20:32 +01:00
tools Adjust Solution.pm to set HAVE_STDINT_H. 2020-02-21 16:14:09 -05:00
tutorial Update copyrights for 2020 2020-01-01 12:21:45 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Simplify passing of configure arguments to pg_config 2020-02-10 19:23:41 +01:00
Makefile.shlib Clean up MinGW def file generation 2019-10-20 10:19:13 +02:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00