From: | "Bart McFarling" <bartm(at)iilogistics(dot)com> |
---|---|
To: | "Andreas Kretschmer" <akretschmer(at)spamfence(dot)net>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Sorting |
Date: | 2007-01-08 17:24:11 |
Message-ID: | 58748158EFB67344819B48564FCAD4A849B328@exchange2.iilogistics.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks,
-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Andreas Kretschmer
Sent: Monday, January 08, 2007 11:19 AM
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Sorting
Ragnar <gnari(at)hive(dot)is> schrieb:
> > test=*# select w, case when w ~ '^[0-9]*$' then w::int else 10000
> > end from foo order by 2,1;
>
> possible improvements:
> a) w ~ '^[0-9]+$'
> b) use NULL instead of 10000
Thanks, right.
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
From | Date | Subject | |
---|---|---|---|
Next Message | guillermo arias | 2007-01-08 17:36:46 | is there a tracking trace tool like the "SQL Analizer" in MS sqlserver.? |
Previous Message | Andreas Kretschmer | 2007-01-08 17:18:35 | Re: Sorting |