Logo timeING
  • Home
  • About
  • Skills
  • Job Stations
  • Recent Posts
  • More
    Featured Posts Projects Publications and Lectures
  • Posts
  • Notes
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Posts
  • Stories
    • Cycling in the Bergische Städtedreieck – SimRa
    • Influence of the Planned Hospital Reform on Accessibility
    • Interactive Accessibility Analysis in Public Transport Using GTFS Data)
  • Codes
    • Function to determine German holidays in PostgreSQL-12
  • Research & Involvement
    • Academic Publications
    • Committees & Memberships
    • Medial Publications/Work
    • Research Dissemination
    • Teaching & Supervision
Hero Image
Function to determine German holidays in PostgreSQL-12

Background Big data must be enriched with other information so that observations and behavior can be analyzed exaltly. This also includes holidays because they have a strong influence on people’s behavior. So that the holidays do not have to be researched manually for each year, it is advisable to convert the logic behind the (German) holidays into a plpgsql function (see below – tested with PostgreSQL 12). PSQL-Function Holidays that are not defined by an exact date are dependent on Easter. The lower function returns the date for Easter Sunday for the desired year.

  • psql
  • postgresql v12+
  • sql
  • helper
Tuesday, October 20, 2020 | 3 minutes Read
Navigation
  • About
  • Skills
  • Job Stations
  • Recent Posts
  • Featured Posts
  • Projects
  • Publications and Lectures
Contact me:
  • info@timholthaus.com
  • Tim Holthaus