Re: Extracting data from deprecated MONEY fields

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Extracting data from deprecated MONEY fields
Дата
Msg-id 20231.1212852274@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Extracting data from deprecated MONEY fields  (Tino Wildenhain <tino@wildenhain.de>)
Ответы Re: Extracting data from deprecated MONEY fields
Список pgsql-general
Tino Wildenhain <tino@wildenhain.de> writes:
>> to_char() and back to numeric shouldn't be a problem within the database
>> and we have regex too if anything fails. I don't think you need to
>> dump and edit the dump to achive that.

> Ah sorry forget that... neither to_char nor cast to text works. Really a
> horrible datatype :(

If you do it within plpgsql it should work.  Just assign the money value
to a text variable (or vice versa).

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: IN vs EXISTS
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: array column and b-tree index allowing only 8191 bytes