Search Postgresql Archives

Re: operators, operator classes, Btree and index usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Sergey E. Koposov" <math@xxxxxxxxxx> writes:
> I'm interested in simplifying those queries and introducing the operator 
> doing something like this:

> my_operator(bigint x, bigint[] arr)  
> checking  the condition: 
> ((x>arr[1]) AND (x<arr[2])) OR ((x>arr[3]) AND (x<arr[4]))

This could be made to work if you define the above as an inline-able SQL
function.  Hacking operator classes won't do it though.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux