Re: Sort question - Fractions, Metric etc

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Sort question - Fractions, Metric etc
Дата
Msg-id 160750.1628960582@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Sort question - Fractions, Metric etc  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: Sort question - Fractions, Metric etc  (Sándor Daku <daku.sandor@gmail.com>)
Список pgsql-general
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 8/14/21 9:37 AM, Bret Stern wrote:
>> I haven't explored doing this with numeric types, but some columns 
>> needed alpha chars eg 13mm.

> Two columns:

> data_val(numeric)    data_unit(varchar)
> 13            mm

It sounds like your data is a completely disorganized mess :-(.
You might be able to bring some semblance of coherence to it with
an extension like postgresql-unit [1], but it will take a lot of
effort to get the data into a representation that can sort reasonably.
There's no "easy button" here.

            regards, tom lane

[1] https://github.com/df7cb/postgresql-unit



В списке pgsql-general по дате отправления:

Предыдущее
От: Bret Stern
Дата:
Сообщение: Re: Sort question - Fractions, Metric etc
Следующее
От: Sándor Daku
Дата:
Сообщение: Re: Sort question - Fractions, Metric etc