pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Sándor Daku <daku.sandor@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bret Stern <bret_stern@machinemanagement.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Sort question - Fractions, Metric etc
Date: Sat, 14 Aug 2021 10:23:46 -0700
Message-ID: <bc0b146e-5050-34fc-94a0-9775f736c0ec@aklaver.com> (raw)
In-Reply-To: <CAKyoTgbC4xa+HuCK4OqBWYBH-0fRuHup_MOH13zR+uwn=fJadA@mail.gmail.com>
References: <57f60e61-114f-c403-b2e2-820e76f08d64@machinemanagement.com>
	<24d005b3-47a4-3f78-450e-d394b9e47d6f@aklaver.com>
	<40fa1830-71d0-c908-ba5e-5c72cfbe9368@machinemanagement.com>
	<0310c35b-10b1-83a2-4efc-7e569a634001@aklaver.com>
	<160750.1628960582@sss.pgh.pa.us>
	<CAKyoTgbC4xa+HuCK4OqBWYBH-0fRuHup_MOH13zR+uwn=fJadA@mail.gmail.com>

On 8/14/21 10:19 AM, Sándor Daku wrote:
> 

> I'm not sure, but maybe a kind of cast function that cast everything 
> into a reasonable common unit(Khm... millimeters) and sort on that? It 
> seems relatively simple to pick up the value and unit from a string with 
> a regexp. Admittedly the data would still be a mess.

I see the potential for another crash landing:) :

https://en.wikipedia.org/wiki/Mars_Climate_Orbiter#Cause_of_failure


> 
> Regards,
> Sándor


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (20+ messages)  latest in thread

Message-ID: <bc0b146e-5050-34fc-94a0-9775f736c0ec@aklaver.com>
Permalink:  ../bc0b146e-5050-34fc-94a0-9775f736c0ec@aklaver.com/
Also on:    postgresql.org/message-id/bc0b146e-5050-34fc-94a0-9775f736c0ec@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, daku.sandor@gmail.com, tgl@sss.pgh.pa.us, bret_stern@machinemanagement.com
  Subject: Re: Sort question - Fractions, Metric etc
  In-Reply-To: <bc0b146e-5050-34fc-94a0-9775f736c0ec@aklaver.com>
  References: <57f60e61-114f-c403-b2e2-820e76f08d64@machinemanagement.com> <24d005b3-47a4-3f78-450e-d394b9e47d6f@aklaver.com> <40fa1830-71d0-c908-ba5e-5c72cfbe9368@machinemanagement.com> <0310c35b-10b1-83a2-4efc-7e569a634001@aklaver.com> <160750.1628960582@sss.pgh.pa.us> <CAKyoTgbC4xa+HuCK4OqBWYBH-0fRuHup_MOH13zR+uwn=fJadA@mail.gmail.com> <bc0b146e-5050-34fc-94a0-9775f736c0ec@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox