Re: Number Conversion Function

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Number Conversion Function
Дата
Msg-id b42b73150904131249n7dadc8bbj34c346454ac944a3@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Number Conversion Function  (Tino Wildenhain <tino@wildenhain.de>)
Список pgsql-general
On Mon, Apr 13, 2009 at 2:40 PM, Tino Wildenhain <tino@wildenhain.de> wrote:
> justin wrote:
>>
>>
>> Tom Lane wrote:
>>>
>>> Tino Wildenhain <tino@living-examples.com> writes:
>>>
>>>>
>>>> I would not recommend to do this within the database. Thats typical
>>>> a job for your presentation layer.
>>>>
>>>
>>> ... but having said that, I think the "money" datatype has a function
>>> for this.  Whether that's of any use to you I dunno; money is pretty
>>> restrictive about what it can handle.
>>>
>>>                        regards, tom lane
>>>
>>
>> I disagree the database is the wrong place, there are cases it makes
>> sense.
>>
> Which cases would that be?

What if you had several different 'presentation layers' interfacing
with the database?  Say, a internal web app, some reporting programs
used by sales, dept, the old delphi program that no one ever bothered
to rewrite, etc.  Do you really want to implement the formatting
function in all those places?

as a general rule, the more i do in the database, the easier things
are for me in the long run.

merlin

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

Предыдущее
От: justin
Дата:
Сообщение: Re: Number Conversion Function
Следующее
От: Kynn Jones
Дата:
Сообщение: 'no pg_hba.conf entry for host "[local]", user "postgres", database "postgres"'...