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

From Tom Lane
Subject Re: Why is varchar_pattern_ops needed?
Date
Msg-id 7579.1393860358@sss.pgh.pa.us
Whole thread Raw
In response to Why is varchar_pattern_ops needed?  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Responses Re: Why is varchar_pattern_ops needed?  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List pgsql-general
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.

            regards, tom lane


pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: multiple results from a function
Next
From: Anh Pham
Date:
Subject: execute table query in backend