Re: Oracle date type compat. functions: next_day, last_day,
В списке pgsql-patches по дате отправления:
| От | Ron Mayer |
|---|---|
| Тема | Re: Oracle date type compat. functions: next_day, last_day, |
| Дата | |
| Msg-id | d7rfth$1jpi$1@news.hub.org обсуждение исходный текст |
| Ответ на | Re: Oracle date type compat. functions: next_day, last_day, (David Fetter <david@fetter.org>) |
| Список | pgsql-patches |
David Fetter wrote: > On Thu, Jun 02, 2005 at 05:41:46PM +0200, Pavel Stehule wrote: >>My next patch is implementation least and greatest functions. If >>will possible I prefere contrib for it, but it's inpossible. ... > > BTW, the thing about least() and greatest() (basically the row-wise > versions of min() and max()) has come up before, and they would be > quite handy :) At least for integers, I think I've done something similar using the intarray contrib; like this... select (sort_desc(array[1,2,3])) [1]; -- for greatest select (sort(array[2,1,3])) [1]; -- for least (if I understand right what the greatest function does in O*). For other types something similar should work, but I guess the sort function would need to be written.
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера