Selectivity function argument: Const -> Array

From: "Ilia Kantor" <ilia(at)manual(dot)ru>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Selectivity function argument: Const -> Array
Date: 2005-08-29 13:04:33
Message-ID: auto-000558864640@umail.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I want to write a selectivity function for GIST indexes.

The select condition is somefield && array[1,2,3],

But when I'm inside selectivity function I get args: T_Var, T_Const.

So function needs to get the actual array contents from T_Const .

How to do it ?

P.S

T_Const is like

$18 = {xpr = {type = T_Const}, consttype = 1007, constlen = -1, constvalue =
138884428, constisnull = 0 '\0',

constbyval = 0 '\0'}

Thank you!

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2005-08-29 13:29:42 Re: [HACKERS] Improved \df(+) in psql + backward-compatibility
Previous Message Dennis Bjorklund 2005-08-29 12:14:01 Re: Call for 7.5 feature completion