From baef78d96b799b6264a54f8cfce4fda2b2da9701 Mon Sep 17 00:00:00 2001 From: PostgreSQL Daemon Date: Thu, 15 Jan 1998 19:46:37 +0000 Subject: Thank god for searchable mail archives. Patch by: wieck@sapserv.debis.de (Jan Wieck) One of the design rules of PostgreSQL is extensibility. And to follow this rule means (at least for me) that there should not only be a builtin PL. Instead I would prefer a defined interface for PL implemetations. --- src/include/access/gist.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/include/access/gist.h') diff --git a/src/include/access/gist.h b/src/include/access/gist.h index d6519cd132c..15294ce06cc 100644 --- a/src/include/access/gist.h +++ b/src/include/access/gist.h @@ -21,6 +21,8 @@ #include #include +#include + /* ** You can have as many strategies as you please in GiSTs, as ** long as your consistent method can handle them @@ -71,13 +73,13 @@ typedef struct GISTSTACK typedef struct GISTSTATE { - func_ptr consistentFn; - func_ptr unionFn; - func_ptr compressFn; - func_ptr decompressFn; - func_ptr penaltyFn; - func_ptr picksplitFn; - func_ptr equalFn; + FmgrInfo consistentFn; + FmgrInfo unionFn; + FmgrInfo compressFn; + FmgrInfo decompressFn; + FmgrInfo penaltyFn; + FmgrInfo picksplitFn; + FmgrInfo equalFn; bool haskeytype; bool keytypbyval; } GISTSTATE; -- cgit v1.2.3