Re: Plan differences

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Anton Melser <melser(dot)anton(at)gmail(dot)com>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Plan differences
Date: 2015-12-31 16:29:10
Message-ID: 568557D6.8040905@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 12/31/15 9:02 AM, Tom Lane wrote:
> If you don't want to rebuild the whole database, you can create indexes to
> support this by declaring them with COLLATE "C", or the older way is to
> declare them with text_pattern_ops as the index opclass.

Do you have to do anything special in the query itself for COLLATE "C"
to work?

I didn't realize the two methods were equivalent.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2015-12-31 17:11:15 Re: Plan differences
Previous Message Tom Lane 2015-12-31 15:02:02 Re: Plan differences