Re: 'bitwise and' index

Поиск
Список
Период
Сортировка
От Igor Neyman
Тема Re: 'bitwise and' index
Дата
Msg-id A76B25F2823E954C9E45E32FA49D70ECCD407E57@mail.corp.perceptron.com
обсуждение исходный текст
Ответ на 'bitwise and' index  (Lance Jacob <JacobLJ@familysearch.org>)
Список pgsql-sql

 

 

From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org] On Behalf Of Lance Jacob
Sent: Friday, March 20, 2015 1:28 PM
To: pgsql-sql@postgresql.org
Subject: [SQL] 'bitwise and' index

 

I have an Oracle database that I migrated to Postgres.  I’ve been successful with everything except the creation of one index.  On the oracle side the index was created with the syntax “create index abc on xyz (bitand(column_name,16384))”.  What would be the proper syntax for creating a similar bitwise function-based index in Postgres?  Or, is it even possible?

 

LanceJacob

 


Try:

create index abc on xyz (column_name & 16384);

 

Regards,

Igor Neyman

 

 

В списке pgsql-sql по дате отправления:

Предыдущее
От: Lance Jacob
Дата:
Сообщение: 'bitwise and' index
Следующее
От: Suresh Raja
Дата:
Сообщение: check data for datatype