Re: Is there a better way to do this?

Поиск
Список
Период
Сортировка
От D. Dante Lorenso
Тема Re: Is there a better way to do this?
Дата
Msg-id 46D4A036.3070506@lorenso.com
обсуждение исходный текст
Ответ на Re: Is there a better way to do this?  (Michael Glaesemann <grzm@seespotcode.net>)
Ответы Re: Is there a better way to do this?
Список pgsql-general
Michael Glaesemann wrote:
>
> On Aug 28, 2007, at 16:55 , D. Dante Lorenso wrote:
>>     RETURN time + (days || ' days')::INTERVAL;
> It's bad practice to concatenate like this. Use time + days * interval
> '1 day' and be done with it.

Why?  Is this functionality expected to break in the future or has
unexpected side effects?  Is it less clear or less efficient?  Who
declared it bad practice and where can I read that documentation?

-- Dante

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Question regarding autovacuum
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Out of Memory - 8.2.4