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
  • Tags
  • Academic
  • Accesibility
  • Accessibility
  • Apps
  • Committees & Memberships
  • Cycling
  • Data
  • FCD
  • Gtfs
  • Healthcare
  • Helper
  • Lectures
  • Media
  • Postgresql V12+
  • Psql
  • Public Transprot
  • Publications
  • Research Dissemination
  • Safty
  • Selected-Work
  • Simra
  • Spatial-Analyses
  • Sql
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