Re: Review: B-Tree emulation for GIN - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Review: B-Tree emulation for GIN
Date
Msg-id 3638.1238000110@sss.pgh.pa.us
Whole thread Raw
In response to Re: Review: B-Tree emulation for GIN  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
BTW ... while I'm thinking about it: it seems to me to be a serious
error that the consistent() function isn't given nkeys so that it can
know the length of the arrays it's being handed.  I suppose it's
possible for it to re-deduce nkeys by examining the query datum, but
that could be quite expensive; and it's certainly error-prone to have
to keep extractQuery() and consistent() in sync on this.  Since we are
adding arguments to consistent() anyway for 8.4, I propose that its
signature ought to be

bool consistent(bool check[], StrategyNumber n, Datum query,               int32 nkeys, bool *recheck, Pointer
extra_data[])

where the first three arguments are what existed in 8.3.
        regards, tom lane


pgsql-hackers by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: display previous query string of idle-in-transaction
Next
From: Tom Lane
Date:
Subject: Re: cached plan issue in trigger func