Re: What is impact of "varchar_opts"?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Edson Richter <edsonrichter(at)hotmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: What is impact of "varchar_opts"?
Date: 2013-01-21 19:18:09
Message-ID: 8982.1358795889@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Edson Richter <edsonrichter(at)hotmail(dot)com> writes:
> I'm wondering why "varchar_opts" is not default operator class for all
> indexed varchar field.

varchar has no operators of its own; it just relies on the operators for
type text. Therefore text_ops is the formally correct choice. The
varchar_ops opclass is just an alias that's there so we don't get bug
reports from pedants who expect varchar to have a varchar_ops opclass.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Edson Richter 2013-01-21 19:25:45 Re: What is impact of "varchar_opts"?
Previous Message Kevin Grittner 2013-01-21 19:06:03 Re: Running update in chunks?