<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Index Operator &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/index-operator/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Thu, 17 Nov 2016 17:58:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>PostgreSQL: Which Filter combinations and Operators can be used with Index?</title>
		<link>https://www.dbrnd.com/2016/11/postgresql-which-filter-combinations-and-operators-can-be-used-with-index-find-all-possible-where-clause-filters/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Mon, 14 Nov 2016 17:57:42 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Index Filter]]></category>
		<category><![CDATA[Index Operator]]></category>
		<category><![CDATA[Index Valid Filter Combination]]></category>
		<category><![CDATA[indexes]]></category>
		<category><![CDATA[plpgsql]]></category>
		<category><![CDATA[Postgres Query]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[PostgreSQL Administrator]]></category>
		<category><![CDATA[PostgreSQL Error]]></category>
		<category><![CDATA[PostgreSQL Programming]]></category>
		<category><![CDATA[PostgreSQL Tips and Tricks]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3855</guid>

					<description><![CDATA[First of all, I found this useful script from PostgreSQL WIKI. For me, this is one of the very useful Index related script to find Which Filter combinations and Operators can be used with PostgreSQL Indexes. I have already shared a couple of articles on PostgreSQL Indexes which you can also access here. Before a [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-which-filter-combinations-and-operators-can-be-used-with-index-find-all-possible-where-clause-filters%2F&amp;linkname=PostgreSQL%3A%20Which%20Filter%20combinations%20and%20Operators%20can%20be%20used%20with%20Index%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-which-filter-combinations-and-operators-can-be-used-with-index-find-all-possible-where-clause-filters%2F&amp;linkname=PostgreSQL%3A%20Which%20Filter%20combinations%20and%20Operators%20can%20be%20used%20with%20Index%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-which-filter-combinations-and-operators-can-be-used-with-index-find-all-possible-where-clause-filters%2F&amp;linkname=PostgreSQL%3A%20Which%20Filter%20combinations%20and%20Operators%20can%20be%20used%20with%20Index%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-which-filter-combinations-and-operators-can-be-used-with-index-find-all-possible-where-clause-filters%2F&amp;linkname=PostgreSQL%3A%20Which%20Filter%20combinations%20and%20Operators%20can%20be%20used%20with%20Index%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-which-filter-combinations-and-operators-can-be-used-with-index-find-all-possible-where-clause-filters%2F&amp;linkname=PostgreSQL%3A%20Which%20Filter%20combinations%20and%20Operators%20can%20be%20used%20with%20Index%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-which-filter-combinations-and-operators-can-be-used-with-index-find-all-possible-where-clause-filters%2F&amp;linkname=PostgreSQL%3A%20Which%20Filter%20combinations%20and%20Operators%20can%20be%20used%20with%20Index%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2016%2F11%2Fpostgresql-which-filter-combinations-and-operators-can-be-used-with-index-find-all-possible-where-clause-filters%2F&#038;title=PostgreSQL%3A%20Which%20Filter%20combinations%20and%20Operators%20can%20be%20used%20with%20Index%3F" data-a2a-url="https://www.dbrnd.com/2016/11/postgresql-which-filter-combinations-and-operators-can-be-used-with-index-find-all-possible-where-clause-filters/" data-a2a-title="PostgreSQL: Which Filter combinations and Operators can be used with Index?"></a></p><p>First of all, I found this useful script from PostgreSQL WIKI.</p>
<blockquote><p>For me, this is one of the very useful Index related script to find Which Filter combinations and Operators can be used with PostgreSQL Indexes.<br />
I have already shared a couple of articles on PostgreSQL Indexes which you can also access here.
</p></blockquote>
<p><strong>Before a few days ago, one database developer asked about, How sequence of filter (In WHERE Clause) may affect the Index usage in any RDBMS?</strong></p>
<blockquote><p>My Simple answer was, a sequence of filter is very important for using Indexes and If we put the wrong sequence or we use filter with any function, It might not be used Index properly.
</p></blockquote>
<blockquote><p>Once we applied Indexes on Table, we are also responsible for applying proper filters, parameters, operators on that Table to utilize the maximum use of the Indexes. </p></blockquote>
<blockquote><p>Using below script, you can find all available different combinations of parameters, filters and operators for a specific Index of PostgreSQL.<br />
In this query, Just provide your Index Name and execute it. The DBA can use this script for performance tuning activity.
</p></blockquote>
<pre class="crayon-plain-tag">SELECT
	pg_get_indexdef(ss.indexrelid, (ss.iopc).n, TRUE) AS IndexColumn
	,amop.amopopr::regoperator AS IndexableOperators
FROM pg_opclass opc, pg_amop amop,
(SELECT indexrelid, information_schema._pg_expandarray(indclass) AS iopc
FROM pg_index
WHERE indexrelid = 'Your_Index_Name'::regclass) ss
WHERE amop.amopfamily = opc.opcfamily 
	AND opc.oid = (ss.iopc).x
ORDER BY IndexableOperators;</pre> </p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
