mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
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.
This commit is contained in:
@ -21,6 +21,8 @@
|
||||
#include <utils/rel.h>
|
||||
#include <storage/off.h>
|
||||
|
||||
#include <fmgr.h>
|
||||
|
||||
/*
|
||||
** 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;
|
||||
|
Reference in New Issue
Block a user