I know from using Oracle that conditonal index with CASE statement is possible. But is it possible in PostgreSQL? For example index is following:
CREATE INDEX IX_INDEXNAME ON SOME_TABLE (
CASE
WHEN COLUMN1 = 0 AND COLUMN2 = 'value' THEN SOME1_ID
ELSE SOME2_ID
END);
This is already modified version for PostgreSQL, because Oracle case statement is different from Postgres. If this is possbile how do I do that? Or if this is not possible, is there another way to realize it?
create indexwork that you have? If not, was is the error?