| От | C. Bensend |
|---|---|
| Тема | Re: Plpgsql function to compute "every other Friday" |
| Дата | |
| Msg-id | 687c56c80e22f7a236a73e9662f124eb.squirrel@webmail.stinkweasel.net обсуждение |
| Ответ на | Re: Plpgsql function to compute "every other Friday" (Andy Colson <andy@squeakycode.net>) |
| Список | pgsql-general |
> Not sure if your needs are like mine, but here is the function I use. It > stores the date in a config table, and rolls it forward when needed. It > also calculates it from some "know payroll date", which I'm guessing was > near when I wrote it? (I'm not sure why I choose Nov 16 2008.) for me, > this procedure is called a lot, and the things calling it expect it to > roll into the next pay period. Not sure if it'll work for you, but might > offer some ideas. Great stuff, Andy! Thank you for this - this function gives me a lot of great hints about functions in plpgsql. Very useful indeed. Benny -- "Hairy ape nads." -- Colleen, playing Neverwinter Nights
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера