make_interval ??

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема make_interval ??
Дата
Msg-id CAFj8pRAfXSA86NFMHff5UCzLmbR_GTGMh0efNaem7oBdWpqcNw@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hello

we have defined interface date, time, timestamp constructors.

There is a question if we would to have some similar for interval type?

As different from time, timestamp there we can use a zero as defaults.

So constructor should to look like:

CREATE OR REPLACE FUNCTION make_interval(years int DEFAULT 0, months int DEFAULT 0, ...)

and usage:

SELECT make_interval(years := 2)
SELECT make_interval(days := 14)

Is there a interest for this (or similar) function?

Regards

Pavel

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Logging WAL when updating hintbit
Следующее
От: Haribabu kommi
Дата:
Сообщение: Re: New option for pg_basebackup, to specify a different directory for pg_xlog