summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorTomas Vondra <tomas.vondra@postgresql.org>2018-07-29 03:30:48 +0200
committerTomas Vondra <tomas.vondra@postgresql.org>2018-07-29 03:30:48 +0200
commit6bf0bc842bd75877e31727eb559c6a69e237f831 (patch)
treeff722cf14f3bc7338d91ea219041d362c9c56d7b /src/backend/access/gist/gistget.c
parenta7dc63d904a6044d299aebdf59ad3199b6a9e99d (diff)
downloadpostgresql-6bf0bc842bd75877e31727eb559c6a69e237f831.tar.gz
Provide separate header file for built-in float types
Some data types under adt/ have separate header files, but most simple ones do not, and their public functions are defined in builtins.h. As the patches improving geometric types will require making additional functions public, this seems like a good opportunity to create a header for floats types. Commit 1acf757255 made _cmp functions public to solve NaN issues locally for GiST indexes. This patch reworks it in favour of a more widely applicable API. The API uses inline functions, as they are easier to use compared to macros, and avoid double-evaluation hazards. Author: Emre Hasegeli Reviewed-by: Kyotaro Horiguchi Discussion: https://www.postgresql.org/message-id/CAE2gYzxF7-5djV6-cEvqQu-fNsnt%3DEqbOURx7ZDg%2BVv6ZMTWbg%40mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistget.c')
-rw-r--r--src/backend/access/gist/gistget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/gist/gistget.c b/src/backend/access/gist/gistget.c
index c4e8a3b913..ad07b9e63c 100644
--- a/src/backend/access/gist/gistget.c
+++ b/src/backend/access/gist/gistget.c
@@ -22,7 +22,7 @@
#include "storage/predicate.h"
#include "pgstat.h"
#include "lib/pairingheap.h"
-#include "utils/builtins.h"
+#include "utils/float.h"
#include "utils/memutils.h"
#include "utils/rel.h"