Operator Column

From: Itai Zukerman <zukerman(at)math-hat(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Operator Column
Date: 2000-10-13 11:20:45
Message-ID: 87snq1oulu.fsf@matt.w80.math-hat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I'd like to do something like this:

create table value ( x int4 )

create index on value ( x )

create table filter (
op oid references pg_operator,
endpoint int4
)

select value.x
from value, filter
where value.x filter.op filter.endpoint

That is, I want the filter table to specify the operator used in the
select (filter.op will be one of the comparison operators for int4).

1. Can this be done?
2. In such a way as to make use of the index on value?

-itai

Browse pgsql-sql by date

  From Date Subject
Next Message Indraneel Majumdar 2000-10-13 21:10:35 Re: dynamic object creation
Previous Message Nelson Brito 2000-10-12 22:49:21 Problem whith Stored queries