Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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!

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group