diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-22 20:13:12 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-04-22 20:13:12 -0400 |
commit | ae20bf1740c53494e15fadfd8c2c6444032a3441 (patch) | |
tree | acbc7796d38c411fa5e23b3693be15e9aab7e664 /src/include/access/gist_private.h | |
parent | 474ff212e5c2e89a9955cc2355cb96b2fe40398e (diff) | |
download | postgresql-ae20bf1740c53494e15fadfd8c2c6444032a3441.tar.gz postgresql-ae20bf1740c53494e15fadfd8c2c6444032a3441.zip |
Make GIN and GIST pass the index collation to all their support functions.
Experimentation with contrib/btree_gist shows that the majority of the GIST
support functions potentially need collation information. Safest policy
seems to be to pass it to all of them, instead of making assumptions about
which ones could possibly need it.
Diffstat (limited to 'src/include/access/gist_private.h')
-rw-r--r-- | src/include/access/gist_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/access/gist_private.h b/src/include/access/gist_private.h index ecc188f7df7..77e3cb5aee8 100644 --- a/src/include/access/gist_private.h +++ b/src/include/access/gist_private.h @@ -41,6 +41,9 @@ typedef struct GISTSTATE FmgrInfo equalFn[INDEX_MAX_KEYS]; FmgrInfo distanceFn[INDEX_MAX_KEYS]; + /* Collations to pass to the support functions */ + Oid supportCollation[INDEX_MAX_KEYS]; + TupleDesc tupdesc; } GISTSTATE; |