Re: Why is varchar_pattern_ops needed? - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Why is varchar_pattern_ops needed?
Date
Msg-id A737B7A37273E048B164557ADEF4A58B17CCFA9E@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Re: Why is varchar_pattern_ops needed?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:
> Albe Laurenz <laurenz.albe@wien.gv.at> writes:
>> Is there anything that "varchar_pattern_ops" is needed for that "text_pattern_ops" cannot provide?
>
> Lack of surprise?  If you're creating a pattern index on a varchar column,
> you'd likely expect to need to mention varchar_pattern_ops.
>
> The idea that varchar is an alias for text might be second nature to old
> Postgres hands, but it's not to most of the world.

Thanks for the explanation!

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Steve Atkins
Date:
Subject: Re: log_statement per table
Next
From: Tom Lane
Date:
Subject: Re: Segmentation fault