Re: Why is varchar_pattern_ops needed?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Why is varchar_pattern_ops needed?
Date: 2014-03-03 15:25:58
Message-ID: 7579.1393860358@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Anh Pham 2014-03-03 15:38:38 execute table query in backend
Previous Message Merlin Moncure 2014-03-03 15:13:16 Re: multiple results from a function