Re: varchar as primary key - Mailing list pgsql-general

From Tom Lane
Subject Re: varchar as primary key
Date
Msg-id 4969.1178301168@sss.pgh.pa.us
Whole thread Raw
In response to Re: varchar as primary key  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: varchar as primary key
List pgsql-general
Jeff Davis <pgsql@j-davis.com> writes:
> I used strcmp() and strcoll() in a tight loop, and the result was
> indistinguishable.

That's not particularly credible ... were you testing this in a
standalone test program?  If so, did you remember to do setlocale()
first?  Without that, you'll be in C locale regardless of environment
contents.

            regards, tom lane

pgsql-general by date:

Previous
From: Jeff Davis
Date:
Subject: Re: varchar as primary key
Next
From: Jeff Davis
Date:
Subject: Re: varchar as primary key