aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_utils_var.h
diff options
context:
space:
mode:
authorTeodor Sigaev <teodor@sigaev.ru>2005-07-01 13:44:56 +0000
committerTeodor Sigaev <teodor@sigaev.ru>2005-07-01 13:44:56 +0000
commitef770cbb6913cc4c816bb09acd7cb13f996281bd (patch)
treefe973e6aeb9c018d54ea6267f49d5d1b2d5d2f95 /contrib/btree_gist/btree_utils_var.h
parent8f6e8e8fed372a592f645d8900b6f456db82cc59 (diff)
downloadpostgresql-ef770cbb6913cc4c816bb09acd7cb13f996281bd.tar.gz
postgresql-ef770cbb6913cc4c816bb09acd7cb13f996281bd.zip
Fixes from Janko Richter <jankorichter@yahoo.de>
- Fix wrong index results on text, char, varchar for multibyte strings - Fix some SIGFPE signals - Add support for infinite timestamps - Because of locale settings, btree_gist can not be a prefix index anymore (for text). Each node holds now just the lower and upper boundary.
Diffstat (limited to 'contrib/btree_gist/btree_utils_var.h')
-rw-r--r--contrib/btree_gist/btree_utils_var.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/btree_gist/btree_utils_var.h b/contrib/btree_gist/btree_utils_var.h
index ecb3f3f3f13..e4d48d3910a 100644
--- a/contrib/btree_gist/btree_utils_var.h
+++ b/contrib/btree_gist/btree_utils_var.h
@@ -1,3 +1,4 @@
+#include "mb/pg_wchar.h"
/* Variable length key */
typedef bytea GBT_VARKEY;
@@ -27,7 +28,7 @@ typedef struct
/* Attribs */
enum gbtree_type t; /* data type */
- bool str; /* true, if string ( else binary ) */
+ int32 eml; /* cached pg_database_encoding_max_length (0: undefined) */
bool trnc; /* truncate (=compress) key */
/* Methods */