Search Postgresql Archives

Re: Plpgsql function to compute "every other Friday"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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



-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux