> I did look at the code inside the tests. The first was to decide if it
> was suppose to look in pg_attribute for the byvalue flag. The last two
> controlled the if gistentryinit() was called. No idea what that is
> because the variable names are single letters. Gistentryinit() is:
>
> #define gistentryinit(e, pr, r, pg, o, b, l)\
> do {(e).pred = pr; (e).rel = r; (e).page = pg; (e).offset = o; (e).bytes = b;
> (e).leafkey = l;} while (0)
>
> I have to say I have no idea how pg_index.indhaskeytype is related to
> gistentryinit().
I figured out part of it. gistentryinit() is related to compressFn and
decompressFn in its calls. It seems they wanted to disable those calls
when haskeytype was false.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026