Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YZ0ia-0004Q3-TA for pgsql-sql@arkaria.postgresql.org; Fri, 20 Mar 2015 17:28:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YZ0ia-0008Q5-CW for pgsql-sql@arkaria.postgresql.org; Fri, 20 Mar 2015 17:28:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YZ0iZ-0008Pz-GG for pgsql-sql@postgresql.org; Fri, 20 Mar 2015 17:28:19 +0000 Received: from mail6.gmhwh.org ([216.49.179.96]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YZ0iT-0004Sv-Ui for pgsql-sql@postgresql.org; Fri, 20 Mar 2015 17:28:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ldschurch.org; h=from : to : subject : date : message-id : content-type : mime-version; s=nov2012; bh=DBYhe2GLzbMJHRdY2H0HeG9VlgIIdp3HPvlt8XhIfwg=; b=2lmdkQ3sLZhr6dAT/baNCKFM2mAeLVmL83hLEs/StcOZMh9VE5NbRx9k8q9NslkSqpoF IujEBP2RxrO7igy+9jwXe9BBk0eyzzJayFLVIv1tmTXPsR8Mp5fwv9BPgyW2wFymIsaz NkhYc4PrPjlIL3mZkp0OVoPp/vPUZimS5FMl1iDPT76DnzMpjg+9xxtgcJ3OSh8vwu8M w3EoUpY3+dZg7IxG7eCWMBxdEfNu8WPcmaI13jc4QMUaVbeVoViGu4J68YZ86OVLPspg zoFNw93PxiC6yuaIwvqfzzLcBvkCF83vEBdDyrjrqcuCGa/JiiqCOu/dvz5gItnPOLc0 PQ== Received: from W12117.ldschurch.org ([10.97.40.117]) by mail6.gmhwh.org (8.14.5/8.14.5) with ESMTP id t2KHS2PF023799 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Fri, 20 Mar 2015 11:28:07 -0600 Received: from W12112.ldschurch.org ([169.254.13.26]) by W12117.ldschurch.org ([fe80::2162:a472:4adc:45c3%11]) with mapi id 14.03.0224.002; Fri, 20 Mar 2015 11:27:40 -0600 From: Lance Jacob To: "pgsql-sql@postgresql.org" Subject: 'bitwise and' index Thread-Topic: 'bitwise and' index Thread-Index: AQHQYzMqPH23QFZgrU6dUEfk6EmL3Q== Date: Fri, 20 Mar 2015 17:27:40 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.8.150116 x-originating-ip: [10.98.250.245] Content-Type: multipart/alternative; boundary="_000_D131B4AA6F24jacobljfamilysearchorg_" MIME-Version: 1.0 X-Disclaimer: True X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68, 1.0.33, 0.0.0000 definitions=2015-03-20_07:2015-03-20,2015-03-20,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 kscore.is_bulkscore=0 kscore.compositescore=0 circleOfTrustscore=0 compositescore=0.0306170458199027 suspectscore=0 recipient_domain_to_sender_totalscore=0 phishscore=0 bulkscore=0 kscore.is_spamscore=0 rbsscore=0.0306170458199027 recipient_to_sender_totalscore=0 recipient_domain_to_sender_domain_totalscore=0 spamscore=0 recipient_to_sender_domain_totalscore=0 urlsuspectscore=0.0306170458199027 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1503200179 X-Pg-Spam-Score: -1.3 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org --_000_D131B4AA6F24jacobljfamilysearchorg_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="Windows-1252" I have an Oracle database that I migrated to Postgres. I=92ve been success= ful with everything except the creation of one index. On the oracle side t= he index was created with the syntax =93create index abc on xyz (bitand(col= umn_name,16384))=94. What would be the proper syntax for creating a simila= r bitwise function-based index in Postgres? Or, is it even possible? LanceJacob NOTICE: This email message is for the sole use of the intended recipient(s= ) and may contain confidential and privileged information. Any unauthorized= review, use, disclosure or distribution is prohibited. If you are not the = intended recipient, please contact the sender by reply email and destroy al= l copies of the original message. --_000_D131B4AA6F24jacobljfamilysearchorg_ Content-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="Windows-1252"
I have an Oracle database that I migrated to Postgres.  I=92ve be= en successful with everything except the creation of one index.  On th= e oracle side the index was created with the syntax =93create index abc on = xyz (bitand(column_name,16384))=94.  What would be the proper syntax for creating a similar bitwise function-based index i= n Postgres?  Or, is it even possible?

LanceJacob

<= br>
NOTICE: This email message is for the sole use of the intended reci= pient(s) and may contain confidential and privileged information. Any unaut= horized review, use, disclosure or distribution is prohibited. If you are n= ot the intended recipient, please contact the sender by reply email and des= troy all copies of the original message.


--_000_D131B4AA6F24jacobljfamilysearchorg_--