Re: order by x using varchar_pattern_ops

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Cc: "Postgres General List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: order by x using varchar_pattern_ops
Date: 2008-08-21 01:29:48
Message-ID: 10738.1219282188@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> writes:
> But is there a way to force a use of varchar_pattern_ops on a column
> used in an order by?

ORDER BY x USING ~<~ ("asc" direction)
ORDER BY x USING ~>~ ("desc" direction)

(assuming those are the right names of the operators, I'm too lazy
to check)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2008-08-21 01:37:04 Re: plpgsql - sorting result set
Previous Message Tom Lane 2008-08-21 01:27:37 Re: WAL archiving to network drive