Re: Re: GIST question - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Re: GIST question
Date
Msg-id 200105152335.f4FNZ9S13313@candle.pha.pa.us
Whole thread Raw
In response to Re: Re: GIST question  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
> 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

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Re: GIST question
Next
From: Bruce Momjian
Date:
Subject: Re: Re: GIST question